diff --git a/extensions/tf2/natives.cpp b/extensions/tf2/natives.cpp index c23690e8..86bd9f1e 100644 --- a/extensions/tf2/natives.cpp +++ b/extensions/tf2/natives.cpp @@ -34,7 +34,7 @@ #include "time.h" #include "RegNatives.h" -// native TF2_MakeBleed(client, victim, Float:duration) +// native TF2_MakeBleed(client, attacker, Float:duration) cell_t TF2_MakeBleed(IPluginContext *pContext, const cell_t *params) { static ICallWrapper *pWrapper = NULL; @@ -62,8 +62,8 @@ cell_t TF2_MakeBleed(IPluginContext *pContext, const cell_t *params) return pContext->ThrowNativeError("Client index %d is not valid", params[1]); } - CBaseEntity *pTarget; - if (!(pTarget = UTIL_GetCBaseEntity(params[2], true))) + CBaseEntity *pAttacker; + if (!(pAttacker = UTIL_GetCBaseEntity(params[2], true))) { return pContext->ThrowNativeError("Client index %d is not valid", params[2]); } @@ -75,7 +75,7 @@ cell_t TF2_MakeBleed(IPluginContext *pContext, const cell_t *params) *(void **)vptr = obj; vptr += sizeof(void *); - *(CBaseEntity **)vptr = pTarget; + *(CBaseEntity **)vptr = pAttacker; vptr += sizeof(CBaseEntity *); *(CBaseEntity **)vptr = NULL; vptr += sizeof(CBaseEntity *); diff --git a/plugins/include/tf2.inc b/plugins/include/tf2.inc index 76f7453d..fd189da1 100644 --- a/plugins/include/tf2.inc +++ b/plugins/include/tf2.inc @@ -228,11 +228,11 @@ native TF2_StunPlayer(client, Float:duration, Float:slowdown=0.0, stunflags, att * Induces the bleed effect on a client * * @param client Player's index. - * @param victim Victim's index. + * @param attacker Attacker's index. * @param float Duration of bleeding (in seconds). * @noreturn */ -native TF2_MakeBleed(client, victim, Float:duration); +native TF2_MakeBleed(client, attacker, Float:duration); /** * Retrieves the entity index of the CPlayerResource entity