From 677b44c84c47f76d9cd545401f51722f24d31f8c Mon Sep 17 00:00:00 2001 From: Kit o' Rifty Date: Sat, 19 Nov 2022 15:17:24 -0800 Subject: [PATCH] Fix OnOtherKilled event callback not passing `victim` parameter (#31) * Fix OnOtherKilled event callback not passing victim --- extension/cbasenpc_behavior.cpp | 1 + product.version | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/cbasenpc_behavior.cpp b/extension/cbasenpc_behavior.cpp index 1ddd3a9..b44f704 100644 --- a/extension/cbasenpc_behavior.cpp +++ b/extension/cbasenpc_behavior.cpp @@ -395,6 +395,7 @@ BEGINEVENTCALLBACK(OnKilled, const CTakeDamageInfo &info) ENDEVENTCALLBACK() BEGINEVENTCALLBACK(OnOtherKilled, CBaseCombatCharacterHack *victim, const CTakeDamageInfo &info) + EVENTPUSHENTITY(victim) EVENTPUSHENTITY(info.GetAttacker()) EVENTPUSHENTITY(info.GetInflictor()) EVENTPUSHFLOAT(info.GetDamage()) diff --git a/product.version b/product.version index 9dbb0c0..081af9a 100644 --- a/product.version +++ b/product.version @@ -1 +1 @@ -1.7.0 \ No newline at end of file +1.7.1 \ No newline at end of file