Announcement

Collapse
No announcement yet.

AI Train Honking when Overtaking

Collapse
This topic is closed.
X
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AI Train Honking when Overtaking

    Hiiiiii,,, i am making a route in which there are many overtakes,, so someone can tell me how to make AI trains honk when passing/overtaking player train????
    Thanks.
    and if it is wrong thread for posting this,, I Am Sorry

    #2
    I have a few addons, where horn blasts on AI train are activated by various triggers, i.e. by proximity (which is what you want) or by speed (i.e. when stopping or starting). The latter is sometimes quite annoying...
    Cheers,
    Sebastian

    sigpic

    Comment


      #3
      The InvisioCar concept is good. And surprised it hasn't been upgraded or 'borrowed and bettered' for either freeware or payware routes by SLI or MLT or the like? I'm still getting my feet wet understanding SMS, but think the Invisiocar idea could go well beyond the current two honks with a cantankerous horn that goes ripping through the cab sometimes. I know Jim and Stu only had so much to work with at the time, and were proud just to make the concept work. But think there's a lot more potential that could be had - be it 2 longs, 1 short, 1 long. Additional bell ringing. Radio scanner messages that play in the cab as the AI passes, and so on.

      Were you referring to the InvsioCar idea Sebastian, or you've exploited them even more and have you add ons here in the library as well?

      Comment


        #4
        where i can find these add-ons??? or can you give it to me?? thanks for reply

        Comment


          #5
          Originally posted by Noisemaker View Post
          [...]Were you referring to the InvsioCar idea Sebastian, or you've exploited them even more and have you add ons here in the library as well?
          Actually, the German addons I am referring to, the triggers for horn blasts are built right into the AI locos themselves. For example it goes like this: A steam engine makes a short "I intend to move!" blast when beginning to move or once an electric engine stops, its compressors start running. Or via proximity trigger, most German addon locomotives I have blast their horn at a certain distance from the player train.

          Once I get home tonight, I can have a look at some SMS-files and post the respective code.
          Cheers,
          Sebastian

          sigpic

          Comment


            #6
            That would be interesting to see and learn from indeed! So these would be in payware add ons then? I like poking around TheTrain.de and like to think I understand German a wee bit, though Google Translate is a great help. I've come across some interesting freeware engines and unique sounds for them. But have never experienced anything like you're talking about Sebastian.

            Can't beat that German ingenuity!

            Comment


              #7
              heyyy, i just edited the sounds of a wagon and modified them,,, now i can experiment in making triggers. thanks

              Comment


                #8
                Here is an excerpt from a steam engine exterior soundset.

                It is a stream under ScalabilityGroup(0), where the AI sounds are located.

                Code:
                			Stream (
                				Priority ( 5 )
                				Triggers ( 7
                					Variable_Trigger 	( Speed_Inc_Past   	0.1 	PlayOneShot  ( 1  File ( "50Pfeife3.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
                					Variable_Trigger	( Speed_Dec_Past 	0.1	PlayOneShot  ( 1 	File ( "50Start1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
                					Variable_Trigger 	( Speed_Dec_Past  	5.0 	PlayOneShot  ( 1  File ( "50Pfeife3.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
                					Variable_Trigger	( Speed_Dec_Past 	0.1	PlayOneShot  ( 1 	File ( "50Start1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
                					Variable_Trigger 	( Speed_Inc_Past		1.0	EnableTrigger  ( 7 ) )
                					Variable_Trigger	( Speed_Dec_Past 	0.1	DisableTrigger ( 7 ) )
                					Variable_Trigger  ( Distance_Dec_Past 	150	PlayOneShot  ( 1  File ( "50Pfeife1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
                				)
                			)
                Hope this helps!
                Cheers,
                Sebastian

                sigpic

                Comment


                  #9
                  Thanks Sebastian, that's interesting to see for sure. So I take it that it's whistle, then the 50Start1 is the engine sound? And when it get's to 10mph or so the whistle sounds again. And does the Distance_Dec_Past line mean that the train will even blow it's whistle if your approaching it in either direction on the mainlines about 150ft away?

                  Comment


                    #10
                    Yeah, the soundset plays a starting sound (like a steamer does when starting a train) along with a whistle when accelerating from stop. When approaching to said distance, it plays a long whistle. Quite cool actually.
                    Cheers,
                    Sebastian

                    sigpic

                    Comment


                      #11
                      Thank, for giving the code i will modify some eng files and try to add your code,,, i will post reply if i get some success.

                      Comment

                      Working...
                      X