diff options
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r-- | src/game/bg_pmove.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index b0e5c96..88707bd 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -714,7 +714,15 @@ static qboolean PM_CheckJump( void ) //TA: take some stamina off if( pm->ps->stats[ STAT_PTEAM ] == PTE_HUMANS ) - pm->ps->stats[ STAT_STAMINA ] -= 500; + { + int rate; + + rate = BG_MOD_get( MOD_BG_HUMAN_STAMINA ); + if( rate ) + pm->ps->stats[ STAT_STAMINA ] -= 500 * 100 / rate; + else + pm->ps->stats[ STAT_STAMINA ] -= 500; + } pm->ps->groundEntityNum = ENTITYNUM_NONE; |