monster_turret

monster_turret #

TWHL

Changes #

  • Death and 50% Health Remaining trigger conditions now work for turrets.

Skill variables #

  • sk_turret_health - monster’s health.
  • sk_12mm_bullet - bullet damage.

Default classification #

Machine

Soundscripts #

  • Turret.Alert - when detected an enemy.
  • Turret.Deploy - deploy sound.
  • Turret.Undeploy - retire sound.
  • Turret.Ping - pinging noise. Played every second while searching for enemy.
  • Turret.Spinup - a looping spin sound.
  • Turret.Die - death sound.
  • Turret.Shoot - single shot.
  • Turret.SpinUpCall - starting spin up.
  • Turret.SpinDownCall - spin down.

Visuals #

  • Turret.Glow - turret sprite. Active while searching for enemy.

Entity template examples #

The trace attack rules that emulate monster’s native ones. Could be used as a starting point for further changes.

{
    "monster_turret": {
        "trace_attack": [
            {
                "conditions": {
                    "hitgroup": 10
                },
                "modifier": {
                    "dmg": "=0.1"
                },
                "effects": {
                    "ricochet": {
                        "chance": 0.1,
                        "scale": [1, 2],
                        "certain_on_new_frame": true
                    }
                }
            }
        ]
    }
}