]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Adds signal control to portable generators (#24157)
authorSpeltIncorrectyl <66873282+SpeltIncorrectyl@users.noreply.github.com>
Mon, 29 Jan 2024 14:56:29 +0000 (14:56 +0000)
committerGitHub <noreply@github.com>
Mon, 29 Jan 2024 14:56:29 +0000 (15:56 +0100)
commit5d2ddc0d8b313d80fbcecd6719c5048ec2aea3e7
tree55411da11da29df56a4e84006d6f0264507c735c
parent7bd22762ffbaa61d99d9cad7b30d4dd4553a6719
Adds signal control to portable generators (#24157)

* added signal control to portable generators

* added documentation

* Discard changes to Content.Server/Radio/EntitySystems/HeadsetSystem.cs

* added DeviceNetworkComponent and WirelessNetworkConnectionComponent to generator prototype

* made GeneratorSignalControlComponent nicer

* implemented auto-revving

* added back necessary dependency

* can't send do-after event manually

* repeat now works with auto revving

* fixed

* removed vv

* stopping generating when it is revving now makes it stop revving

* Update Content.Shared/Power/Generator/ActiveGeneratorRevvingComponent.cs

Co-authored-by: Kara <lunarautomaton6@gmail.com>
* used resolve instead of TryComp

---------

Co-authored-by: Julian Giebel <juliangiebel@live.de>
Co-authored-by: Kara <lunarautomaton6@gmail.com>
Content.Client/Power/Generator/GeneratorWindow.xaml.cs
Content.Server/Power/Generator/GeneratorSignalControlComponent.cs [new file with mode: 0644]
Content.Server/Power/Generator/GeneratorSignalControlSystem.cs [new file with mode: 0644]
Content.Server/Power/Generator/PortableGeneratorSystem.cs
Content.Shared/Power/Generator/ActiveGeneratorRevvingComponent.cs [new file with mode: 0644]
Content.Shared/Power/Generator/ActiveGeneratorRevvingSystem.cs [new file with mode: 0644]
Content.Shared/Power/Generator/SharedPortableGeneratorSystem.cs
Resources/Prototypes/Entities/Structures/Power/Generation/portable_generator.yml