diff options
author | Asa Kravets <norfenstein@gmail.com> | 2010-01-09 22:16:43 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:25 +0000 |
commit | 1573be6af74dc4b0106c4301813f9da2911187fe (patch) | |
tree | 17e71b421d8bc11ecec3a731d95723108354fbe0 /src/game/bg_pmove.c | |
parent | 7f3780edf7c7bb59e2561a9254803e94f868c064 (diff) |
Gameplay changes
* Dragoon base bite range increased 72 -> 80
* Dragoon base pounce range decreased 54 -> 40
* Flamer splash damage reduced 25 -> 12
* Stamina stop restore increased 25 -> 30
* Stamina sprint take reduced 8 -> 6
* Stamina threshold for jumping and dodging changed to the slowing threshold plus the cost of jumping or dodging
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r-- | src/game/bg_pmove.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 79b02f11..f9a36812 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -426,13 +426,13 @@ static float PM_CmdScale( usercmd_t *cmd ) modifier *= HUMAN_SIDE_MODIFIER; } - //must have +ve stamina to jump - if( pm->ps->stats[ STAT_STAMINA ] < 0 ) + //must have have stamina to jump + if( pm->ps->stats[ STAT_STAMINA ] < STAMINA_SLOW_LEVEL + STAMINA_JUMP_TAKE ) cmd->upmove = 0; //slow down once stamina depletes if( pm->ps->stats[ STAT_STAMINA ] <= STAMINA_SLOW_LEVEL ) - modifier *= (float)( pm->ps->stats[ STAT_STAMINA ] + 1000 ) / 500.0f; + modifier *= (float)( pm->ps->stats[ STAT_STAMINA ] + STAMINA_MAX ) / (float)(STAMINA_SLOW_LEVEL + STAMINA_MAX); if( pm->ps->stats[ STAT_STATE ] & SS_CREEPSLOWED ) { @@ -793,7 +793,7 @@ static qboolean PM_CheckJump( void ) return qfalse; if( ( pm->ps->stats[ STAT_TEAM ] == TEAM_HUMANS ) && - ( pm->ps->stats[ STAT_STAMINA ] < 0 ) ) + ( pm->ps->stats[ STAT_STAMINA ] < STAMINA_SLOW_LEVEL + STAMINA_JUMP_TAKE ) ) return qfalse; //no bunny hopping off a dodge @@ -945,7 +945,7 @@ static qboolean PM_CheckDodge( void ) } // Reasons why we can't start a dodge or sprint - if( pm->ps->pm_type != PM_NORMAL || pm->ps->stats[ STAT_STAMINA ] < 0 || + if( pm->ps->pm_type != PM_NORMAL || pm->ps->stats[ STAT_STAMINA ] < STAMINA_SLOW_LEVEL + STAMINA_DODGE_TAKE || ( pm->ps->pm_flags & PMF_DUCKED ) ) return qfalse; |