Raised This Month: $ Target: $400
 0% 

Hook he & flash explode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-13-2014 , 17:48   Re: Hook he & flash explode
Reply With Quote #2

if you say w/o orpheu: then you need to hook Think for "grenade" classname (with Hamsandwich is most suitable method), than check if (entity_get_float(grenade, EV_FL_dmgtime) <= get_gametime()) - this is the explosion moment.

As for hegrenade/flashbang detection - there are various ways:
1) by checking the grenade model
2) by checking pev_dmg, but I am not sure if it's safe enough (it might catch smokegrenade)
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
 



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 15:31.


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