Vehicle Coding

Artillery remotecam limits

Say you have an artillery piece with barrel elevation limits like this:

rem soviet M30 12mm .tweak file
rem RotationalBundle containing the Barrel

ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/15/0

To translate this into the correct elevation limits for the remotecam, do these steps:

so on the remotecam it looks like this:

rem Soviet M30 120mm remotecam .tweak
rem remotecam elevation dial

ObjectTemplate.setMinRotation 0/0/-15
ObjectTemplate.setMaxRotation 0/0/20

It is important that the maxSpeed and Acceleration also have similar values:

rem barrel
ObjectTemplate.setMaxSpeed 0/5/0
ObjectTemplate.setAcceleration 0/250/0

rem remotecam
ObjectTemplate.setMaxSpeed 0/0/5
ObjectTemplate.setAcceleration 0/0/-250

These speed and acceleration settings work well for any artillery gun, it’s easier for players if they all move the same.