Revert "Door opening tweaks" (#17395)
This commit is contained in:
parent
6120907ef5
commit
b67209cb24
|
|
@ -48,6 +48,16 @@ public sealed class DoorSystem : SharedDoorSystem
|
|||
SubscribeLocalEvent<DoorComponent, GotEmaggedEvent>(OnEmagged);
|
||||
}
|
||||
|
||||
protected override void OnActivate(EntityUid uid, DoorComponent door, ActivateInWorldEvent args)
|
||||
{
|
||||
// TODO once access permissions are shared, move this back to shared.
|
||||
if (args.Handled || !door.ClickOpen)
|
||||
return;
|
||||
|
||||
TryToggleDoor(uid, door, args.User);
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
protected override void SetCollidable(
|
||||
EntityUid uid,
|
||||
bool collidable,
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@ public abstract class SharedDoorSystem : EntitySystem
|
|||
SubscribeLocalEvent<DoorComponent, ComponentGetState>(OnGetState);
|
||||
SubscribeLocalEvent<DoorComponent, ComponentHandleState>(OnHandleState);
|
||||
|
||||
SubscribeLocalEvent<DoorComponent, InteractedNoHandEvent>(OnInteractedNoHand);
|
||||
SubscribeLocalEvent<DoorComponent, ActivateInWorldEvent>(OnActivate);
|
||||
|
||||
SubscribeLocalEvent<DoorComponent, StartCollideEvent>(HandleCollide);
|
||||
|
|
@ -180,22 +179,9 @@ public abstract class SharedDoorSystem : EntitySystem
|
|||
#endregion
|
||||
|
||||
#region Interactions
|
||||
|
||||
private void OnInteractedNoHand(EntityUid uid, DoorComponent component, InteractedNoHandEvent args)
|
||||
protected virtual void OnActivate(EntityUid uid, DoorComponent door, ActivateInWorldEvent args)
|
||||
{
|
||||
if (args.Handled || !component.ClickOpen || !Tags.HasTag(args.User, "DoorBumpOpener"))
|
||||
return;
|
||||
|
||||
TryToggleDoor(uid, component, args.User, predicted: true);
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
public void OnActivate(EntityUid uid, DoorComponent door, ActivateInWorldEvent args)
|
||||
{
|
||||
if (args.Handled || !door.ClickOpen)
|
||||
return;
|
||||
|
||||
TryToggleDoor(uid, door, args.User, predicted: true);
|
||||
// avoid client-mispredicts, as the server will definitely handle this event
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2191,9 +2191,9 @@
|
|||
accent: mouse
|
||||
- type: Tag
|
||||
tags:
|
||||
- Hamster
|
||||
- CannotSuicide
|
||||
- Trash
|
||||
- CannotSuicide
|
||||
- Hamster
|
||||
- type: Respirator
|
||||
damage:
|
||||
types:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
components:
|
||||
- type: Tag
|
||||
tags:
|
||||
- DoorBumpOpener
|
||||
- FootstepSound
|
||||
- type: InputMover
|
||||
- type: MobMover
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
volume: 3
|
||||
- type: Tag
|
||||
tags:
|
||||
- DoorBumpOpener
|
||||
- FootstepSound
|
||||
- type: Butcherable
|
||||
butcheringType: Knife
|
||||
|
|
|
|||
Loading…
Reference in New Issue