View Single Post
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 11-12-2019 , 00:12   Re: Passing CTakeDamageInfo to an SDKCall?
Reply With Quote #14

Quote:
Originally Posted by nosoop View Post
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

Code:
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).
Okay. Understood most of what you were saying, but still no progress on that SDKCall.
Well, I've decided to try out Source Scramble.

Except I have no idea what to do to create the damage info object.
__________________
ragdoll spam, that is all

Steam profile, where I game, obviously.
Youtube channel, where I do Stick Death Maze animations and some other stuff.
no plugin requests, sorry


My Plugins:
-search list-
Modified Plugins:
1 | 2 | 3 | 4
Shadowysn is offline