summaryrefslogtreecommitdiff
path: root/src/cgame/cg_weapons.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2004-03-20 00:10:20 +0000
committerTim Angus <tim@ngus.net>2004-03-20 00:10:20 +0000
commit23e5d1b97402c638c2207031ed8e097e64b5342c (patch)
treedda3c62bda7499bc73ae0115f01c26cb26dcf0d5 /src/cgame/cg_weapons.c
parent5c2af1789513e6f0144bb1136b8a047b50183aa5 (diff)
* Added lcannon warning and blowup
* Fixed some serious bugs in the spawn queue code
Diffstat (limited to 'src/cgame/cg_weapons.c')
-rw-r--r--src/cgame/cg_weapons.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c
index e01339db..87534f23 100644
--- a/src/cgame/cg_weapons.c
+++ b/src/cgame/cg_weapons.c
@@ -1274,6 +1274,9 @@ void CG_AddViewWeapon( playerState_t *ps )
VectorMA( hand.origin, random( ) * fraction, cg.refdef.viewaxis[ 0 ], hand.origin );
VectorMA( hand.origin, random( ) * fraction, cg.refdef.viewaxis[ 1 ], hand.origin );
+
+ if( ps->stats[ STAT_MISC ] > ( LCANNON_TOTAL_CHARGE - ( LCANNON_TOTAL_CHARGE / 3 ) ) )
+ trap_S_AddLoopingSound( ps->clientNum, ps->origin, vec3_origin, cgs.media.lCannonWarningSound );
}
AnglesToAxis( angles, hand.axis );