Page 2 of 2

alias

Posted: Wed Aug 25, 2004 11:22 pm
by tltrude
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.

Posted: Thu Aug 26, 2004 9:16 am
by Dani
Thank you, but that doesn't explain why they don't come up on my DM multiplayer?

Posted: Thu Aug 26, 2004 3:54 pm
by lizardkid
Multiplayer has troubles since not all sounds were meant to be loaded into them, since i never do MP (useless imo) i couldnt tell you wich ones.

Posted: Thu Aug 26, 2004 10:01 pm
by Dani
OK, well when my friend made a server, and we played we could not hear sounds. But when i make a sserver for myself i can hear the sounds.

Posted: Thu Aug 26, 2004 10:06 pm
by Dani
Erm, how do i animate it so that when i click trigger_use it makes the switch aniamte the switch type is: static_equipment_alarmswitch.

Posted: Fri Aug 27, 2004 11:56 am
by Dani
Also, i want it so that people die quite fast when they get stuck inbetween the gate and the ground when it is closing. How do i do this?

Posted: Fri Aug 27, 2004 12:55 pm
by jv_map
$gate dmg 1000 8-)

Posted: Fri Aug 27, 2004 1:02 pm
by Dani
do i put this in when i do this?:

$gate time 3
$gate dmg 1000

Posted: Fri Aug 27, 2004 1:30 pm
by Dani
Also , how do i make it so that it makes a message come up when you open and close the gates?

Posted: Fri Aug 27, 2004 4:44 pm
by lizardkid
iprintlnbold_noloc "message"

in the thread taht the gate calls when it's opened, but really instead of gate.time just put key/value time/3 in the gate's entity thing in Radient. it's a lot more code-efficient.

Posted: Fri Aug 27, 2004 5:33 pm
by Dani
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.

Posted: Fri Aug 27, 2004 6:20 pm
by lizardkid
jeez :roll: 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!!! :roll:

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. :wink:

game

Posted: Fri Aug 27, 2004 8:14 pm
by tltrude
All the sounds that work in Mohaa games, may not work in Spearhead or Breakthrough.

Posted: Fri Aug 27, 2004 11:36 pm
by Grassy
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.
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.
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 "
But please do not reproduce the whole ubersound and uberdialog like some do, it will cause problems and your game will crash if it comes across too many entries refering to the same sound file.

Grassy