Add taunt button, Tab as Escape alternative, free cam Q/E removal
- OverviewMenu: taunt button (manual ping + close, hider/seek-only), Tab triggers the Escape chain (TypingGuard-gated) - GameModeManager: LocalPlayerIsHider helper, allow E-ping in free cam (Q/E no longer used for movement) - FreeCamController: vertical movement only via Space/Ctrl - Icons: Icon_taunt (wired), Icon_firstperson_paint (unwired, for later) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1054bcd3d6
commit
c6a22c1643
7 files changed
+269
-12
No files matched your search
@@ -6,7 +6,7 @@ using UnityEngine.InputSystem;
|
||||
|
||||
/// <summary>
|
||||
/// Free-flying spectator camera on its own dedicated <see cref="CinemachineCamera"/>: WASD flight relative
|
||||
/// to the view, Q/E (or Space/Left Ctrl) for down/up, mouse look. A <see cref="CharacterController"/>
|
||||
/// to the view, Space/Left Ctrl for up/down, mouse look. A <see cref="CharacterController"/>
|
||||
/// capsule makes it slide along world geometry instead of clipping. Driven by <see cref="FreeCamMode"/>
|
||||
/// via <see cref="SetActive"/>; while inactive this component does nothing.
|
||||
/// </summary>
|
||||
@@ -170,14 +170,15 @@ public class FreeCamController : MonoBehaviour
|
||||
if (kb.sKey.isPressed) dir -= transform.forward;
|
||||
if (kb.dKey.isPressed) dir += transform.right;
|
||||
if (kb.aKey.isPressed) dir -= transform.right;
|
||||
if (kb.eKey.isPressed || kb.spaceKey.isPressed) dir += Vector3.up;
|
||||
if (kb.qKey.isPressed || kb.leftCtrlKey.isPressed) dir -= Vector3.up;
|
||||
// Q/E intentionally unbound: E is the taunt key and must work in free cam.
|
||||
if (kb.spaceKey.isPressed) dir += Vector3.up;
|
||||
if (kb.leftCtrlKey.isPressed) dir -= Vector3.up;
|
||||
}
|
||||
#else
|
||||
dir += transform.forward * Input.GetAxisRaw("Vertical");
|
||||
dir += transform.right * Input.GetAxisRaw("Horizontal");
|
||||
if (Input.GetKey(KeyCode.E) || Input.GetKey(KeyCode.Space)) dir += Vector3.up;
|
||||
if (Input.GetKey(KeyCode.Q) || Input.GetKey(KeyCode.LeftControl)) dir -= Vector3.up;
|
||||
if (Input.GetKey(KeyCode.Space)) dir += Vector3.up;
|
||||
if (Input.GetKey(KeyCode.LeftControl)) dir -= Vector3.up;
|
||||
#endif
|
||||
return dir;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user