[HELP] Remove Rate of Fire Modifier on AUG/SG552
Hi guys! As the title says. AUG and SG552 changes rate of fire when you zoom in. I want to remove the modifier so it would fire normally. I was trying to hook it on Event_CurWeapon but the result is kinda--let's say erratic to keep it short. Is there an offset I don't know of that controls this?...
|
Re: [HELP] Remove Rate of Fire Modifier on AUG/SG552
https://github.com/s1lentq/ReGameDLL..._sg552.cpp#L94
You gotta change CD_flNextAttack to a certain value. |
Re: [HELP] Remove Rate of Fire Modifier on AUG/SG552
Quote:
|
Re: [HELP] Remove Rate of Fire Modifier on AUG/SG552
Hi everyone! So I found a solution so that AUG & SG552 will shoot at the same rate, zoomed in or not. Here's what I came up with:
PHP Code:
|
Re: [HELP] Remove Rate of Fire Modifier on AUG/SG552
So why don't you hook PrimaryAttack and set the value there? Why do you need CurWeapon exactly?
|
Re: [HELP] Remove Rate of Fire Modifier on AUG/SG552
Quote:
EDIT: Works intermittently, often not at all. When it works and you don't let go of the trigger it works fine. If you zoom-in and do short bursts then it sometimes switches back and forth from fast to slow, often slow. Perhaps that's the reason the guy put it in CurWeapon... PHP Code:
|
Re: [HELP] Remove Rate of Fire Modifier on AUG/SG552
Here it is how it works(looking at AUG):
1.CAUG::SecondaryAttack is called when right click is pressed and it changes the FOV to simulate zooming. 2.Inside CAUG:: PrimaryAttack FOV is checked and AUGFire is called with different values depending on zoom status(zoomed in/out): 0.135 when zoomed it and 0.0825 when normal. This value is passed in flCycleTime parameter. 3.Inside AUGFire: m_flNextPrimaryAttack and m_flNextSecondaryAttack are set to GetNextAttackDelay(flCycleTime) which translates(for our purpose) to flCycleTime + 0.0 = flCycleTime. Therefore flCycleTime controls the rate of fire. Here is what you are doing: Ham_Weapon_PrimaryAttack pre: set m_flNextPrimaryAttack PrimaryAttack is executed -> AUGFire is executed -> game changes m_flNextPrimaryAttack overriding your change Long story short: hook as POST not PRE. Also your value is wrong, it should be 0.0825 for default rate of fire. |
Re: [HELP] Remove Rate of Fire Modifier on AUG/SG552
Quote:
|
| All times are GMT -4. The time now is 02:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.