diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-08-16 22:48:06 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-08-16 22:48:06 +0300 |
commit | 5618f2bb4b91f4942d6936fdd18b42e354feee9c (patch) | |
tree | 819188100c36b001bcfb553749aefa7492f0bc2c /src/game/bg_pmove.c | |
parent | 2d61fc67ad2537068a14b3b5d4a467ae8ec665fc (diff) |
Added goon water pounce fix.
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r-- | src/game/bg_pmove.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 62151f4..cb215a3 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -609,6 +609,25 @@ static void PM_CheckCharge( void ) /* ============= +PM_CheckWaterPounce +============= +*/ +static void PM_CheckWaterPounce( void ) +{ + if( pm->ps->weapon != WP_ALEVEL3 && + pm->ps->weapon != WP_ALEVEL3_UPG ) + return; + + // We were pouncing, but we've landed into water + if( ( pm->waterlevel > 1 ) && ( pm->ps->pm_flags & PMF_CHARGE ) ) + { + pm->ps->pm_flags &= ~PMF_CHARGE; + pm->ps->weaponTime += LEVEL3_POUNCE_REPEAT; + } +} + +/* +============= PM_CheckPounce ============= */ @@ -1188,7 +1207,6 @@ static void PM_WaterJumpMove( void ) /* =================== PM_WaterMove - =================== */ static void PM_WaterMove( void ) @@ -1200,6 +1218,8 @@ static void PM_WaterMove( void ) float scale; float vel; + PM_CheckWaterPounce( ); + if( PM_CheckWaterJump( ) ) { PM_WaterJumpMove(); |