Raised This Month: $ Target: $400
 0% 

[SOLVED]Get Grenade Owner From Event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 06-27-2014 , 20:05   Re: Get Grenade Owner From Event
Reply With Quote #1

You could:
1. Hook CGrenade::Detonate3 and get pev_owner from grenade index.
2. Hook grenade think, check if it's HE, check pev_dmgtime < get_gametime, then get pev_owner from grenade index.

Last edited by SpeeDeeR; 06-27-2014 at 20:06.
SpeeDeeR is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-28-2014 , 00:07   Re: Get Grenade Owner From Event
Reply With Quote #2

Quote:
Originally Posted by SpeeDeeR View Post
You could:
1. Hook CGrenade:etonate3 and get pev_owner from grenade index.
2. Hook grenade think, check if it's HE, check pev_dmgtime < get_gametime, then get pev_owner from grenade index.
Quote:
Originally Posted by ^SmileY View Post
You can use csx to detect grenade trow and store owner into a globar var. After this, you can detect explosions using other methods.


Excuse if I saying crap :p
Okay ..before sleeping i did a little more debugging .. and the entire Grenade Explode function isnt working right (Not getting called for me atleast ..)
So these seems to be a really nice option i ll try them as soon as i get back home ..
Thank you both
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
Reply



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 21:09.


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