Your gamedata uses the DeathNotice
call with a char*
parameter, so you'll want to add that or use the one that isn't (which just calls the one you've declared with "player_death"
as the last parameter, for other killfeed notices like the fish.).
There is a SDKCall_GameRules
call type, so you don't need to pass in a gamerules instance.
Invoking the function would then be something like
SDKCall(hDeathNotice, victim, pTakeDamageInfo, "player_death");
Otherwise, I think that should be fine. I did make a mistake though; the size of CTakeDamageInfo
should be 0x68 (last member is at 0x64).