Thread: Pop Grenade
View Single Post
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-09-2023 , 01:14   Re: Pop Grenade
Reply With Quote #17

In the default plugin it already does that, the ReAPI guy forgot to add it.

PHP Code:
    for(new isizeof(g_GrenadeClassNames); i++) {
        
RegisterHam(Ham_Item_Deployg_GrenadeClassNames[i], "CBasePlayerWpn_Deploy"false)
        
RegisterHam(Ham_Weapon_SecondaryAttackg_GrenadeClassNames[i], "Weapon_SecAttack_Pre", .Post false);
    } 
PHP Code:
public CBasePlayerWpn_Deploy(pWeapon)
{
    
g_HandleThrowType[get_member(pWeaponm_pPlayer)] = normal

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-09-2023 at 01:18.
EFFx is offline