Raised This Month: $51 Target: $400
 12% 

Remove slow fire rate and recoils when AUG or SG552 is zoomed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Infractem
Member
Join Date: Dec 2016
Old 04-23-2017 , 14:51   Remove slow fire rate and recoils when AUG or SG552 is zoomed
Reply With Quote #1

How do I remove the slow fire rate(and use default fire rate) and the recoils when using AUG or SG552 zoom? Is there any plugin to do this?
Infractem is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-23-2017 , 15:11   Re: Remove slow fire rate and recoils when AUG or SG552 is zoomed
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>

new const g_szWeapons[][] = { "weapon_aug""weapon_sg552" }
#define SHOOT_SPEED 0.0825
#define XO_WEAPON 4
#define m_pPlayer 41
#define m_flNextPrimaryAttack 46

public plugin_init() 
{
    
register_plugin("Normal Fire Rate When Zoomed""1.0""OciXCrom")
    
    for(new 
isizeof(g_szWeapons); i++)
        
RegisterHam(Ham_Weapon_PrimaryAttackg_szWeapons[i], "OnPrimAttack"1)
}

public 
OnPrimAttack(iEnt)
{
    if(
cs_get_user_zoom(get_pdata_cbase(iEntm_pPlayerXO_WEAPON)) == CS_SET_AUGSG552_ZOOM)
        
set_pdata_float(iEntm_flNextPrimaryAttackSHOOT_SPEEDXO_WEAPON)

__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Infractem
Member
Join Date: Dec 2016
Old 04-23-2017 , 15:12   Re: Remove slow fire rate and recoils when AUG or SG552 is zoomed
Reply With Quote #3

Thanks
Infractem is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode