Skip to content

Commit

Permalink
Fix OnOtherKilled event callback not passing victim parameter (#31)
Browse files Browse the repository at this point in the history
* Fix OnOtherKilled event callback not passing victim
  • Loading branch information
KitRifty authored Nov 19, 2022
1 parent 0e3d7b0 commit 677b44c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions extension/cbasenpc_behavior.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion product.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.0
1.7.1

0 comments on commit 677b44c

Please sign in to comment.