its in there, just above the quick reference part
Quote:
Originally Posted by KCE
Custom Weapon ROF (Rate-of-fire)- I did this part on-the-fly...anyways there are, of course, many ways to do this. This is just one way; there may be others methods that could be better suited for your situation; just take a look at the above snippet from the Spawn Chat protection plugin.
- Also the subtraction of the 0.001 is not neccessary but feel free to do it if needed. I believe it is done because it is checked with greater than (>) so the delay is slightly longer but only by a very miniscule amount.
- Create some variables to store some info:
Code:
new g_NextAttack[33]; //stores players' next attack times
new g_BlockAnim[33]; //stores players' variable for whether to block animation in UpdateClientData_Post
new CVAR_rof; //"pointer" to CVAR containing the rof; could also be define
...
|
__________________