Fuselage rust stage 2 (#629)

* the definition of insanity

* the definition of insanity

* the definition of insanity

* we have hullrot at home

* maybe the real hullrot was the friends we made along the way

* john hullrot

* i am going to hullroooooot

* it's hullrotver

* we're so hullback

* we're rotting the hull with this one

* hullmerge

* the hullrot is leaking

* never gonna rot you up

* hullfresh

* john starsector

* god i wish we had grid collision damage

* you can tell I am very tired because I stopped forcing a hullrot joke into every commit message

* hr

* this is a surprise sprite that will help us later

* motherfucker

* i have nothing good to say

* still nothing

* brb

* random letter random letter random letter dash random number random number random number

* ass

* blast

* ffs

* fcuk

* RE: ffs

* RE: RE: ffs

* гнида жестяная

* continue

* i hate tests

* i love tests

* slide to the right

* i hate tests again

* what the fuck

* ты шиз?

* ??

* bbgun
This commit is contained in:
RedFoxIV
2025-06-28 11:31:07 +03:00
committed by GitHub
parent 05f6ae2d4c
commit 0536fc8645
132 changed files with 1957 additions and 425 deletions

View File

@@ -7,18 +7,18 @@ public partial class RemoteControlSystem
{
private void InitializeUser()
{
SubscribeLocalEvent<RemoteControlUserComponent, ComponentShutdown>(OnUserShutdown);
SubscribeLocalEvent<RemoteControllingComponent, ComponentShutdown>(OnUserShutdown);
SubscribeLocalEvent<RemoteControlUserComponent, MobStateChangedEvent>(OnUserMobStateChanged);
SubscribeLocalEvent<RemoteControllingComponent, MobStateChangedEvent>(OnUserMobStateChanged);
}
private void OnUserShutdown(EntityUid uid, RemoteControlUserComponent comp, ComponentShutdown args)
private void OnUserShutdown(EntityUid uid, RemoteControllingComponent comp, ComponentShutdown args)
{
if (TryComp<RemoteControlTargetComponent>(comp.Target, out var targetComp) && targetComp.User == uid)
if (TryComp<RemoteControllableComponent>(comp.Target, out var targetComp) && targetComp.User == uid)
EndRemoteControl((uid, comp), (comp.Target, targetComp));
}
private void OnUserMobStateChanged(EntityUid uid, RemoteControlUserComponent comp, MobStateChangedEvent args)
private void OnUserMobStateChanged(EntityUid uid, RemoteControllingComponent comp, MobStateChangedEvent args)
{
if (args.NewMobState != MobState.Alive)
EndRemoteControl((uid, comp));