From 7a94343dec7737f0b43d69e986061661886004d2 Mon Sep 17 00:00:00 2001 From: Fyren Date: Wed, 18 Mar 2009 18:50:31 -0700 Subject: [PATCH] Fix/restore TF2_IgnitePlayer (bug 3528, r=pred) --- extensions/tf2/natives.cpp | 4 ++-- plugins/include/tf2.inc | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/extensions/tf2/natives.cpp b/extensions/tf2/natives.cpp index 29695397..8e103dcd 100644 --- a/extensions/tf2/natives.cpp +++ b/extensions/tf2/natives.cpp @@ -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; diff --git a/plugins/include/tf2.inc b/plugins/include/tf2.inc index 12ccecf7..cb1f209b 100644 --- a/plugins/include/tf2.inc +++ b/plugins/include/tf2.inc @@ -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