Media
18 mb recording won't fit on github:
https://cdn.discordapp.com/attachments/1255902264309321851/1260354667578261504/weeee-2024-07-10_00.57.23.mp4?ex=668f0441&is=668db2c1&hm=d338a3499bf47780a66b7ba96d5e8830d8cb4167064423b8983b2d0144b7aa88&
---
# Changelog
:cl:
- add: You can now lie down and stand up at will! The default keybind
for it is "R", but it can be changed in settings.
---------
Signed-off-by: Mnemotechnican <69920617+Mnemotechnician@users.noreply.github.com>
Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
---
Content.Client/Input/ContentContexts.cs | 1 +
.../Options/UI/Tabs/KeyRebindTab.xaml.cs | 1 +
.../NPC/Systems/NPCCombatSystem.Ranged.cs | 1 +
.../Standing/LayingDownComponent.cs | 14 +++
Content.Server/Standing/LayingDownSystem.cs | 101 ++++++++++++++++++
Content.Shared/Input/ContentKeyFunctions.cs | 1 +
.../Weapons/Ranged/Systems/SharedGunSystem.cs | 8 ++
.../en-US/escape-menu/ui/options-menu.ftl | 1 +
Resources/Locale/en-US/movement/laying.ftl | 7 ++
.../Prototypes/Entities/Mobs/Species/base.yml | 1 +
Resources/keybinds.yml | 3 +
11 files changed, 139 insertions(+)
create mode 100644 Content.Server/Standing/LayingDownComponent.cs
create mode 100644 Content.Server/Standing/LayingDownSystem.cs
create mode 100644 Resources/Locale/en-US/movement/laying.ftl
diff --git a/Content.Client/Input/ContentContexts.cs b/Content.Client/Input/ContentContexts.cs
index ca22ab095d6..07c1349aac7 100644
--- a/Content.Client/Input/ContentContexts.cs
+++ b/Content.Client/Input/ContentContexts.cs
@@ -69,6 +69,7 @@ public static void SetupContexts(IInputContextContainer contexts)
human.AddFunction(ContentKeyFunctions.OpenBackpack);
human.AddFunction(ContentKeyFunctions.OpenBelt);
human.AddFunction(ContentKeyFunctions.OfferItem);
+ human.AddFunction(ContentKeyFunctions.ToggleStanding);
human.AddFunction(ContentKeyFunctions.MouseMiddle);
human.AddFunction(ContentKeyFunctions.ArcadeUp);
human.AddFunction(ContentKeyFunctions.ArcadeDown);
diff --git a/Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs b/Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs
index 9daca74dd3a..1ab092c2ddd 100644
--- a/Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs
+++ b/Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs
@@ -184,6 +184,7 @@ void AddCheckBox(string checkBoxName, bool currentState, Action