Fix godmode mispredicts (#18524)
Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
This commit is contained in:
14
Content.Shared/Damage/Components/GodmodeComponent.cs
Normal file
14
Content.Shared/Damage/Components/GodmodeComponent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Content.Shared.Damage.Systems;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Damage.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedGodmodeSystem))]
|
||||
public sealed class GodmodeComponent : Component
|
||||
{
|
||||
[DataField("wasMovedByPressure")]
|
||||
public bool WasMovedByPressure;
|
||||
|
||||
[DataField("oldDamage")]
|
||||
public DamageSpecifier? OldDamage = null;
|
||||
}
|
||||
Reference in New Issue
Block a user