This commit is contained in:
Lukasz Wlasinksi
2004-07-02 16:25:36 +00:00
parent f413bf37a2
commit 28b21550d4
6 changed files with 8 additions and 23 deletions

View File

@ -138,19 +138,11 @@ void ServerActivate_Post( edict_t *pEdictList, int edictCount, int clientMax ){
}
void PlayerPreThink_Post( edict_t *pEntity ) {
if ( !isModuleActive() )
return;
CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity);
if ( pPlayer->staminaSet ) {
if ( pEntity->v.iuser4 > pPlayer->staminaMax )
pEntity->v.iuser4 = pPlayer->staminaMax;
else if ( pEntity->v.iuser4 < pPlayer->staminaMin )
pEntity->v.iuser4 = pPlayer->staminaMin;
}
if ( !isModuleActive() ) // stats only
return;
if (pPlayer->clearStats && pPlayer->clearStats < gpGlobals->time && pPlayer->ingame){
if ( !ignoreBots(pEntity) ){