-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Infrared Emitters use beam datums (As God intended) (#1539)
* Infrared Emitters use beam datums (As God intended) (#82094) ## About The Pull Request Fixes #64459 Fixes #82052 , probably Fixes #79747 , probably Fixes #81443 Infrared emitters now use beam datums instead of making their own effects and trying to `Move` it out until it hits something This means 1. Infrared emitters are (probably) more responsive 2. Infrared emitters (probably) react to less things they shouldn't react to (such as projectiles) This also means - Infrared emitters (when visible) are emissive (and glow in the dark slightly). Kinda neat? If you don't want it you can obviously just make it invisible - You can limbo under beams? Maybe you can do that already? IDK Other notes - Beams no longer set their beam component's `x`, `y` directly, now using `forceMove` ![image](https://github.com/tgstation/tgstation/assets/51863163/1d516703-1f95-4c8e-a83b-89acaf20e5af) ![image](https://github.com/tgstation/tgstation/assets/51863163/ddb8eb51-f787-4def-82bd-8c2b878327f6) https://github.com/tgstation/tgstation/assets/51863163/29b76b58-ef36-4c4a-a3b2-017b625389dd ## Changelog :cl: Melbert refactor: Infrared emitters now function better (or at least more how you would expect them) (hopefully). Report any oddities /:cl: * Infrared Emitters use beam datums (As God intended) --------- Co-authored-by: MrMelbert <[email protected]>
- Loading branch information
1 parent
8c02f0d
commit c88321f
Showing
4 changed files
with
329 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
/// Called before beam is redrawn | ||
#define COMSIG_BEAM_BEFORE_DRAW "beam_before_draw" | ||
#define BEAM_CANCEL_DRAW (1 << 0) | ||
|
||
/// Sent to a beam when an atom enters any turf the beam covers: (obj/effect/ebeam/hit_beam, atom/movable/entered) | ||
#define COMSIG_BEAM_ENTERED "beam_entered" | ||
|
||
/// Sent to a beam when an atom exits any turf the beam covers: (obj/effect/ebeam/hit_beam, atom/movable/exited) | ||
#define COMSIG_BEAM_EXITED "beam_exited" | ||
|
||
/// Sent to a beam when any turf the beam covers changes: (list/datum/callback/post_change_callbacks) | ||
#define COMSIG_BEAM_TURFS_CHANGED "beam_turfs_changed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.