View Single Post
Author Message
lordoflort
Member
Join Date: Dec 2010
Old 05-07-2016 , 18:19   [R] Rewrite AMX plugin to Sourcemod
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
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.
__________________

Last edited by lordoflort; 05-07-2016 at 18:20.
lordoflort is offline