[HELP] Weapon Speed
Can anyone explain to me how these works? how is that value measured in time?
Code:
set_pdata_float(iEnt, m_flNextSecondaryAttack, 0.0700, 4); |
Re: [HELP] Weapon Speed
It sets when the secondary attack can occur again for that weapon. The time is in seconds.
|
Re: [HELP] Weapon Speed
am i right if i say this is worse than callin prethink?
|
Re: [HELP] Weapon Speed
No, far from it. What makes you think this is so bad? Not many things are worse than prethink.
|
Re: [HELP] Weapon Speed
called often
|
Re: [HELP] Weapon Speed
Quote:
|
Re: [HELP] Weapon Speed
Sorry, forgot to mention, ham primary attack
|
Re: [HELP] Weapon Speed
PrimaryAttack hook will keep firing if the attack1 button is pressed, even if the player is out of ammo.
Maybe try setting it with this instead? https://forums.alliedmods.net/showthread.php?t=54887 |
Re: [HELP] Weapon Speed
I use this in my extra items:
Code:
Code:
|
Re: [HELP] Weapon Speed
CrazY, I never said it doesn't work, but if you put a client print in that callback you will see it spammed when you hold down primary attack button, even if no bullets are firing. It's my thought you would only want to set that when a bullet actually leaves the players gun.
|
| All times are GMT -4. The time now is 18:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.