Raised This Month: $ Target: $400
 0% 

Hook he & flash explode


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
IAmReallyCool
Member
Join Date: Nov 2013
Old 12-13-2014 , 15:36   Hook he & flash explode
Reply With Quote #1

How can hook he grenade explosion and flash grenade explosion? Without using orpheu.
IAmReallyCool is offline
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
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-14-2014 , 09:23   Re: Hook he & flash explode
Reply With Quote #3

You have a direct way with orpheu, why you don't want to use it ? I can give you an example if you want.
__________________

Last edited by HamletEagle; 12-14-2014 at 09:24.
HamletEagle 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 15:31.


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