Raised This Month: $ Target: $400
 0% 

Solved HAM hook grenade throwing


Post New Thread Reply   
 
Thread Tools Display Modes
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-01-2019 , 07:57   Re: HAM hook grenade throwing
Reply With Quote #11

no a better forward that get called only when a grenade has been thrown, not like FM_SetModel which will be called for every entity.

anyway problem solved thanks for helping
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-01-2019 at 08:00.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
E1_531G
Senior Member
Join Date: Dec 2017
Old 11-01-2019 , 08:59   Re: HAM hook grenade throwing
Reply With Quote #12

Maybe something like this:
Hook Ham_Spawn "grenade"
Inside it, register FM_SetModel
Inside it, do checks, if it's grenade throw do stuff, unregister FM_SetModel
__________________
My English is A0
E1_531G is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-01-2019 , 09:32   Re: HAM hook grenade throwing
Reply With Quote #13

Quote:
Originally Posted by Natsheh View Post
i can see you're not familiar with the caption >> Ham module << or atleast better way to hook grenade throw, i think best way will be using register_message and hooking the fire in the hole thing.
Sorry for trying to help you. Good luck.
__________________








CrazY. is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 11-01-2019 , 11:17   Re: HAM hook grenade throwing
Reply With Quote #14

Quote:
Originally Posted by Natsheh View Post
no a better forward that get called only when a grenade has been thrown, not like FM_SetModel which will be called for every entity.

anyway problem solved thanks for helping
I think it's cool to post how you solved your problem, your question today may be someone's question tomorrow.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
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 23:25.


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