Truck+gun turning script

Here’s the script Nemo asked for. Basically it makes guns towed by trucks behave a bit better.
Also I modified the constants.h - added MIN, MAX and ABS there (very useful those, esp. ABS).