Raised This Month: $51 Target: $400
 12% 

[SOLVED]Launch grenade instantly


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 06-20-2014 , 17:27   [SOLVED]Launch grenade instantly
Reply With Quote #1

How can I make grenade launch instant? For example, when you take grenade, press attack, it pulls pin, when you release it, throwing event starts. I want when you press attack, nade starts throwing event instantly. It might be some kind of offset, but I can't find it.

EDIT: Or, do I have to change FM_PlaybackEvent do that?

EDIT2: There is no event for grenade in events/ folder.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness

Last edited by GuskiS; 06-21-2014 at 13:27.
GuskiS is offline
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 06-21-2014 , 01:12   Re: Launch grenade instantly
Reply With Quote #2

check out this if it helps you https://forums.alliedmods.net/showthread.php?p=754908
__________________
Preparing to release my plugins..
r0ck is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 06-21-2014 , 05:36   Re: Launch grenade instantly
Reply With Quote #3

I have seen this, it just makes binds for auto grenade throwing. That is not what I need.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-21-2014 , 06:51   Re: Launch grenade instantly
Reply With Quote #4

Off-Topic Question Related to this topic ..

Does this grenade launch event act as a a grenade reload event ?

If yes .. You can try hooking the reload event and do some modifications ..

Edit : check this too..
https://forums.alliedmods.net/showthread.php?p=618307
__________________
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

Last edited by devilicioux; 06-21-2014 at 06:54.
devilicioux is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-21-2014 , 07:54   Re: Launch grenade instantly
Reply With Quote #5

If you wish to throw grenades like a boss, then this is how it would be done:
Code:
#include <amxmodx> #include <hamsandwich> #include <fakemeta> #define VERSION   "0.0.1" #define XO_WEAPON      4 #define m_flTimeWeaponIdle  48 public plugin_init() {     register_plugin( "Instant Grenade Throw", VERSION, "hornet" );         RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_hegrenade", "CHEGrenade_PrimaryAttack" ); } public CHEGrenade_PrimaryAttack( iEnt ) {     set_pdata_float( iEnt, m_flTimeWeaponIdle, 0.0, XO_WEAPON );     ExecuteHam( Ham_Weapon_WeaponIdle, iEnt ); }
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 06-21-2014 , 13:26   Re: Launch grenade instantly
Reply With Quote #6

Thanks hornet, just the thing I was looking for Solved.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS 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 11:41.


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