Quote:
Originally Posted by HamletEagle
Edit:
Just try this:
Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
const m_flTimeWeaponIdle = 48
const XoCGrenade = 4
public plugin_init()
{
new const CallBack[] = "CGrenade_PrimaryAttack"
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_smokegrenade", CallBack, true)
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_flashbang" , CallBack, true)
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_hegrenade" , CallBack, true)
}
public CGrenade_PrimaryAttack(GrenadeEntity)
{
if(pev_valid(GrenadeEntity))
{
set_pdata_float(GrenadeEntity, m_flTimeWeaponIdle, 0.0, XoCGrenade)
}
}
|
Can anyone rewrite this for sourcemod please? It would be much appreciated!
EDIT:
Worth mentioning, this plugin is supposed to make grenades throw instantly.
__________________