Raised This Month: $32 Target: $400
 8% 

Solved Check if a player was damaged by a grenade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode