From ff9ae0782ea9652b80cd170a40f99f481d80f999 Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Sat, 3 Jan 2015 19:45:27 +0100 Subject: [PATCH] Fix missing params in OnTakeDamagePost typedef Looks like the |weapon| parameter went missing during the switch to the transitional syntax. There was no -Post typedef including the |damagecustom| bit at all too. --- plugins/include/sdkhooks.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/include/sdkhooks.inc b/plugins/include/sdkhooks.inc index e47e2fc6..44a448a2 100644 --- a/plugins/include/sdkhooks.inc +++ b/plugins/include/sdkhooks.inc @@ -264,7 +264,9 @@ typeset SDKHookCB // OnTakeDamagePost // OnTakeDamageAlivePost function void (int victim, int attacker, int inflictor, float damage, int damagetype); - function void (int victim, int attacker, int inflictor, float damage, int damagetype, const float damageForce[3], const float damagePosition[3]); + function void (int victim, int attacker, int inflictor, float damage, int damagetype, int weapon, const float damageForce[3], const float damagePosition[3]); + function void (int victim, int attacker, int inflictor, float damage, int damagetype, int weapon, + const float damageForce[3], const float damagePosition[3], int damagecustom); // FireBulletsPost function void (int client, int shots, const char[] weaponname);