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

Quote:
Originally Posted by DJ Tsunami View Post
Can't you just use SDKHook_TakeDamage? It uses as custom CTakeDamageInfo object to inflict damage.
If you mean passing it to the SDKCall, does it actually work? And besides that, I don't want to damage the person for a second time, as I want to pass real values to the function I'm using.

If you mean taking a look in how it works, sure, but I'm getting the feeling it could just be from an inbuilt-extension and thus isn't applicable to normal Sourcemod plugins.

EDIT: Oh wait, you're the creator of SDKHooks, okay.
Um, my early outburst aside, SDKHook_TakeDamage is a void function which means it's not going to return anything.
But since you created that function, (I hope) can you tell how you made the CTakeDamageInfo 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

Last edited by Shadowysn; 11-05-2019 at 08:17.
Shadowysn is offline