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

@ -1,5 +1,5 @@
MODNAME = dodx_amxx
SRCFILES = amxxmodule.cpp CMisc.cpp CRank.cpp Utils.cpp moduleconfig.cpp NBase.cpp NRank.cpp NPD.cpp usermsg.cpp
MODNAME = dodfun_amxx
SRCFILES = amxxmodule.cpp CMisc.cpp Utils.cpp moduleconfig.cpp NBase.cpp NPD.cpp usermsg.cpp
EXTRA_LIBS_LINUX =
EXTRA_LIBS_WIN32 =

View File

@ -89,7 +89,7 @@ void Grenades::clear()
// *****************************************************
void CPlayer::Disconnect(){
ingame = staminaSet = fuseSet = false;
ingame = false;
savedScore = 0;
if ( ignoreBots(pEdict) || !isModuleActive() ) // ignore if he is bot and bots rank is disabled or module is paused
@ -149,7 +149,7 @@ void CPlayer::Init( int pi, edict_t* pe )
index = pi;
current = 0;
clearStats = 0.0f;
ingame = staminaSet = false;
ingame = false;
savedScore = 0;
}

View File

@ -89,13 +89,6 @@ public:
int wpnModel;
int savedScore;
int staminaMin;
int staminaMax;
bool staminaSet;
bool fuseSet;
int fuseType; // 1<<0 - for new , 1<<1 - for catched
float nadeFuse;
bool ingame;
bool bot;

View File

@ -1,5 +1,5 @@
MODNAME = dodx_amxx
SRCFILES = amxxmodule.cpp CMisc.cpp CRank.cpp Utils.cpp moduleconfig.cpp NBase.cpp NRank.cpp NPD.cpp usermsg.cpp
SRCFILES = amxxmodule.cpp CMisc.cpp CRank.cpp Utils.cpp moduleconfig.cpp NBase.cpp NRank.cpp usermsg.cpp
EXTRA_LIBS_LINUX =
EXTRA_LIBS_WIN32 =

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) ){