Quote:
Originally Posted by Dr!fter
You can pm the code, i cant guarantee when id look at it though.
|
Cool; I'll trim down the code and make sure it's reproducible.
Quote:
Originally Posted by Shadowysn
[...] is it possible to create a CTakeDamageInfo object? If so, how?
I'd also like to know how to get CTakeDamageInfo from the OnTakeDamage function.
|
You might be able to allocate a
CTakeDamageInfo on the SourcePawn stack as an
int[], or you could try passing in a pointer from
Source Scramble's
MemoryBlock handle. Haven't taken an in-depth look at either approach. I'd say both are absolutely filthy hacks.
You can get info with DHook
OnTakeDamage with an objectptr passed in byref, then get the information with
DHookGetParamObjectPtrVar.
SM-TFOnTakeDamage implements that.
__________________