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

If you don't already have an CTakeDamageInfo instance on hand, you'll probably need to use something like Source Scramble to allocate one, set up the desired values, then pass its address. Refer to game/shared/takedamageinfo.h in the Source SDK for how it's laid out.

However, it does seem like you're posting about an attempt to solve a different problem (the XY problem) -- what are you actually trying to solve, if anything?
__________________
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