Skip to content

Make lasers hitscan - #527

Draft
Jackriip wants to merge 3 commits into
masterfrom
feature/hitscan-lasers
Draft

Jackriip wants to merge 3 commits into
masterfrom
feature/hitscan-lasers

Conversation

@Jackriip

Copy link
Copy Markdown
Member

Lasers now hit instantly. They fire tg's existing laser beam tracer instead of a travelling bolt. Damage, range and fire rate are unchanged; the buff is that lasers can no longer be dodged.

Now hitscan

  • The standard laser family (/obj/projectile/beam/laser and subtypes): laser gun, retro, captain's antique, hellfire, carbines (including Cybersun), heavy laser, musket, flare, the energy gun's kill mode, laser turrets, the Cybersun AI core and outpost defense lasers.
  • Scattershot and scatter shells, the weak/penetrator beams used by the laser gatling and some turrets, and practice lasers.

Coloured lasers (carbine, musket, Cybersun) draw the standard red beam, since tg has no matching coloured tracers.

Still bolts

  • Disablers and other stun beams, X-ray, pulse, emitters, laser tag and CTF.
  • Ship defense turrets.
  • The accelerator laser cannon (it grows with distance and would become a cross-map sniper).
  • Genetics laser eyes.
  • Mech lasers, which now fire their own non-hitscan subtypes so mechs keep their current balance.

NPCs

NPCs and turrets that fire lasers become hitscan too. In green zones that is only the plain ruin and beach pirates. Faction pirates, the Interdyne, IRS and NT patrol bosses, and pirate, ruin and outpost turrets in yellow and red zones get noticeably more dangerous.

Notes

  • All changes live in voidcrew/edits/modules/projectiles/projectile/beams.dm; no upstream files are edited.
  • Reflection, ricochet, shields and glass work as before (hitscan uses the same per-tile hit code).
  • Unit tests check which projectile types are hitscan and that a fired laser lands.
  • Not playtested yet.

Laser guns, laser NPCs and laser turrets now fire tg's hitscan beam with the
existing laser tracer instead of a travelling bolt. Damage is unchanged.
Disablers, X-ray, pulse, emitters, the ship defense turret, the accelerator
cannon, laser eyes and mech lasers stay bolts.
@Jackriip
Jackriip marked this pull request as draft November 11, 2026 05:08
@RandomDudeFromTheRim

Copy link
Copy Markdown
Contributor

Coloured lasers (carbine, musket, Cybersun) draw the standard red beam, since tg has no matching coloured tracers.

i wonder can you just turn the tracer into a white placeholder and then just transform whatever color you want onto it?
or is it impossible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants