Fix/restore TF2_IgnitePlayer (bug 3528, r=pred)
This commit is contained in:
parent
9a77e6b3cc
commit
7a94343dec
@ -40,7 +40,7 @@ cell_t TF2_Burn(IPluginContext *pContext, const cell_t *params)
|
|||||||
{
|
{
|
||||||
static ICallWrapper *pWrapper = NULL;
|
static ICallWrapper *pWrapper = NULL;
|
||||||
|
|
||||||
// CTFPlayerShared::Burn(CTFPlayer*)
|
// CTFPlayerShared::Burn(CTFPlayer*, CTFWeaponBase*)
|
||||||
if (!pWrapper)
|
if (!pWrapper)
|
||||||
{
|
{
|
||||||
REGISTER_NATIVE_ADDR("Burn",
|
REGISTER_NATIVE_ADDR("Burn",
|
||||||
@ -68,7 +68,7 @@ cell_t TF2_Burn(IPluginContext *pContext, const cell_t *params)
|
|||||||
|
|
||||||
void *obj = (void *)((uint8_t *)pEntity + playerSharedOffset->actual_offset);
|
void *obj = (void *)((uint8_t *)pEntity + playerSharedOffset->actual_offset);
|
||||||
|
|
||||||
unsigned char vstk[sizeof(void *) + sizeof(CBaseEntity *)];
|
unsigned char vstk[sizeof(void *) + 2*sizeof(CBaseEntity *)];
|
||||||
unsigned char *vptr = vstk;
|
unsigned char *vptr = vstk;
|
||||||
|
|
||||||
*(void **)vptr = obj;
|
*(void **)vptr = obj;
|
||||||
|
@ -57,6 +57,14 @@ enum TFTeam
|
|||||||
TFTeam_Blue = 3
|
TFTeam_Blue = 3
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets a client on fire for 10 seconds.
|
||||||
|
*
|
||||||
|
* @param client Player's index.
|
||||||
|
* @noreturn
|
||||||
|
* @error Invalid client index, client not in game, or no mod support.
|
||||||
|
*/
|
||||||
|
native TF2_IgnitePlayer(client, target);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Respawns a client
|
* Respawns a client
|
||||||
|
Loading…
Reference in New Issue
Block a user