Custom objective sounds?


(hummer) #1

wm_teamvoiceannounce <team> <soundname>
Plays sound to target team.

wm_addteamvoiceannounce <team> <soundname>
wm_removeteamvoiceannounce <team> <soundname>
Adds or removes sound to/from the queue of sounds that a player gets to hear when he joins a team.

I’m not really sure how these work. We’re hoping to add our own custom sounds to the indy map, different voices for objectives completed. However, in the script for goldrush, there might be something like:


wm_addteamvoiceannounce 1 "goldrush_allies_tank_courtyard"

		wm_teamvoiceannounce 1 "goldrush_allies_tank_stolen"
		wm_teamvoiceannounce 1 "goldrush_allies_tankbars_destroy"
		wm_teamvoiceannounce 1 "goldrush_allies_tank_courtyard"

But, in the sound scripts and bsp, I haven’t found any references to these sound names… so, how do you use custom sounds for objectives that are completed?


(chavo_one) #2

The missing link can be found in the sound/scripts directory. Take a look at goldrush.sounds:

goldrush_allies_tank_stolen
{
	sound sound/vo/goldrush/allies/hq_tankstolen.wav
	voice
	streaming
}

(hummer) #3

Ahhh! Thank you!


(kevinski) #4

Hey Hummer, are you gonna add this to the tutorials section on your site? I dunno if I’ll be able to find this information again on here, and I’m currently using your site as a reference. :slight_smile:


(sock) #5

Already been discussed here : http://www.splashdamage.com/forums/viewtopic.php?t=3294&highlight=wmteamvoiceannounce

Sock
:moo:


(DeAtHmAsTeR) #6

do i add the mapname.sounds to the list.txt in sounds/scripts ? and then put all the data in mapname.sounds?