so i’ve made some scripts for objactives and added wm_voiceannouce things. but it doesn’t play the sounds in ET when i test it in localhost (i don’t have a pk3 yet). i have the .sounds files in etmain, sounds, mymapname, scripts and the file with my map name. also i have there (etmain, sounds, mymapname, vo, allies/axis) sounds that i’ve made.
what i did wrong?
scripts and sounds
Does it print any errors in the console when it is supposed to play? Do you get any errors like data chunks? If you do, you need to fix those voices with fixwav (google). Many times VO sounds doesn’t play even when it plays in different usage like target_speaker. Umm… yeah aren’t you supposed to use wm_teamvoiceannounce? I don’t know what is basicly difference. Does it play it from the voice menu like “need medic” with wm_voiceannounce?
wm_voiceannounce <team> <voice_message>
Broadcast a 'voice_message' to the specified 'team'.
wm_addteamvoiceannounce <team> <soundname>
Adds sound to the queue of sounds that a player gets to hear when he joins a team.
wm_removeteamvoiceannounce <team> <soundname>
Removes sound from the queue of sounds that a player gets to hear when he joins a team.
wm_teamvoiceannounce <team> <soundname>
Play a sound 'soundname' to the specified 'team'.
hmm… i didn’t saw anything like this, but i noticed there was: voice chat memory size = 0. the sound scripts were loaded sucsessfully. maybe the location of the sounds is wrong?
game_manager
{
spawn
{
wm_axis_respawntime 10
wm_allied_respawntime 10
wm_set_round_timelimit 30
// Stopwatch mode defending team (0=Axis, 1=Allies)
wm_set_defending_team 0
// Winner on expiration of round timer (0=Axis, 1=Allies, -1=Nobody)
wm_setwinner 0
wait 500
setautospawn "Axis Spawn" 0
setautospawn "Allied Spawn" 1
wm_addteamvoiceannounce 0 "crossroad_axis_fowardflag_stop"
wm_addteamvoiceannounce 1 "crossroad_allies_fowardflag_capture"
wm_teamvoiceannounce 0 "crossroad_axis_fowardflag_stop"
wm_teamvoiceannounce 1 "crossroad_allies_fowardflag_capture"
}
}
//=============================================
forward_flag
{
spawn
{
accum 0 set 2 // Who owns flag: 0-Axis, 1-Allied, 2-Nobody
wm_addteamvoiceannounce 0 "crossroad_axis_fowardflag_stop"
wm_addteamvoiceannounce 1 "crossroad_allies_fowardflag_capture"
wm_teamvoiceannounce 0 "crossroad_axis_fowardflag_stop"
wm_teamvoiceannounce 1 "crossroad_allies_fowardflag_capture"
}
trigger axis_capture // Touched by an Axis player
{
accum 0 abort_if_equal 0 // do Axis own flag?
accum 0 trigger_if_equal 1 forward_flag axis_reclaim // Reclaimed from Allies
accum 0 set 0 // Axis own the flag
wm_announce "Axis have captured the Forward Flag!"
wm_addteamvoiceannounce 0 "crossroad_axis_fowardflag_stop"
wm_addteamvoiceannounce 1 "crossroad_allies_fowardflag_badcapture"
wm_teamvoiceannounce 0 "crossroad_axis_fowardflag_stop"
wm_teamvoiceannounce 1 "crossroad_allies_fowardflag_badcapture"
setstate forward_wobj default
}
trigger axis_reclaim
{
alertentity forward_wobj // Switch command map marker
wm_teamvoiceannounce 0 "crossroad_axis_fowardflag_reclaim"
wm_teamvoiceannounce 1 "crossroad_allies_fowardflag_badcapture"
}
trigger allied_capture // Touched by an allied player
{
accum 0 abort_if_equal 1 // do Allies own flag?
accum 0 set 1 // Allied own the flag
wm_announce "Allies have captured the Forward Flag!"
wm_addteamvoiceannounce 0 "crossroad_axis_wall_defend"
wm_addteamvoiceannounce 1 "crossroad_allies_wall_destroy"
wm_teamvoiceannounce 0 "crossroad_axis_fowardflag_badcapture"
wm_teamvoiceannounce 0 "crossroad_axis_wall_defend"
wm_teamvoiceannounce 1 "crossroad_allies_fowardflag_captured"
wm_teamvoiceannounce 1 "crossroad_allies_wall_destroy"
alertentity forward_wobj // Switch command map marker
}
idk check this maybe there’s something wrong i just wanna get those sounds working… i don’t mind when they come twice or so at the moment…
The path has to be same as set in the sound script file. You can use wm_removeteamvoiceannounce… to remove the other sounds when flag is captured. Cos it would sound weird “capture the flag… defend the flag” :D. Also remove if it’s secured. Hmm. Ok what happens now when you join team? In console.
i know that i had the remove thing be4 but i removed it cuz i thaught maybe that’s the prob but no 
when i join there are no strange things in console and vsay works.