Ballista

Ballista

Classname: obj_ballista
Purpose: Artillery
H2 Code: object.hc
The ballista can either track the player, firing at regular intervals, or, if it has an trigger control, the player can control it, and blast away at other stuff. To track the player, the spawnflag 1 (BALLISTA_TRACK) must be set; this seems to override control of ballista by player.

Fields

angle Value is a number, direction ballista starts off pointing (degrees; 0 default = West).
health Value is a number; default = 0 means indestructible.
dmg Value is a number; amount of damage projectile will do (default = 50).
speed Value is a number; delay, in seconds, between firings (higher number means longer wait) (default = 5). Active only when player is not in control.
targetname Value is a name, the target-value of a trigger_control entity. Eutectic says that if this is specified, ballista won't shoot at player, but I haven't found this to be true if spawnflags is set to 1 (if spawnflags isn't so set, ballista doesn't shoot at me anyway).
cnt Value is a number, supposedly degrees of pitch downward off from the horizontal starting point position (default = 30), but I haven't managed to make this field do anything.
count Value is a number, supposedly degrees per movement (default = 5), but again I can't make it work.
mass Value is a number, supposedly effort needed to push, but I find them immoveable regardless.
spawnflags If set to 1, ballista tracks player; if set to 0, it doesn't (and may be controlled by player). I haven't managed to take control of a ballista with spawnflags 1.

Back to the list.