Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -73,7 +73,7 @@ public abstract partial class SharedStandingStateSystem : EntitySystem
|
|||||||
if (!TryComp(uid, out StandingStateComponent? standing)) // WD EDIT
|
if (!TryComp(uid, out StandingStateComponent? standing)) // WD EDIT
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RaiseNetworkEvent(new CheckAutoGetUpEvent());
|
RaiseNetworkEvent(new CheckAutoGetUpEvent()); // WD EDIT
|
||||||
|
|
||||||
if (_stun.IsParalyzed(uid))
|
if (_stun.IsParalyzed(uid))
|
||||||
{
|
{
|
||||||
@@ -97,7 +97,7 @@ public abstract partial class SharedStandingStateSystem : EntitySystem
|
|||||||
|
|
||||||
private void OnStandingUpDoAfter(EntityUid uid, StandingStateComponent component, StandingUpDoAfterEvent args)
|
private void OnStandingUpDoAfter(EntityUid uid, StandingStateComponent component, StandingUpDoAfterEvent args)
|
||||||
{
|
{
|
||||||
if (args.Handled) // WD EDIT
|
if (args.Handled || _stun.IsParalyzed(uid)) // WD EDIT
|
||||||
{
|
{
|
||||||
component.CurrentState = StandingState.Lying;
|
component.CurrentState = StandingState.Lying;
|
||||||
return;
|
return;
|
||||||
@@ -236,12 +236,16 @@ public abstract partial class SharedStandingStateSystem : EntitySystem
|
|||||||
standingState.CurrentState = StandingState.Lying;
|
standingState.CurrentState = StandingState.Lying;
|
||||||
Dirty(uid, standingState);
|
Dirty(uid, standingState);
|
||||||
|
|
||||||
var rotation = _transform.GetWorldRotation(uid);
|
var rotation = _transform.GetWorldRotation(uid); // WD EDIT
|
||||||
|
_appearance.TryGetData<bool>(uid, BuckleVisuals.Buckled, out var state, appearance); // WD EDIT
|
||||||
|
|
||||||
|
if (!state) // WD EDIT
|
||||||
|
{
|
||||||
if (rotation.GetDir() is Direction.East or Direction.North or Direction.NorthEast or Direction.SouthEast)
|
if (rotation.GetDir() is Direction.East or Direction.North or Direction.NorthEast or Direction.SouthEast)
|
||||||
_rotation.SetHorizontalAngle(uid, Angle.FromDegrees(270));
|
_rotation.SetHorizontalAngle(uid, Angle.FromDegrees(270));
|
||||||
else
|
else
|
||||||
_rotation.ResetHorizontalAngle(uid);
|
_rotation.ResetHorizontalAngle(uid);
|
||||||
|
}
|
||||||
|
|
||||||
RaiseLocalEvent(uid, new DownedEvent());
|
RaiseLocalEvent(uid, new DownedEvent());
|
||||||
|
|
||||||
@@ -288,6 +292,9 @@ public abstract partial class SharedStandingStateSystem : EntitySystem
|
|||||||
// Optional component.
|
// Optional component.
|
||||||
Resolve(uid, ref appearance, false);
|
Resolve(uid, ref appearance, false);
|
||||||
|
|
||||||
|
if (TryComp(uid, out BuckleComponent? buckle) && buckle.Buckled && !_buckle.TryUnbuckle(uid, uid, buckleComp: buckle)) // WD EDIT
|
||||||
|
return false;
|
||||||
|
|
||||||
if (standingState.CurrentState is StandingState.Standing)
|
if (standingState.CurrentState is StandingState.Standing)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
@@ -115,6 +115,12 @@ public abstract class SharedStunSystem : EntitySystem
|
|||||||
if (!TryComp(uid, out StandingStateComponent? standing) || !(!standing.CanLieDown || standing.AutoGetUp)) // WD EDIT
|
if (!TryComp(uid, out StandingStateComponent? standing) || !(!standing.CanLieDown || standing.AutoGetUp)) // WD EDIT
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (standing.AutoGetUp) // WD EDIT
|
||||||
|
{
|
||||||
|
_standingState.TryStandUp(uid, standing);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_standingState.Stand(uid, standing);
|
_standingState.Stand(uid, standing);
|
||||||
// WD EDIT END
|
// WD EDIT END
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5646,3 +5646,20 @@
|
|||||||
id: 366
|
id: 366
|
||||||
time: '2024-07-10T13:26:50.0000000+00:00'
|
time: '2024-07-10T13:26:50.0000000+00:00'
|
||||||
url: https://api.github.com/repos/frosty-dev/ss14-core/pulls/430
|
url: https://api.github.com/repos/frosty-dev/ss14-core/pulls/430
|
||||||
|
- author: Spatison
|
||||||
|
changes:
|
||||||
|
- message: "\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u043B\u0435\
|
||||||
|
\u0436\u0430\u043D\u0438\u0435 \u043D\u0430 \u043A\u0440\u043E\u0432\u0430\u0442\
|
||||||
|
\u0438"
|
||||||
|
type: Fix
|
||||||
|
- message: "\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D \u0431\u0430\u0433\
|
||||||
|
\ \u0441 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\
|
||||||
|
\u044C\u044E \u0432\u0441\u0442\u0430\u0442\u044C."
|
||||||
|
type: Fix
|
||||||
|
- message: "DoAfter \u043F\u0440\u0438 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\
|
||||||
|
\u0438\u0447\u0435\u0441\u043A\u043E\u043C \u0432\u0441\u0442\u0430\u0432\u0430\
|
||||||
|
\u043D\u0438\u0438"
|
||||||
|
type: Tweak
|
||||||
|
id: 367
|
||||||
|
time: '2024-07-10T18:01:39.0000000+00:00'
|
||||||
|
url: https://api.github.com/repos/frosty-dev/ss14-core/pulls/434
|
||||||
|
|||||||
Reference in New Issue
Block a user