mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
# Description Port of https://github.com/WWhiteDreamProject/wwdpublic/pull/2 And now also https://github.com/WWhiteDreamProject/wwdpublic/pull/8 Because Lying Down System is dependent on the Telescope System. # TODO - [x] Reconcile the code with core code, do code cleanup. I'll undraft this when I'm done. Probably not going to be tonight, because I will have to get some sleep soon to get up early for my calculus classes. # Changelog 🆑 Spatison (White Dream) - add: Added lying down system / Добавлена система лежания - tweak: Lying down now uses do-afters that are visible to other people to indicate what is going on. - add: Added telescope system / Добавлена система прицеливания - tweak: Now you can aim from Hristov / Теперь можно прицеливаться из Христова --------- Signed-off-by: VMSolidus <evilexecutive@gmail.com> Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com> # Conflicts: # Content.Client/Input/ContentContexts.cs # Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs # Content.Shared/Input/ContentKeyFunctions.cs # Resources/Prototypes/Entities/Objects/Weapons/Guns/Snipers/snipers.yml # Resources/keybinds.yml
32 lines
892 B
C#
32 lines
892 B
C#
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Standing;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class StandingStateComponent : Component
|
|
{
|
|
[DataField]
|
|
public SoundSpecifier DownSound { get; private set; } = new SoundCollectionSpecifier("BodyFall");
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public StandingState CurrentState { get; set; } = StandingState.Standing;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool Standing { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// List of fixtures that had their collision mask changed when the entity was downed.
|
|
/// Required for re-adding the collision mask.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public List<string> ChangedFixtures = new();
|
|
}
|
|
|
|
public enum StandingState
|
|
{
|
|
Lying,
|
|
GettingUp,
|
|
Standing,
|
|
}
|