monster_zombie

monster_zombie #

TWHL

Changes #

  • Unlike original Half-Life, zombies don’t have resistance against Tau-Cannon and tank guns anymore. This is believed to be wrong coding by Valve as zombies lack resistance to against bullets from other weapons.

Skill variables #

  • sk_zombie_health - monster’s health.
  • sk_zombie_dmg_one_slash - one arm damage.
  • sk_zombie_dmg_both_slash - two arms damage.

Default classification #

Alien Monster

Default display name #

Zombie

Soundscripts #

  • Zombie.Idle - idle sounds.
  • Zombie.Alert - alert sounds.
  • Zombie.Pain - pain sounds.
  • Zombie.Die - death sounds. Empty by default.
  • Zombie.Attack - plays occasionally on the slash attack.
  • Zombie.AttackHit - melee attack hit. Derived from NPC.AttackHit
  • Zombie.AttackMiss - melee attack miss. Derived from NPC.AttackMiss

Attacks #

  • Melee Attack 1 - melee.

Animation events #

  • 1 - trace hull attack with right arm. Deals sk_zombie_dmg_one_slash damage. Plays Zombie.AttackHit or Zombie.AttackMiss. Plays Zombie.Attack with 50% chance.
  • 2 - trace hull attack with left arm. Deals sk_zombie_dmg_one_slash damage. Plays Zombie.AttackHit or Zombie.AttackMiss. Plays Zombie.Attack with 50% chance.
  • 3 - trace hull attack with both arms. Deals sk_zombie_dmg_both_slash damage. Plays Zombie.AttackHit or Zombie.AttackMiss. Plays Zombie.Attack with 50% chance.

Entity template examples #

The check melee rules and trace hull attacks properties that emulate monster’s native ones. Could be used as a starting point for further changes.

{
    "monster_zombie": {
        "check_melee_attack1": {
            "distance": 64,
            "dot": 0.7
        },
        "trace_hull_attacks": {
            "1": {
                "distance": 70,
                "punchangle": {
                    "pitch": 5,
                    "roll": -18
                },
                "knock": {
                    "right": -100
                }
            },
            "2": {
                "distance": 70,
                "punchangle": {
                    "pitch": 5,
                    "roll": 18
                },
                "knock": {
                    "right": 100
                }
            },
            "3": {
                "distance": 70,
                "punchangle": {
                    "pitch": 5
                },
                "knock": {
                    "forward": -100
                }
            }
        }
    }
}

Zombified assassins from Delta Paricles that are cloaked while moving.

{
    "zombie_assassin": {
        "own_visual": {
            "model": "models/zombie_assassin.mdl"
        },
        "cloaking": {
            "ability": 1,
            "opacity": [150, 150, 70],
            "cloak_when": ["moving"],
            "cloak_speed": 255
        },
        "soundscripts": {
            "Cloaking.Start": {
                "waves": ["debris/beamstart1.wav"],
                "volume": 0.2
            }
        }
    }
}