Special item: Turret
The turret is a special item that players can deploy on the ground (Deployable).
Build-up and disassembly animations should be scalable so the delay for construction/picking-up can be balanced.Usage/Erection: The special item appears at the position the crosshairs are pointing. The turret object is placed and it plays a build-up animation before it becomes active.
On spawn the turret is oriented away from the player character - looking into the same direction as he does. The orientation is relevant as it restricts its field of view.
Picking-up: The player can pick-up the turret by getting close to it and using the interact button (Usable Trigger). On pick-up the turret plays a disassembly-animation before it is removed from the map. While this animation plays the player character can not move or initiate any other action.
An active turret cannot move. It shoots all enemy units in its detection range and in an 180 degree angle in front of it.
Turrets avoid shooting friendly and neutral units.
Attributes
-
Hitpoints – is destroyed if hitpoints are depleted.
-
Build-up time
-
Disassembly time
-
Weapon - uses a data-driven primary weapon.
-
Ammo - can shoot this many times
-
is displayed on the HUD.
-
A turret with depleted ammo can no longer shoot.
-
-
Detection range
(1) After picking-up a turret it can be placed again in a new location. The turret saves how much ammo is depleted so it cannot be recharged by picking-up.