diff options
author | Paweł Redman <pawel@redman.xyz> | 2017-04-13 11:30:00 +0000 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-15 12:06:43 +0200 |
commit | 5ad9e26c3be1f2ebc6cdb340b685aef30ae16db7 (patch) | |
tree | 5ee97c52196122bd8356ad8e09403332e7712fcd /src/game/bg_pmove.c | |
parent | 45973dc48641365b31475733bce7af9c3b8603a6 (diff) |
import the cQVM game module
replacing the existing one
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; |