From 49d040514fe85367e92c9977bc3bb66a0d3d400f Mon Sep 17 00:00:00 2001 From: Acruid Date: Sat, 20 Feb 2021 11:06:26 -0800 Subject: [PATCH] Added keybinds to rotate the camera. (#3335) Added noRot flag to player and ghost sprites so that they stay upright. --- Resources/Prototypes/Entities/Mobs/Player/observer.yml | 1 + Resources/Prototypes/Entities/Mobs/Species/human.yml | 1 + Resources/keybinds.yml | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/Resources/Prototypes/Entities/Mobs/Player/observer.yml b/Resources/Prototypes/Entities/Mobs/Player/observer.yml index 1c67dc2a0f..4d737baa6f 100644 --- a/Resources/Prototypes/Entities/Mobs/Player/observer.yml +++ b/Resources/Prototypes/Entities/Mobs/Player/observer.yml @@ -29,6 +29,7 @@ - type: Ghost - type: Sprite netsync: false + noRot: true drawdepth: Ghosts sprite: Mobs/Ghosts/ghost_human.rsi state: animated diff --git a/Resources/Prototypes/Entities/Mobs/Species/human.yml b/Resources/Prototypes/Entities/Mobs/Species/human.yml index b899c5ca08..9bd0cac627 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/human.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/human.yml @@ -34,6 +34,7 @@ state: full - type: Sprite netsync: false + noRot: true drawdepth: Mobs layers: - map: [ "enum.HumanoidVisualLayers.Chest" ] diff --git a/Resources/keybinds.yml b/Resources/keybinds.yml index 3d6f5db215..e5e083a50f 100644 --- a/Resources/keybinds.yml +++ b/Resources/keybinds.yml @@ -42,6 +42,12 @@ binds: - function: Walk type: State key: Shift +- function: CameraRotateLeft + type: State + key: NumpadNum7 +- function: CameraRotateRight + type: State + key: NumpadNum9 - function: ShowEscapeMenu type: State key: Escape