Skip to main content

monster_miniturret

monster_miniturret icon
Point entity

The Mini Auto Turret is a small 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 mini 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 mini 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 mini 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 mini turret stands on the floor or hangs from the ceiling, and a ceiling mini turret is turned upside down and aims downward.

  • Floor Mount (0)
  • Ceiling Mount (1)
Default Floor Mount (0)
Preview Sequencesequence

Only sets the animation of the model preview in the editor, because in the game the turret picks its own animations.

  • idle_off (0)
  • fire (1)
  • spin (2)
  • deploy (3)
  • retire (4)
  • die (5)
Default idle_off (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 mini turret comes out by itself when it sees an enemy and goes back in when it loses it, while without this flag, it only comes out when you trigger it

64Start Inactive

With Autostart, the mini turret doesn't come out by itself until you trigger it once

In combat​

The mini turret has 220 health, but while it is retracted, damage to it is cut to a tenth, and each of its bullets deals 8 to 22 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 mini turret fires its TriggerTarget when it is destroyed, once its death ends. A mini 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