Updates to cg_local.h

This commit is contained in:
Walter Julius Hennecke 2014-10-27 22:39:54 +01:00
parent bfc137ff2e
commit ce76bfa8d4
3 changed files with 367 additions and 377 deletions

File diff suppressed because it is too large Load Diff

View File

@ -703,7 +703,7 @@ static void CG_RegisterSounds( void )
cgs.media.ShakeSound = trap_S_RegisterSound("sound/shake.wav");
cgs.media.tedTextSound = trap_S_RegisterSound( "sound/interface/tedtext.wav" );
for (i=0 ; i<N00bSoundCount ; i++) {
for (i=0 ; i<MAX_N00BSOUND_COUNT ; i++) {
Com_sprintf (name, sizeof(name), "sound/n00bs/insult%i.wav", i+1);
cgs.media.N00bSound[i] = trap_S_RegisterSound (name);
}

View File

@ -679,7 +679,7 @@ static void CG_ServerCommand( void ) {
//RPG-X | Phenix | 13/02/2005
// Play a insult to the n00b when moved into n00b class
if ( !strcmp( cmd, "playN00bInsult") ) {
trap_S_StartLocalSound( cgs.media.N00bSound[(rand()%N00bSoundCount)], CHAN_LOCAL_SOUND );
trap_S_StartLocalSound( cgs.media.N00bSound[(rand()%MAX_N00BSOUND_COUNT)], CHAN_LOCAL_SOUND );
CG_CenterPrint( "Welcome to the n00b Class", SCREEN_HEIGHT * 0.25, BIGCHAR_WIDTH );
return;
}