Fix/restore TF2_IgnitePlayer (bug 3528, r=pred)

This commit is contained in:
Fyren 2009-03-18 18:50:31 -07:00
parent 9a77e6b3cc
commit 7a94343dec
2 changed files with 10 additions and 2 deletions

View File

@ -40,7 +40,7 @@ cell_t TF2_Burn(IPluginContext *pContext, const cell_t *params)
{
static ICallWrapper *pWrapper = NULL;
// CTFPlayerShared::Burn(CTFPlayer*)
// CTFPlayerShared::Burn(CTFPlayer*, CTFWeaponBase*)
if (!pWrapper)
{
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);
unsigned char vstk[sizeof(void *) + sizeof(CBaseEntity *)];
unsigned char vstk[sizeof(void *) + 2*sizeof(CBaseEntity *)];
unsigned char *vptr = vstk;
*(void **)vptr = obj;

View File

@ -57,6 +57,14 @@ enum TFTeam
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