orbit/js
Brian Fertig 5890e93cde Enforce on-screen rule for combat engagement and hits
- Add inView() pure geometry helper to test if a craft's visual circle is at least partly within the camera's visible rect
- Gate enemy fire, auto-fire target selection, currentTarget lock, and bullet collision checks behind craftVisible() so off-screen hostiles hold lances, can't be engaged, and are immune to tracers until they fly into view
- Extend pickTarget() with an optional qualifies predicate to narrow the candidate pool (used for the on-screen rule)
- Document the rule in data/combat.json and CombatSystem class comments
2026-09-17 18:12:58 -06:00
..
build
…
combat Enforce on-screen rule for combat engagement and hits 2026-09-17 18:12:58 -06:00
comms
…
config
…
dev
…
economy
…
entities
…
galaxy
…
mining
…
quests
…
reputation
…
research
…
save
…
scan
…
scenes
…
tether
…
ui
…
utils
…
vendor
…
vignettes
…
visuals
…
main.js
…