diff options
author | Tim Angus <tim@ngus.net> | 2002-09-23 04:38:55 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2002-09-23 04:38:55 +0000 |
commit | 67604720f961f7f3b30984a3b0699f7eabb828f5 (patch) | |
tree | b16bd7d6afea3a240a60beab901aabe8b2a30425 /src/cgame/cg_main.c | |
parent | a3f567734f3df2346ba042860fa2a7988963e51c (diff) |
* Fixed build timer bug
* Crosshair per weapon
* Added dlight to flame balls - bit of a performance hit
* Tweaked flamer repeat rate
* Fixed human buildable explosion sound (FIXME: sync with anims?)
Diffstat (limited to 'src/cgame/cg_main.c')
-rw-r--r-- | src/cgame/cg_main.c | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index e0b4936d..551a5baf 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -116,10 +116,8 @@ vmCvar_t cg_drawAmmoWarning; vmCvar_t cg_drawCrosshair; vmCvar_t cg_drawCrosshairNames; vmCvar_t cg_drawRewards; -vmCvar_t cg_crosshairSize; vmCvar_t cg_crosshairX; vmCvar_t cg_crosshairY; -vmCvar_t cg_crosshairHealth; vmCvar_t cg_draw2D; vmCvar_t cg_drawStatus; vmCvar_t cg_animSpeed; @@ -237,8 +235,6 @@ static cvarTable_t cvarTable[ ] = { &cg_drawCrosshair, "cg_drawCrosshair", "4", CVAR_ARCHIVE }, { &cg_drawCrosshairNames, "cg_drawCrosshairNames", "1", CVAR_ARCHIVE }, { &cg_drawRewards, "cg_drawRewards", "1", CVAR_ARCHIVE }, - { &cg_crosshairSize, "cg_crosshairSize", "24", CVAR_ARCHIVE }, - { &cg_crosshairHealth, "cg_crosshairHealth", "1", CVAR_ARCHIVE }, { &cg_crosshairX, "cg_crosshairX", "0", CVAR_ARCHIVE }, { &cg_crosshairY, "cg_crosshairY", "0", CVAR_ARCHIVE }, { &cg_brassTime, "cg_brassTime", "2500", CVAR_ARCHIVE }, @@ -544,18 +540,6 @@ const char *CG_Argv( int arg ) /* ================= -CG_RegisterItemSounds - -The server says this item is used on this level -================= -*/ -static void CG_RegisterItemSounds( int itemNum ) -{ -} - - -/* -================= CG_RegisterSounds called during a precache command @@ -639,6 +623,8 @@ static void CG_RegisterSounds( void ) cgs.media.jetpackDescendSound = trap_S_RegisterSound( "sound/upgrades/jetpack/low.wav", qfalse ); cgs.media.jetpackIdleSound = trap_S_RegisterSound( "sound/upgrades/jetpack/idle.wav", qfalse ); cgs.media.jetpackAscendSound = trap_S_RegisterSound( "sound/upgrades/jetpack/hi.wav", qfalse ); + + cgs.media.humanBuildableExpl = trap_S_RegisterSound( "sound/weapons/rocket/rocklx1a.wav", qfalse ); // FIXME: only needed with item cgs.media.sfx_ric1 = trap_S_RegisterSound( "sound/weapons/machinegun/ric1.wav", qfalse ); @@ -721,8 +707,13 @@ static void CG_RegisterGraphics( void ) cgs.media.tracerShader = trap_R_RegisterShader( "gfx/misc/tracer" ); cgs.media.selectShader = trap_R_RegisterShader( "gfx/2d/select" ); - for( i = 0 ; i < NUM_CROSSHAIRS ; i++ ) - cgs.media.crosshairShader[ i ] = trap_R_RegisterShader( va( "gfx/2d/crosshair%c", 'a' + i ) ); + for( i = WP_NONE + 1 ; i < WP_NUM_WEAPONS ; i++ ) + { + char *crosshair = BG_FindCrosshairForWeapon( i ); + + if( crosshair != NULL ) + cgs.media.crosshairShader[ i ] = trap_R_RegisterShader( crosshair ); + } cgs.media.backTileShader = trap_R_RegisterShader( "gfx/2d/backtile" ); cgs.media.noammoShader = trap_R_RegisterShader( "icons/noammo" ); |