Release checklist: no cheat console for players, Steam required, Steam's language wins when changed, menu links, head bob toggle

- The cheat console opens only in the editor, a development build, or with -gcdev
- Without steam_appid.txt next to the exe, a failed Steam start says so and quits instead of running offline; -nosteam only works in our own builds
- A language picked in the game's Steam properties overrides the one saved in the game, if it changed since
- Main menu: language button, Steam page (overlay, else browser), feedback (Steam discussions); "early build" and the AppID gone from the footer
- Settings > Game: head bob on/off
- The cursor stays inside the window while it's free
- -resetsettings puts every setting back as it comes out of the box

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-11-17 18:45:17 +06:00
parent d97f2e844d
commit ad2154b38c
21 changed files with 311 additions and 191 deletions

View File

@ -165,7 +165,8 @@ namespace GrassCutter
public static void SetCursor(bool locked)
{
if (Bot) locked = false;
Cursor.lockState = locked ? CursorLockMode.Locked : CursorLockMode.None;
// free in the menus, but kept inside the game window
Cursor.lockState = locked ? CursorLockMode.Locked : Bot ? CursorLockMode.None : CursorLockMode.Confined;
Cursor.visible = !locked;
}
}

View File

@ -420,7 +420,7 @@ namespace GrassCutter
_pitch = Mathf.Clamp(_pitch - l.y, -85f, 85f);
if (!Seated) transform.rotation = _frame;
float flat = Vector3.ProjectOnPlane(_vel, up).magnitude;
float bob = (Grounded || _swimming) && !Seated ? Mathf.Sin(_bobPhase * 2f) * (_swimming ? 0.05f : 0.035f) * Mathf.Clamp01(flat / sprintSpeed + (_swimming ? 0.4f : 0f)) : 0f;
float bob = (Grounded || _swimming) && !Seated && GameSettings.HeadBob ? Mathf.Sin(_bobPhase * 2f) * (_swimming ? 0.05f : 0.035f) * Mathf.Clamp01(flat / sprintSpeed + (_swimming ? 0.4f : 0f)) : 0f;
float roll = -Ctl.Move.x * 1.5f;
if (_swimming) roll += Mathf.Sin(Time.time * 1.3f) * 2f;
_landDip = Mathf.Lerp(_landDip, 0f, Time.deltaTime * 8f);