ctf sound being called, but from where...


(MadMaximus) #1

in the dualobjective maps, such as goldrush and radar, there are sounds that get played when an item is taken, dropped, secured or returned, i can see how 3 of them get played, but the sound for the ‘dropped’ i cannot figure out how…

for example,
taken from the goldrush sounds file,

goldrush_allies_gold1_lost
{
sound sound/vo/goldrush/allies/hq_gold1lost.wav
voice
streaming
}

and taken from the radar sounds file,

radar_allies_radare_lost
{
sound sound/vo/radar/allies/hq_radarelost.wav
voice
streaming
}

so that when the ctf carrier gets fragged/killed and the item is dropped, it tells the respective teams the item was ‘lost’ until it is either picked back up, touched by the owning team and returned, or times out and gets returned.

but its not in the scripts anywhere, where those vo’s get called… and it’s not in the map file as far as i can see also ( ie… an entity key/value )

and i checked through the wet source and did not see it also, figuring its some standard call ( unless i missed it )

so can anyone tell me how those vo’s get triggered when the item is dropped???


(MadMaximus) #2

:bump:


(Shaderman) #3

I asked me the same and want to share the solution now. The scripts for all 6 maps in the file pak0.pk3 are overridden by scripts of the same name in the file pak1.pk3. Now we have 4 functions for the team_CTF_*flag entities:

trigger stolen
trigger returned
trigger captured
trigger dropped

It would be nice to see the fourth function in the LDR :slight_smile: