mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
update..
This commit is contained in:
parent
f413bf37a2
commit
28b21550d4
@ -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 =
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 =
|
||||
|
@ -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) ){
|
||||
|
Loading…
Reference in New Issue
Block a user