mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Fix client_death/damage forwards passing alive victims on ClientKill (bug 5812, r=Nextra)
Former-commit-id: 39fadf4302
This commit is contained in:
parent
ddacdb0ab2
commit
419c8f6ee6
@ -112,9 +112,10 @@ const char* get_localinfo( const char* name , const char* def = 0 )
|
|||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientKill(edict_t *pEntity){
|
void ClientKill_Post(edict_t *pEntity)
|
||||||
|
{
|
||||||
CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity);
|
CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity);
|
||||||
if ( !pPlayer->IsAlive())
|
if ( pPlayer->IsAlive())
|
||||||
RETURN_META(MRES_IGNORED);
|
RETURN_META(MRES_IGNORED);
|
||||||
|
|
||||||
MF_ExecuteForward( iFDamage,static_cast<cell>(pPlayer->index), static_cast<cell>(pPlayer->index) ,
|
MF_ExecuteForward( iFDamage,static_cast<cell>(pPlayer->index), static_cast<cell>(pPlayer->index) ,
|
||||||
|
@ -108,7 +108,7 @@
|
|||||||
// #define FN_ResetGlobalState ResetGlobalState /* pfnResetGlobalState() */
|
// #define FN_ResetGlobalState ResetGlobalState /* pfnResetGlobalState() */
|
||||||
// #define FN_ClientConnect ClientConnect /* pfnClientConnect() (wd) Client has connected */
|
// #define FN_ClientConnect ClientConnect /* pfnClientConnect() (wd) Client has connected */
|
||||||
#define FN_ClientDisconnect ClientDisconnect /* pfnClientDisconnect() (wd) Player has left the game */
|
#define FN_ClientDisconnect ClientDisconnect /* pfnClientDisconnect() (wd) Player has left the game */
|
||||||
#define FN_ClientKill ClientKill /* pfnClientKill() (wd) Player has typed "kill" */
|
// #define FN_ClientKill ClientKill /* pfnClientKill() (wd) Player has typed "kill" */
|
||||||
// #define FN_ClientPutInServer ClientPutInServer /* pfnClientPutInServer() (wd) Client is entering the game */
|
// #define FN_ClientPutInServer ClientPutInServer /* pfnClientPutInServer() (wd) Client is entering the game */
|
||||||
// #define FN_ClientCommand ClientCommand /* pfnClientCommand() (wd) Player has sent a command (typed or from a bind) */
|
// #define FN_ClientCommand ClientCommand /* pfnClientCommand() (wd) Player has sent a command (typed or from a bind) */
|
||||||
// #define FN_ClientUserInfoChanged ClientUserInfoChanged /* pfnClientUserInfoChanged() (wd) Client has updated their setinfo structure */
|
// #define FN_ClientUserInfoChanged ClientUserInfoChanged /* pfnClientUserInfoChanged() (wd) Client has updated their setinfo structure */
|
||||||
@ -160,7 +160,7 @@
|
|||||||
// #define FN_ResetGlobalState_Post ResetGlobalState_Post
|
// #define FN_ResetGlobalState_Post ResetGlobalState_Post
|
||||||
#define FN_ClientConnect_Post ClientConnect_Post
|
#define FN_ClientConnect_Post ClientConnect_Post
|
||||||
// #define FN_ClientDisconnect_Post ClientDisconnect_Post
|
// #define FN_ClientDisconnect_Post ClientDisconnect_Post
|
||||||
// #define FN_ClientKill_Post ClientKill_Post
|
#define FN_ClientKill_Post ClientKill_Post
|
||||||
#define FN_ClientPutInServer_Post ClientPutInServer_Post
|
#define FN_ClientPutInServer_Post ClientPutInServer_Post
|
||||||
// #define FN_ClientCommand_Post ClientCommand_Post
|
// #define FN_ClientCommand_Post ClientCommand_Post
|
||||||
#define FN_ClientUserInfoChanged_Post ClientUserInfoChanged_Post
|
#define FN_ClientUserInfoChanged_Post ClientUserInfoChanged_Post
|
||||||
|
Loading…
Reference in New Issue
Block a user