Hi all 
Been looking at adding the ‘Fight’ and ‘Prepare to fight’ sounds, and came accross this in cg_main.c:
cgs.media.countFight = trap_S_RegisterSound( "sound/osp/fight.wav", qfalse );
cgs.media.countPrepare = trap_S_RegisterSound( "sound/osp/prepare.wav", qfalse );
And this in cg_servercmds.c:
if(cg_announcer.integer > 0) trap_S_StartLocalSound(cgs.media.countFight, CHAN_ANNOUNCER);
if(cg_announcer.integer > 0) trap_S_StartLocalSound( cgs.media.countPrepare, CHAN_ANNOUNCER );
I added this to cg_local.h:
sfxHandle_t countFight;
sfxHandle_t countPrepare;
I also added the wav files to the right dir.
The compiler complained about the ‘if(cg_announcer.integer > 0)’, so i recompiled with just:
trap_S_StartLocalSound(cgs.media.countFight, CHAN_ANNOUNCER);
trap_S_StartLocalSound( cgs.media.countPrepare, CHAN_ANNOUNCER );
To my complete surprise, this worked. ( So much so, i nearly fell off my chair when it suddenly boomed ‘FIGHT!’ )
The thing is, in my relatively short experience in programming, this has been a bit too easy. I’m wondering if the top 4 lines were commented out for a reason and whether this will mess something up somewhere along the line.
I know it works, i just wanted to know if it is right.
Many thanks 

