spawn sounds


(cementoske) #1

i want to do this : allies and axis must hear a sound when they spawn so i have these scripts :

xmap.script file :

// ================================================
game_manager
{
spawn
{
wait 1000
// ----------------------------------- vo ------------------------------------------
wm_teamvoiceannounce 1 “allies_hq_compost_construct”
wm_addteamvoiceannounce 1 “allies_hq_compost_construct”
wm_teamvoiceannounce 0 “axis_hq_compost_construct”
wm_addteamvoiceannounce 0 “axis_hq_compost_construct”
wm_addteamvoiceannounce 0 “xmap_c1_spawn_axis_music”
wm_addteamvoiceannounce 1 “xmap_c1_spawn_allies_music”
wm_teamvoiceannounce 0 “xmap_c1_spawn_axis_music”
wm_teamvoiceannounce 1 “xmap_c1_spawn_allies_music”
// ---------------------------------------------------------------------------------

}
}

xmap.sounds file :

xmap_axis_spawn_music
{
sound sound/xmap_c1/spawn_axis.wav
voice
streaming
}

xmap_allies_spawn_music
{
sound sound/xmap_c1/spawn_allies.wav
voice
streaming
}

xmap_allies_end
{
sound sound/xmap_c1/complete_allies.wav
voice
streaming
}

xmap_axis_end
{
sound sound/xmap_c1/failed_axis.wav
voice
streaming
}

  • i putted the sounds in my pk3 / sound / xmap_c1

BUT it isn’t working!!!


(Loffy) #2

try to change it to:

wm_addteamvoiceannounce 0 “xmap_axis_spawn_music”
wm_addteamvoiceannounce 1 “xmap_allies_spawn_music”
…and so on.
maybe it will work then?
// Loffy


(cementoske) #3

eurm nope :s


(thegnat) #4

Yeah, why not opening a new thread when having another running with the same problem? :rolleyes:

You should really take care of typos in your scripts/sound definitions. They have to match exactly. Also you cant tell me that you don’t get any error mesages in the console, when you run this map with that script.


(cementoske) #5

could someone give me the working stuff :s