Delta-v/Content.Server/Nutrition/EntitySystems
nikthechampiongr 362d56981f
Simplify DoAfterArgs behavior for movement and distance checks (#25226)
* Merge BreakOnWeightlessMove and BreakOnMove. Provide different theshold for weightless movement.

* Adjust WeightlessMovementThresholds. Put a thing I forgot to put in the doafterargs.

* Make DoAfterArgs only use OnMove to determine whether to check for
movement and MoveThreshold to determine the threshold regardless of
weightlessness. Gave DistanceThreshold a default value which will always
be checked now.

* Fix issue introduced by merge.

* Use interaction system for determining whether a distance is within range

* Fix incorrect doafter args introduced by previous merge.
Forgor to commit these.

* Exorcise ghost.

The execution system should have been deleted when I merged previously.
For a reason I cannot comprehend it came back, but only the execution
system.

* Exorcise ghost Pt. 2

* Allow for movement check to be overriden in zero g and adjust doafter args where needed.

You can now override checking for movement in zero g with the BreakOnWeightlessMove bool. By default it will check.
The following doafters were made to ignore the movement check in zero g:
- Healing yourself with healing items,
- Removing embedded projectiles,
- Using tools like welders and crowbars

* Adjust distance for cuffing/uncuffing to work. Make injections not break on weightless movement.

* Fix evil incorrect and uneeded comments
2024-03-19 21:09:00 +11:00
..
AnimalHusbandrySystem.cs Use new ComponentPauseGenerator (#25183) 2024-02-26 14:36:19 +11:00
CreamPieSystem.cs Fix cream pie bomb when eaten or sliced (#25928) 2024-03-13 19:36:08 +11:00
DrinkSystem.cs Simplify DoAfterArgs behavior for movement and distance checks (#25226) 2024-03-19 21:09:00 +11:00
FatExtractorSystem.cs Use new ComponentPauseGenerator (#25183) 2024-02-26 14:36:19 +11:00
FlavorProfileSystem.cs Revert 'Revert 'Solution Entities'' (#23168) 2023-12-29 08:47:43 -04:00
FoodSystem.cs Simplify DoAfterArgs behavior for movement and distance checks (#25226) 2024-03-19 21:09:00 +11:00
IngestionBlockerSystem.cs Fix masks not toggling voice mask component (#22506) 2023-12-14 20:39:11 -05:00
OpenableSystem.cs Add prediction to Openable (#25477) 2024-02-23 12:09:43 +11:00
SliceableFoodSystem.cs Fix cream pie bomb when eaten or sliced (#25928) 2024-03-13 19:36:08 +11:00
SmokingSystem.Cigar.cs Revert 'Revert 'Solution Entities'' (#23168) 2023-12-29 08:47:43 -04:00
SmokingSystem.SmokingPipe.cs Revert 'Revert 'Solution Entities'' (#23168) 2023-12-29 08:47:43 -04:00
SmokingSystem.Vape.cs Simplify DoAfterArgs behavior for movement and distance checks (#25226) 2024-03-19 21:09:00 +11:00
SmokingSystem.cs Revert 'Revert 'Solution Entities'' (#23168) 2023-12-29 08:47:43 -04:00
TrashOnSolutionEmptySystem.cs Fix TrashOnSolutionEmptySystem modifying uninitialized entities (#23798) 2024-01-09 13:11:22 -05:00
UtensilSystem.cs Fix Butcherable handling, ItemSlots for clown shoes (#25661) 2024-03-13 21:03:14 +11:00