Page 1 of 1

Playing MOHAA sounds in SH ?

Posted: Mon Mar 24, 2003 9:32 pm
by matt_moh
How do you play sounds from MOHAA in spearhead? I tried the playsound command, but it didn't work when i used a sound from allied assault. The command line is correct. In fact, I coppied it directly from the script for m6l3. Anybody know how to fix this? :?

Posted: Mon Mar 24, 2003 9:38 pm
by nuggets
unless your maps called m*l*.map (*'s being numbers) or have a prefix of "test_" it won't play sounds without ubersound being defined

Posted: Tue Mar 25, 2003 12:06 am
by matt_moh
I didn't edit the ubersound file but I have a test_ prefix on my map name. Sounds from Spearhead work fine but the only ones that don't work are the sounds from Allied Assault. Do I still need to edit the ubersound?

Posted: Wed Mar 26, 2003 8:30 am
by bdbodger
well here are some of the things I have learned. Take a sound from mohaa
aliascache snd_step_grill3 sound/characters/fs_metal_03.wav soundparms 0.4 0.3 0.9 0.2 200 2500 auto loaded maps "m1l2b m1l3c m2l1 m2l2a m2l2b m2l2c m2l3 m3l1b m4l2 m4l3 m5l1a m5l1b m6l1c m6l2a m6l2b m6l3a m6l3b m6l3c m6l3d dm moh obj train"
you see the part after maps that means that only maps strarting with those prefixes will play that sound . take one more .
aliascache p38_snd_pickup sound/weapons/foley/SilencerPickup1.wav soundparms 1.3 0.2 0.8 0.2 160 1000 item loaded maps "m dm moh obj "
you see the letter m at the start of the prefixes this sound will play in any map that starts with the letter m . See also "dm" the directory name is part of the map name so any map in the dm directory automaticly starts with dm. that will play most of the sounds not all also the spearhead sounds are the same aliases and maybe some new sounds too . If you look in this forum you will find a ubersound workaround that involves makeing a tik file with the sounds you need . My workaround I am useing is different and may not be the best way but works good for me . I copy ubersounds.scr from pak0.pk3 from the main directory . Rename it ubersounds2.scr . Edit it so that you add obj as an example to the prefix list if it is not there already. Next put your map into the obj directory or if it is single player and you don't want to do that name the map stating with obj . You don't need to load ubersounds2 the game will do it when it loads ubersounds . Put only the sounds you need or that are not in spearhead into the ubersounds2.scr . pak it put it into mainta your done . Also the test prefix is for ai animations look for a workaround for that wombat has one or look how to make your own it involves editing new_generic_human.tik

Posted: Thu Mar 27, 2003 12:26 am
by matt_moh
It works fine now. Thanks, bdbodger! :P

Posted: Thu Mar 27, 2003 1:02 am
by nuggets
even though i may not of helped i would still like to think i contribued somewhere along the line :D