View Single Post
nosoop
Veteran Member
Join Date: Aug 2014
Old 11-06-2019 , 05:27   Re: Passing CTakeDamageInfo to an SDKCall?
Reply With Quote #8

There's the XY problem that should've been mentioned sooner.
Not that it improves the situation much since the killfeed does calls for getting weapon names, assisters and such, but those are things you can recreate.

For Source Scramble, you can allocate a MemoryBlock (size 0x64 in TF2, not sure about other games), then populate the members then SDKCall. This plugin reads / writes offsets in a CTakeDamageInfo struct retrieved via DHooks (I went this route because the extension's objectptr accessors have a few issues), but it should be the same principle with the manually-allocated one.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline