Delta-v/Content.Server/Power/Generator
nikthechampiongr ad5628777b
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

(cherry picked from commit 362d56981fd7654f6ebec36f16cc8fabdd04b6a7)
2024-03-24 00:03:28 +01:00
..
ChemicalFuelGeneratorAdapterComponent.cs Allow chemical-fueled generators to use multiple reagents (#24258) 2024-01-27 23:36:08 +01:00
ChemicalFuelGeneratorDirectSourceComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
GasPowerReceiverComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
GasPowerReceiverSystem.cs Convert atmos device events to ref events (#22843) 2023-12-22 23:25:05 +01:00
GeneratorExhaustGasSystem.cs Portable Generator Rework (#19302) 2023-08-25 11:40:42 -07:00
GeneratorSignalControlComponent.cs Adds signal control to portable generators (#24157) 2024-02-08 11:56:22 +01:00
GeneratorSignalControlSystem.cs Adds signal control to portable generators (#24157) 2024-02-08 11:56:22 +01:00
GeneratorSystem.cs Fix chemical fuel generator division by zero (#24793) 2024-02-08 12:07:51 +01:00
PortableGeneratorSystem.cs Simplify DoAfterArgs behavior for movement and distance checks (#25226) 2024-03-24 00:03:28 +01:00
PowerSwitchableSystem.cs UseDelay + ItemCooldown merge (#22502) 2024-01-26 21:32:09 +01:00
SolidFuelGeneratorAdapterComponent.cs Portable Generator Rework (#19302) 2023-08-25 11:40:42 -07:00