View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-03-2009 , 10:59   Re: Instant Grenades Throwing [Version 1.0]
Reply With Quote #7

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)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline