summaryrefslogtreecommitdiff
path: root/src/game/bg_pmove.c
diff options
context:
space:
mode:
authorRoman Tetelman <kevlarman@gmail.com>2009-10-03 11:56:34 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:32 +0000
commitef88523ceb802c22fea0f5ac3744702429dfe650 (patch)
tree8ce1e34a660fcb063dcf0034628e56c90e9c369b /src/game/bg_pmove.c
parent034038c8d454d03d78d3e828bd2206b0eb054ecd (diff)
* marauder has a timeout after jumping before being able to walljump again
* make SnapVector definition more msvc friendly
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r--src/game/bg_pmove.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index 79ede29a..3ede67f0 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -765,6 +765,13 @@ static qboolean PM_CheckJump( void )
pm->ps->stats[ STAT_MISC ] > 0 )
return qfalse;
+ //don't allow walljump for a short while after jumping from the ground
+ if( BG_ClassHasAbility( pm->ps->stats[ STAT_CLASS ], SCA_WALLJUMPER ) )
+ {
+ pm->ps->pm_flags |= PMF_TIME_WALLJUMP;
+ pm->ps->pm_time = 200;
+ }
+
//can't jump and charge at the same time
if( ( pm->ps->weapon == WP_ALEVEL4 ) &&
pm->ps->stats[ STAT_MISC ] > 0 )