Quote:
Originally Posted by didoWEE
Quote the wrong 
|
1) The code provided will not even compile.
- You've used full stops in RegisterHam instead of commas.
- You've mispelt functions.
- You cannot define a local static variable.
2) PrimaryAttack() is not called on player entities it is called on weapon entities. Therefore the function header is
also incorrect.
3) If you were to hook PrimaryAttack() properly, it would still be by far incorrect for stats logging. Read
this thread.
4) You've poorly managed weapon checking.
5) Your return constants are inappropriate in terms of the forward type, and you don't return a final value.
Please try and get the basics down before you go and confuse people.
__________________