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(PLUGIN, VERSION, AUTHOR)
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_Deploy( iEnt )
{
new id = get_pdata_cbase(iEnt, m_pPlayer, 4)
set_pdata_float(id, m_flNextAttack, 0.0)
set_pdata_float(iEnt, m_flNextPrimaryAttack, 0.0, 4)
set_pdata_float(iEnt, m_flTimeWeaponIdle, 0.0, 4)
}
__________________