summaryrefslogtreecommitdiff
path: root/src/cgame/cg_view.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-08-27 02:08:28 +0000
committerTim Angus <tim@ngus.net>2003-08-27 02:08:28 +0000
commit4b492e5cbf89108d9f49981ee11e065a57914226 (patch)
tree436a3387387bf52b85c5441b19f5eb546be52511 /src/cgame/cg_view.c
parentcaf924c83b11c0ccfe08df26935c699423116924 (diff)
* Partial mofo charge ability from centuries ago
Diffstat (limited to 'src/cgame/cg_view.c')
-rw-r--r--src/cgame/cg_view.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c
index f69984bd..80b1101c 100644
--- a/src/cgame/cg_view.c
+++ b/src/cgame/cg_view.c
@@ -484,7 +484,8 @@ static void CG_OffsetFirstPersonView( void )
//provide some feedback for pouncing
if( cg.predictedPlayerState.weapon == WP_POUNCE ||
- cg.predictedPlayerState.weapon == WP_POUNCE_UPG )
+ cg.predictedPlayerState.weapon == WP_POUNCE_UPG ||
+ cg.predictedPlayerState.weapon == WP_GROUND_POUND )
{
if( cg.predictedPlayerState.stats[ STAT_MISC ] > 0 )
{
@@ -494,7 +495,10 @@ static void CG_OffsetFirstPersonView( void )
AngleVectors( angles, forward, NULL, NULL );
VectorNormalize( forward );
- fraction1 = (float)( cg.time - cg.weapon2Time ) / (float)DRAGOON_POUNCE_TIME;
+ if( cg.predictedPlayerState.weapon == WP_GROUND_POUND )
+ fraction1 = (float)( cg.time - cg.weapon2Time ) / (float)BMOFO_CHARGE_TIME;
+ else
+ fraction1 = (float)( cg.time - cg.weapon2Time ) / (float)DRAGOON_POUNCE_TIME;
if( fraction1 > 1.0f )
fraction1 = 1.0f;