Log inGet started
World

DOOM.wad

Branchmain
Branchesmain
Commit309bbc2517

README.md

DoomWeapon

Player pistol on the doom_game entity: a left-click fires a hitscan ray along the camera forward, damaging the nearest live DoomMonster within range and a small cone, and decrements DoomGame ammo.

Public fields

  • damage: number — damage per shot.
  • range: number — maximum hit distance in metres.
  • coneDeg: number — half-angle of the aim cone in degrees.

Usage

entity(id).component.add("DoomWeapon", { damage = 34, range = 45, coneDeg = 4 })