DOOM.wad
README.md
DoomMonster
Doom-style enemy AI on a billboard sprite entity: chases the local player on the XZ plane within sight range, attacks on a cooldown (contact bite, hitscan shot, or fireball projectile by type), and drops flat when health reaches 0.
Public fields
health: number— hit points.speed: number— chase speed in metres/second.damage: number— contact (melee) damage per hit.sight: number— aggro range in metres.attack: string—melee,hitscan, orprojectile.attackDamage: number— ranged-attack damage.attackCooldown: number— seconds between ranged attacks.
Usage
entity(id).component.add("DoomMonster", { health = 60, speed = 2.4, attack = "projectile", attackDamage = 8 })