Automated Turret Buildings
Automated Turret buildings that are not fully damaged will automatically fire at appropriate players nearby.
The turret will only fire at players who belong to a different team than the one the building has been set to. (If the turret building is not set to a team, it will shoot at anyone on a team, but not players who are also not on a team).
The weapon fired is set in the buildings editor in the buildings 'Trigger Code' field.
The game assumes the model used for the turret building has a horizontal and vertical turret included, these are updated to reflect the current aim of the turret.
Current Limitations
Currently automated turrets rely on some hardcoded values and limited implementations:
- Maximum range for a target is currently fixed at 30m
- Once a target is acquired the weapon is fired every second and a half, irrespective of weapon settings.
- The turret does not take into account gravity or any other weapon offsets when aiming.
These limitations may be addressed in future versions.