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

@ -303,6 +303,51 @@ namespace GrassCutter
Emit(i._drops, pos + side * s * 0.5f, (side * s * 1.8f + Planet.LocalUp * 2.4f) * (0.6f + speed01), Random.Range(0.05f, 0.09f), Clip(), 0.8f);
}
public enum Surface { Ground, Grass, Wood, Metal }
/// <summary>
/// A raindrop landing, as the thing it lands on takes it. Soil throws up a brown fleck and a dull ring; grass shakes off
/// a spray of beads; wood beads up; metal rings out with a hard bright bounce. Acid adds its own: a fizz of steam on
/// metal, a thin brown smoke off wood, scorched flecks and a yellow puff off grass, a yellow froth on soil.
/// </summary>
public static void RainHit(Vector3 pos, Vector3 up, Surface on, Color tint, float acid)
{
var i = I;
if (!i || !i.Budget(1)) return;
var drop = new Color(tint.r, tint.g, tint.b, 0.55f);
switch (on)
{
case Surface.Ground:
Emit(i._ring, pos + up * 0.03f, Vector3.zero, Random.Range(0.12f, 0.22f), new Color(0.42f, 0.33f, 0.22f, 0.5f), 0.6f);
for (int k = 0; k < 2; k++)
Emit(i._drops, pos + up * 0.03f, up * Random.Range(1.2f, 2f) + Random.insideUnitSphere * 0.9f, Random.Range(0.025f, 0.04f), new Color(0.36f, 0.27f, 0.17f, 1f), 0.35f);
if (acid > 0.5f) Emit(i._puff, pos + up * 0.04f, up * 0.25f, Random.Range(0.1f, 0.18f), new Color(0.85f, 0.9f, 0.35f, 0.5f), 0.9f);
break;
case Surface.Grass:
for (int k = 0; k < 3; k++)
Emit(i._drops, pos + up * 0.25f + Random.insideUnitSphere * 0.1f, up * Random.Range(0.8f, 1.6f) + Random.insideUnitSphere * 1.2f, Random.Range(0.02f, 0.035f),
acid > 0.5f ? new Color(0.55f, 0.5f, 0.15f, 1f) : new Color(0.7f, 0.9f, 0.75f, 0.9f), 0.4f);
if (acid > 0.5f && Random.value < 0.4f) Emit(i._puff, pos + up * 0.3f, up * 0.35f, Random.Range(0.12f, 0.2f), new Color(0.8f, 0.85f, 0.4f, 0.4f), 1.1f);
break;
case Surface.Wood:
Emit(i._puff, pos + up * 0.02f, up * 0.3f, Random.Range(0.06f, 0.1f), drop, 0.4f);
for (int k = 0; k < 2; k++)
Emit(i._drops, pos + up * 0.02f, up * Random.Range(0.8f, 1.4f) + Random.insideUnitSphere * 0.6f, Random.Range(0.02f, 0.03f), drop, 0.3f);
if (acid > 0.5f && Random.value < 0.5f) Emit(i._puff, pos + up * 0.05f, up * Random.Range(0.4f, 0.7f), Random.Range(0.15f, 0.25f), new Color(0.35f, 0.3f, 0.2f, 0.45f), 1.4f);
break;
case Surface.Metal:
for (int k = 0; k < 4; k++)
Emit(i._drops, pos + up * 0.02f, up * Random.Range(2.2f, 3.4f) + Random.insideUnitSphere * 1.6f, Random.Range(0.018f, 0.028f), new Color(0.9f, 0.95f, 1f, 1f), 0.3f);
Emit(i._sparkle, pos + up * 0.03f, up * 0.4f, Random.Range(0.06f, 0.1f), new Color(1f, 1f, 1f, 0.8f), 0.25f);
if (acid > 0.5f)
{
Emit(i._steam, pos + up * 0.05f, up * Random.Range(0.6f, 1f), Random.Range(0.12f, 0.2f), new Color(0.88f, 1f, 0.6f, 0.45f), 0.5f);
if (Random.value < 0.25f) Emit(i._sparkle, pos + up * 0.05f, up * 1.2f + Random.insideUnitSphere, 0.05f, new Color(0.8f, 1f, 0.3f, 1f), 0.3f);
}
break;
}
}
/// <summary>Vaporizer / hot vent: big soft white billows.</summary>
public static void Steam(Vector3 pos, float amount)
{