View Single Post
ambideXter
Junior Member
Join Date: Feb 2009
Location: The Netherlands
Old 02-17-2009 , 22:18   Re: Instant Grenades Throwing [Version 1.0]
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
I don't know if it's usefull for you, here is the way i made to simulate the bug when you watch HLTV demos and the animation doesn't draw + added instant usable nades :

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "Instant Nade"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

#define    m_pPlayer                41
#define    m_flNextPrimaryAttack    46
#define    m_flTimeWeaponIdle        48

#define    m_flNextAttack            83

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
RegisterHam(Ham_Item_Deploy"weapon_hegrenade""CGrenade_Deploy"1)
    
RegisterHam(Ham_Item_Deploy"weapon_smokegrenade""CGrenade_Deploy"1)
    
RegisterHam(Ham_Item_Deploy"weapon_flashbang""CGrenade_Deploy"1)
}

public 
CGrenade_DeployiEnt )
{
    new 
id get_pdata_cbase(iEntm_pPlayer4)
    
set_pdata_float(idm_flNextAttack0.0)

    
set_pdata_float(iEntm_flNextPrimaryAttack0.04)
    
set_pdata_float(iEntm_flTimeWeaponIdle0.04)


hi, can you tell me what line[s] of code to remove, edit or add to keep the normal animations but with the instant throwing? in your version of the code of course, i like to test it with animations. [if i understand it correct then in your version of the code no binding of a key is needed right?] also, would you know how i can make a player watch down very fast when switching to a smoke grenade. i want to make a smoke bomb for ninja's and this seems VERY usuable, sad thing i can't really script. know there a simple command executed when a player looks down but how to force it server-side when a smoke is used? and if it's not to much trouble, how to edit the maximum duration of a smoke nade, how long it keeps emitting smoke, or another way to realize this? . i would HIGHLY apreciate it if anyone could help me with it.
thnx ^^
__________________
If you can make it, I can break it.

Last edited by ambideXter; 02-18-2009 at 01:56.
ambideXter is offline