mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
update..
This commit is contained in:
parent
f413bf37a2
commit
28b21550d4
@ -1,5 +1,5 @@
|
|||||||
MODNAME = dodx_amxx
|
MODNAME = dodfun_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 Utils.cpp moduleconfig.cpp NBase.cpp NPD.cpp usermsg.cpp
|
||||||
|
|
||||||
EXTRA_LIBS_LINUX =
|
EXTRA_LIBS_LINUX =
|
||||||
EXTRA_LIBS_WIN32 =
|
EXTRA_LIBS_WIN32 =
|
||||||
|
@ -89,7 +89,7 @@ void Grenades::clear()
|
|||||||
// *****************************************************
|
// *****************************************************
|
||||||
|
|
||||||
void CPlayer::Disconnect(){
|
void CPlayer::Disconnect(){
|
||||||
ingame = staminaSet = fuseSet = false;
|
ingame = false;
|
||||||
savedScore = 0;
|
savedScore = 0;
|
||||||
|
|
||||||
if ( ignoreBots(pEdict) || !isModuleActive() ) // ignore if he is bot and bots rank is disabled or module is paused
|
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;
|
index = pi;
|
||||||
current = 0;
|
current = 0;
|
||||||
clearStats = 0.0f;
|
clearStats = 0.0f;
|
||||||
ingame = staminaSet = false;
|
ingame = false;
|
||||||
savedScore = 0;
|
savedScore = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,13 +89,6 @@ public:
|
|||||||
int wpnModel;
|
int wpnModel;
|
||||||
|
|
||||||
int savedScore;
|
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 ingame;
|
||||||
bool bot;
|
bool bot;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
MODNAME = dodx_amxx
|
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_LINUX =
|
||||||
EXTRA_LIBS_WIN32 =
|
EXTRA_LIBS_WIN32 =
|
||||||
|
@ -138,19 +138,11 @@ void ServerActivate_Post( edict_t *pEdictList, int edictCount, int clientMax ){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PlayerPreThink_Post( edict_t *pEntity ) {
|
void PlayerPreThink_Post( edict_t *pEntity ) {
|
||||||
|
if ( !isModuleActive() )
|
||||||
|
return;
|
||||||
|
|
||||||
CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity);
|
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 (pPlayer->clearStats && pPlayer->clearStats < gpGlobals->time && pPlayer->ingame){
|
||||||
|
|
||||||
if ( !ignoreBots(pEntity) ){
|
if ( !ignoreBots(pEntity) ){
|
||||||
|
@ -113,7 +113,7 @@
|
|||||||
// #define FN_DispatchBlocked_Post DispatchBlocked_Post
|
// #define FN_DispatchBlocked_Post DispatchBlocked_Post
|
||||||
#define FN_DispatchKeyValue_Post DispatchKeyValue_Post
|
#define FN_DispatchKeyValue_Post DispatchKeyValue_Post
|
||||||
// #define FN_DispatchSave_Post DispatchSave_Post
|
// #define FN_DispatchSave_Post DispatchSave_Post
|
||||||
// #define FN_DispatchRestore_Post DispatchRestore_Post
|
// #define FN_DispatchRestore_Post DispatchRestore_Post
|
||||||
// #define FN_DispatchObjectCollsionBox_Post DispatchObjectCollsionBox_Post
|
// #define FN_DispatchObjectCollsionBox_Post DispatchObjectCollsionBox_Post
|
||||||
// #define FN_SaveWriteFields_Post SaveWriteFields_Post
|
// #define FN_SaveWriteFields_Post SaveWriteFields_Post
|
||||||
// #define FN_SaveReadFields_Post SaveReadFields_Post
|
// #define FN_SaveReadFields_Post SaveReadFields_Post
|
||||||
|
Loading…
Reference in New Issue
Block a user