Round 6 fixes: held tools, headlamp glare, ladder openings, level horizon, roof hulls, rain hits, idle motion, belt packs, meadow variety

- Held tools sit lower and further right; the hammer faces forward and strikes about the camera's right
- Headlamp leaves held items, treats and vending machines alone (rendering layer NoLamp); other lights keep lighting them
- Hay grounded on the floor in world space (it floated)
- Deck fence opens at each ladder, rail colliders split around it; ladders moved to 2 m off the edge middle, clear of the intakes; climbing goes over a rail only if one is in the way
- Crew stand to the soil's up (Planet.Level): flat round the base, the ball's up past it, so the horizon stays level on a small planet
- Convex roof hulls for the crew cabin, garage, pitched roof and windmill tower; cabin box lowered to the eaves
- Rain and acid rain hits differ by surface: soil, grass, wood, metal
- Idle motion: dishes pan, sways sway, sensors turn, eyes blink, windmill turns in the breeze, reels and parked rotors tick over
- Belt: take tools off at the supply wall; hold E at a vending machine for a pack of 3 on the belt, LMB has one
- New meadow pieces: boulders, slab stones, crystals, mushrooms, stump, bulb plants
- -demofix checks for all of the above; loc rows in all 11 tables

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-12-01 22:52:05 +06:00
parent fd20af06ae
commit 36e4bb2a10
88 changed files with 7588 additions and 4926 deletions

View File

@ -341,9 +341,8 @@ namespace GrassCutter
/// </summary>
void KeepUpright(bool snap = false)
{
var want = Planet.Up(transform.position);
var ts = Ts;
if (ts && !Flying && !_vehicle && ts.OnDeck(transform.position)) want = Vector3.up;
// the soil's own up (the deck stands on the flat round the base, so it is straight up there too)
var want = Planet.Level(transform.position);
_stand = snap || _stand == Vector3.zero ? want : Vector3.Slerp(_stand, want, 1f - Mathf.Exp(-6f * Time.deltaTime)).normalized;
_frame = Quaternion.FromToRotation(_frame * Vector3.up, _stand) * _frame;
}
@ -543,7 +542,9 @@ namespace GrassCutter
_climbFrom = transform.position;
_climbTo = hit.point + up * 0.05f + fwd * 0.45f;
_climbT = 0f;
_climbOver = true;
// over the railing if there is one in the way; up through the opening at a ladder there isn't
var waist = up * 0.5f;
_climbOver = Physics.Linecast(transform.position + Vector3.Project(_climbTo - transform.position, up) + waist, _climbTo + waist, 1 << Physics.IgnoreRaycastLayer, QueryTriggerInteraction.Ignore);
Body.enabled = false;
Sfx.Play("splash_small", 0.5f, 1.3f);
Sfx.Play("jump", 0.5f, 0.85f);