Lever, nottriggerable
Moderator: Moderators
alias
All the sound alias names are in the ubersound.scr script in pak0.pk3. At the end of each "aliascache" line, it states which map or game types it will work in. Here is an example of one.
aliascache m2l1_gate_open sound/mechanics/m2l1a_gate_open.wav soundparms 1.3 0.0 0.7 0.0 160 1600 item loaded maps "m2l1 dm moh obj train"
As you can see, the path to the wav file is there too. The wav files are in pak3.pk3 so, if you find one you like there, you can search for its name in the ubersound script to learn its alias name.
aliascache m2l1_gate_open sound/mechanics/m2l1a_gate_open.wav soundparms 1.3 0.0 0.7 0.0 160 1600 item loaded maps "m2l1 dm moh obj train"
As you can see, the path to the wav file is there too. The wav files are in pak3.pk3 so, if you find one you like there, you can search for its name in the ubersound script to learn its alias name.
NO it is NOT! If i put it in the script WOW it might add 2 extra spaces BUT i don not have to compile my map (which takes a long time) AND it is easier to change. Anyway thanks for the message help. Also, when i make a multiplayer server, the sound for the gates work, but the sound for the cell doors doesn't. BUT in singleplayer it does work.
jeez
all i'm saying is save the engine some trouble and the script master functions some time. might as well spawn the whole level via script since you can change it at any time without compiling, that'd be cool!!!
ya iprintln "message" will be the yellow/orange message forwhen you pick up a gun for instance, and iprintlnbold_noloc "message" is the white clicking noise message.
also you can use centerprint message to put a message like the screenshot one in the middle of the screen, and locationprint x y message to place a message anywhere on screen.
ya iprintln "message" will be the yellow/orange message forwhen you pick up a gun for instance, and iprintlnbold_noloc "message" is the white clicking noise message.
also you can use centerprint message to put a message like the screenshot one in the middle of the screen, and locationprint x y message to place a message anywhere on screen.
G'day, the reason for that would be the sound you want to play is in sound/ubersound.scr file as an aliascache entry with only the level specific map type set to it.Also, when i make a multiplayer server, the sound for the gates work, but the sound for the cell doors doesn't. BUT in singleplayer it does work.
To add level specific sounds to multiplayer games you need to make up your own ubersound file and name it mymap_ubersound.scr in a sounds directory in your map pack... Add the sounds you require and make sure they have maps "m dm obj" at the end of them like this...
Code: Select all
aliascache door_metal_open_move1 sound/mechanics/DoorMetalOpen_04.wav soundparms 1.2 0.2 0.8 0.2 160 1600 item loaded maps "m dm obj "
aliascache door_metal_open_move2 sound/mechanics/DoorMetalOpen_05.wav soundparms 1.2 0.2 0.8 0.2 160 1600 item loaded maps "m dm obj "Grassy

