AI horn blow on timetable acts? AI horn blow on timetable acts?
#11
Posted 13 June 2023 - 06:36 AM
Hello.
This Discrete_Trigger number 320 is only available in the NYMG version or in the official release.
Sincerely, Laci 1959
This Discrete_Trigger number 320 is only available in the NYMG version or in the official release.
Sincerely, Laci 1959
#12
Posted 13 June 2023 - 06:45 AM
Aldarion, on 13 June 2023 - 04:35 AM, said:
Weter, thanks for locating the thread.
Right now my oown solution totally based on Carlo's is this:
Right now my oown solution totally based on Carlo's is this:
Stream ( Skip (**** ORTS AI: horn at train meet ***************************************) Priority ( 7 ) Triggers ( 4 Initial_Trigger ( DisableTrigger ( 3 ) ) Discrete_Trigger ( 320 EnableTrigger ( 3 ) ) Variable_Trigger ( Distance_Dec_Past 100.0 PlayOneShot ( 6 File ( "x_2600buzina3.wav" -1 ) File ( "x_2600buzina4.wav" -1 ) File ( "x_2600buzina5.wav" -1 ) File ( "x_2600buzina6.wav" -1 ) File ( "x_2600buzina7.wav" -1 ) File ( "2600buzina8.wav" -1 ) SelectionMethod ( RandomSelection ) ) ) Variable_Trigger ( Distance_Dec_Past 35.0 DisableTrigger ( 3 )) ) VolumeCurve( SpeedControlled CurvePoints ( 5 -100.0 1.0 -2.0 1.0 0 0.0 2.0 1.0 100.0 1.0 ) Granularity ( 0.1 ) ) )
Even though it looks a little above my brain grade I'll give that a try as I have the NYMG version. I'm assuming it goes in the loco external sms file and is it just for timetable or all acts? also I notice there are 6 different whistle wav files in the example.
#13
Posted 13 June 2023 - 07:59 AM
That's simple:
Initially, third trigger for sounding horns is deactivated,
If condition 320 is met, it activates third trigger, and one of 6 horn's sound variations will be played one time, as soon as AI train approaches to player's point of view closer, than 100m.
Then, being closer, than 35m - third trigger will be deactivated again.
Initially, third trigger for sounding horns is deactivated,
If condition 320 is met, it activates third trigger, and one of 6 horn's sound variations will be played one time, as soon as AI train approaches to player's point of view closer, than 100m.
Then, being closer, than 35m - third trigger will be deactivated again.
#15
Posted 16 June 2023 - 10:11 PM
Niknak, on 13 June 2023 - 06:45 AM, said:
Even though it looks a little above my brain grade I'll give that a try as I have the NYMG version. I'm assuming it goes in the loco external sms file and is it just for timetable or all acts? also I notice there are 6 different whistle wav files in the example.
It goes to the external sms - normally ending with *eng.sms.
My solution in particular has 6 files because I had multiple recordings of the horn of the same locomotive in various combinations of the two tones, thus adding a little randomness. But the original example is just with one wave file. You can add as many as you want...
Be carefulll as to place it at the end of the respective scalabity group (5, i think). The first times i just added the code to the end of the file and t did not work cause I was adding it do a different scalabity group and changing the number of streams in another Scalabity Group... :wallbash:
#16
Posted 16 June 2023 - 11:33 PM
I put the new lines in between the ordinary whistle and sanding lines in the eng sms. There only appears to be one scalability shown at the very beginning of the file, which is 1. but it works ok. This is in the Cab Forward loco 4212.
Attached File(s)
-
#3DTS_CabForward_4212_Front.zip (4.46K)
Number of downloads: 49
#17
Posted 18 June 2023 - 06:40 AM
Also, it works equally well using the cab sms file too. I find the volume both internal and external a little quiet though but it's a great feature nevertheless.
#19
Posted 19 June 2023 - 01:51 AM
Thank you Weter. I set the volume line I inserted to 2.0 and it seems to be somewhat louder although I'm never sure whether any volume level over 1.0 registers with OR.
#20
Posted 19 June 2023 - 04:32 AM
I've noticed in my experience that having volume set to above 1.0 makes a horn or whistle louder when far away, which is cool.