I need some assistance in my train sequence. Created 4 years ago2019-07-24 20:58:11 UTC by Tecnost Tecnost

Created 4 years ago2019-07-24 20:58:11 UTC by Tecnost Tecnost

Posted 4 years ago2019-07-24 20:58:11 UTC Post #342907
Hi everyone!

Right now I have mapped a train for my mod, it doesn't have any windows so I don't require to build a moving scenery around it.
To make it feel it's moving, I have placed a env_shake and an ambient_generic looping the train noise.

I got the ambient_generic to work, but the env_shake doesn't want to work!
Now here's my questions, I have never did such stuff on GoldSRC as I mostly mapped for Source.

1 - I want to add some random noises like train horns or level crossing bells sounds.

2 - I want to add the screen text that appears on the HUD, like the intro of Half-Life.

3 - After some time, the env_shake and the ambient_generic loop stops, and the train brakes are heard.

4 - Automatic changelevel to the next map.

If someone can pinpoint me to the correct guide so I can add these things, I'd appreciate it.

Thanks for reading,
Tecnost.

EDIT: Just for posterity, I have added a screenshot of my map. (I have deleted some brushes to see the inside.)
User posted image
Posted 4 years ago2019-07-24 23:37:47 UTC Post #342908
There's two options to get the sound to loop. You could edit the sound or just trigger it multiple times with a multimanager.

Goldwave method:
To edit it, just download goldwave. Open the sound file in goldwave and go to "edit" add cue point to start and "edit" add cue point to end.

Then save as a .wav, with the setting 16 bit mono. The cue points will make the sound loop.

Multimanager method:
With multimanagers, add a trigger_start and multimanager. Make the trigger_start target the name of the multimanager. This turns it on. Then make the multimanager trigger the sound at .001 seconds and again when at the duration of the sound. Also make the multimanager trigger itself immediately after it last triggered the sound. In its flags check "multithreaded." Just toy with it till it works. There's a tutorial on TWHL for multimanagers if you need help with them.
Posted 4 years ago2019-07-25 08:32:43 UTC Post #342909
Alright, thanks for the help!

EDIT: Got the env_shake working, a question though, why it lasts only for two seconds? I have set the duration of 60 seconds but it refuses to work.
Posted 4 years ago2019-07-25 17:18:22 UTC Post #342913
Not sure, haven't used them in a while, maybe do the same thing with it with the multi manager. I'll check when I get home tonight.
Posted 4 years ago2019-07-25 19:56:16 UTC Post #342914
Don't worry, I managed to get around the problem by adding multiple env_shakes. Thanks for all of your assistance!
You must be logged in to post a response.