View Single Post
Author Message
joac1144
Senior Member
Join Date: Dec 2012
Location: Copenhagen, Denmark
Old 10-30-2018 , 20:29   Check if a player was damaged by a grenade
Reply With Quote #1

How do I check if a player was damaged by a normal he-grenade?
I'm trying to do so in SDKHooks_OnTakeDamage. There is a parameter called &weapon, how do I use that? Printing the &weapon as an int returned -1.
Any other weapon would also be nice to know.

This is for CS:GO.

EDIT: Thank you to everyone!
For anyone interested, see how I did it at my last comment.

Last edited by joac1144; 10-31-2018 at 06:27.
joac1144 is offline