Skip to main content

monster_turret

monster_turret icon
Point entity

The Auto Turret is a large gun that comes out of the floor or the ceiling and fires at enemies.

Attributes​

The entity also has these common keys:

  • Naming and triggering: Name
  • Position: Pitch Yaw Roll
  • Appearance: all except Effects
  • Monsters: Classification, Is player ally, Prisoner to, Ignored by, Prisoner, Unkillable, Custom Field Of View, WaitTillSeen, Trigger on death, TriggerTarget and Fade Corpse
KeyDescriptionDefault
Targettarget

Names the entities it fires, which get On when the turret switches on and when it is destroyed, and Off when it switches off.

Trigger ConditionTriggerCondition

Sets the event that fires TriggerTarget.

  • No Trigger (0) - Nothing fires
  • See Player, Mad at Player (1) - The monster sees a player that it is angry at
  • Take Damage (2) - The monster takes damage
  • 50% Health Remaining (3) - The monster's health drops to half or less
  • Death (4) - The monster dies
  • See Player Unconditional (10) - The monster sees a player, whether it is angry at them or not
  • See Player, Not In Combat (11) - The monster sees a player while it isn't fighting
  • Got healed (13) - Someone heals the monster
Default No Trigger (0)
Trigger Alternative ConditionTriggerAltCondition

Sets a second event that fires TriggerTarget. The first of the two events to happen fires it, and only once.

  • No Trigger (0)
  • See Player, Mad at Player (1)
  • Take Damage (2)
  • 50% Health Remaining (3)
  • Death (4)
  • See Player Unconditional (10)
  • See Player, Not In Combat (11)
  • Got healed (13)
Default No Trigger (0)
Custom Search Timemaxsleep

Sets how many seconds the turret keeps searching after it lost its enemy, before it goes back in.

If you leave this key empty or set 0, it is 15.

Custom Turning Rateturnrate

Sets how fast the turret starts turning, in degrees per second, and when it is far off its target, it speeds up to as much as 10 times this.

If you leave this key empty or set 0, it is 30.

Default 0
Orientationorientation

Sets whether the turret stands on the floor or hangs from the ceiling, and a ceiling turret is turned upside down and aims downward.

  • Floor Mount (0)
  • Ceiling Mount (1)
Default Floor Mount (0)
Ignore Friendly DamageFf

Sets whether damage from monsters on its side hurts it.

  • No (0) - All damage hurts it
  • Yes (1) - Damage from monsters on its side doesn't hurt it
Default No (0)

Flags​

32Autostart

The turret comes out by itself when it sees an enemy and goes back to watching after it retracts, while without this flag, it only comes out when you trigger it

64Start Inactive

With Autostart, the turret doesn't watch for enemies until you trigger it once

In combat​

The turret has 200 health, but while it is retracted, damage to it is cut to a tenth, and each of its bullets deals 21 to 56 damage. With Fade Corpse (512), the wreck fades out once its smoke ends, and so does the wreck of one that a monstermaker made, unless the maker's Number of Monsters is 1.

Death triggerHalf-Life Unified SDK​

If Trigger Condition or Trigger Alternative Condition is "Death", the turret fires its TriggerTarget when it is destroyed, once its death ends. A turret only checks its trigger conditions when it takes a new enemy, when a hit leaves it alive and when it is destroyed, so "Got healed" fires at the first hit after the heal.

See also​

Changes since 1.38​

  • Destroyed turrets, sentry guns and ichthyosaur bodies fade away when the map sets the Fade Corpse flag. Their own death code never read the flag. This was a bug in SBO 1.38
  • Fixed a destroyed turret or Sentry Gun keeping its place in its monster maker. The maker never heard that it died. This was a bug in SBO 1.38
  • Fixed turrets, Sentry Guns, the Apache and the Osprey never firing their Trigger Condition. In SBO 1.38, their own AI code never checked it