User Tools

Site Tools


buildings:building_types:autoturret

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.

buildings/building_types/autoturret.txt · Last modified: 2023/07/15 16:31 by mit

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki