Raised This Month: $ Target: $400
 0% 

[SOLVED]Launch grenade instantly


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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
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:16.


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