Changed weapon fire rates, added capped range.
Added locked weapon range.

Also, added small utility function.
Changed some things.