Add function for weapon cooldown detection. Add rudimentary debugdrawing.