]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Station AI ability to electricute doors (#32012)
authorFildrance <fildrance@gmail.com>
Fri, 27 Sep 2024 07:22:17 +0000 (10:22 +0300)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2024 07:22:17 +0000 (17:22 +1000)
commit4bcf3c3c0e89c8fdeef442571e8014c35f9624f0
treef9bca4470ebf6fcf8525399050b028c916e96fcc
parent0d26bb0320d579aec25748d1854e232f8d1dc24a
Station AI ability to electricute doors (#32012)

* Boom! Emergency access!

* Emergency access sound

* locale

* Updated sounds

* bleh

* Door electrify base

* feat: popups on attempt to activate AI action when wires cut

* refactor: use SharedApcPowerReceiverComponent to check if AI can interact with door

* refactor: added icon and sound for door overcharge

* meta.json should use tabs not spaces

* refactor: extracted sounds for airlock overcharge to static field in system

* refactor: cleanup, ScarKy0 mentions for resources

* refactor: removed unused textures

* feat: now notification is displayed when AI attempting to interact with door which have wire cut

* StationAiWhitelistComponent is properly gating  BUI OnMessageAttempt, SharedPowerReceiverSystem.IsPowered is now used to check if device powered

* refactor: use PlayLocal to play electrify sound only for AI player

* refactor: SetBoltsDown now uses TrySetBoltDown, checks for power.

* bolts now check for power using SharedPowerReceiverSystem

* electrify localization and louder electrify sounds

* extracted ShowDeviceNotRespondingPopup, reverted airlocks not opening/closing when ai wire was cut

* refactor: cleanup

* New sprites and fixes

* Copyright

* even more sprite changes

* refactore: cleanup, rename overcharge => electrify

---------

Co-authored-by: ScarKy0 <scarky0@onet.eu>
Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
30 files changed:
Content.Client/Silicons/StationAi/StationAiSystem.Airlock.cs
Content.Server/Administration/Systems/AdminVerbSystem.Tools.cs
Content.Server/Construction/Completions/AttemptElectrocute.cs
Content.Server/Doors/WireActions/DoorBoltWireAction.cs
Content.Server/Electrocution/ElectrocutionSystem.cs
Content.Server/Power/PowerWireAction.cs
Content.Server/Remotes/DoorRemoteSystem.cs
Content.Shared/Doors/Components/AirlockComponent.cs
Content.Shared/Doors/Systems/SharedAirlockSystem.cs
Content.Shared/Doors/Systems/SharedDoorSystem.Bolts.cs
Content.Shared/Doors/Systems/SharedDoorSystem.cs
Content.Shared/Electrocution/Components/ElectrifiedComponent.cs [moved from Content.Server/Electrocution/Components/ElectrifiedComponent.cs with 65% similarity]
Content.Shared/Electrocution/SharedElectrocutionSystem.cs
Content.Shared/Power/EntitySystems/SharedPowerReceiverSystem.cs
Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs
Content.Shared/Silicons/StationAi/SharedStationAiSystem.Held.cs
Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
Resources/Audio/Machines/airlock_electrify_off.ogg [new file with mode: 0644]
Resources/Audio/Machines/airlock_electrify_on.ogg [new file with mode: 0644]
Resources/Audio/Machines/airlock_emergencyoff.ogg [new file with mode: 0644]
Resources/Audio/Machines/airlock_emergencyon.ogg [new file with mode: 0644]
Resources/Audio/Machines/attributions.yml
Resources/Locale/en-US/silicons/station-ai.ftl
Resources/Textures/Interface/Actions/actions_ai.rsi/bolt_door.png [new file with mode: 0644]
Resources/Textures/Interface/Actions/actions_ai.rsi/door_overcharge_off.png [new file with mode: 0644]
Resources/Textures/Interface/Actions/actions_ai.rsi/door_overcharge_on.png [new file with mode: 0644]
Resources/Textures/Interface/Actions/actions_ai.rsi/emergency_off.png [new file with mode: 0644]
Resources/Textures/Interface/Actions/actions_ai.rsi/emergency_on.png [new file with mode: 0644]
Resources/Textures/Interface/Actions/actions_ai.rsi/meta.json
Resources/Textures/Interface/Actions/actions_ai.rsi/unbolt_door.png [new file with mode: 0644]