warvulture

This commit is contained in:
Ferdinando 2026-08-19 19:18:24 +02:00
commit e9d6e78ec8
15 changed files with 1041 additions and 489 deletions

View file

@ -37,11 +37,12 @@ namespace RacesOfValheim
public static ConfigEntry<float> EmberGlowStrength;
// ─── Keybinds ────────────────────────────────────────────────────────
public static ConfigEntry<KeyboardShortcut> StingerKey;
public static ConfigEntry<KeyboardShortcut> RavagerKey;
// ─── Stinger Morph, the model ────────────────────────────────────────
public static ConfigEntry<float> StingerScaleMultiplier;
public static ConfigEntry<float> StingerYawDegrees;
// ─── Ravager Strain, the model ───────────────────────────────────────
public static ConfigEntry<float> RavagerScaleMultiplier;
public static ConfigEntry<float> RavagerYawDegrees;
public static ConfigEntry<float> RavagerAttackOffsetValue;
// ─── Colony caps ─────────────────────────────────────────────────────
// Every ceiling on how many things the colony can have alive at once, in one section, so
@ -82,14 +83,15 @@ namespace RacesOfValheim
// G, like every other first transformation in the mod - the Aswid's bat, the Fenrir's
// wolf, the Dvergar's ping. A character only ever has one race, so they never collide.
StingerKey = config.Bind(keybinds, "Stinger Morph", new KeyboardShortcut(UnityEngine.KeyCode.G),
"Turns into a Deathsquito, and back. Unlocked at Yagluth.");
RavagerKey = config.Bind(keybinds, "Ravager Strain", new KeyboardShortcut(UnityEngine.KeyCode.G),
"Turns into a Seeker Brute, and back. Unlocked at Yagluth.");
const string stinger = "Sverm - Stinger Morph";
const string ravager = "Sverm - Ravager Strain";
StingerScaleMultiplier = config.Bind(stinger, "Scale", 1f,
"Multiplies the deathsquito model's OWN authored scale. 1 means 'the size the " +
"game draws one'. Raise it if the insect reads as too small to be you.");
RavagerScaleMultiplier = config.Bind(ravager, "Scale", 1f,
"Multiplies the Seeker Brute model's OWN authored scale. 1 means 'the full size " +
"the game draws one, bulk and all' - the form is meant to be worn at the " +
"creature's own size, not shrunk to fit.");
const string nest = "Sverm - Nest";
@ -180,10 +182,24 @@ namespace RacesOfValheim
"infected and producing a worker, so this is the number that really decides how " +
"busy a base gets.");
StingerYawDegrees = config.Bind(stinger, "Yaw", 180f,
"Turns the model on the vertical axis, in degrees. The creature's forward is not " +
"the player's, so without this it flies looking back at you. 180 is the usual " +
"answer; try 90 or -90 if it comes out sideways.");
// FOUND IN PLAY: 180, the figure that fixed the flying Deathsquito, faces the Seeker
// Brute straight at the camera - its own forward already matches the player's, unlike
// the Deathsquito's. Different source rig, different answer; 0 is correct here.
RavagerYawDegrees = config.Bind(ravager, "Yaw", 0f,
"Turns the model on the vertical axis, in degrees. 0 is correct for the Seeker " +
"Brute; try 180 (or 90 / -90) if a future model swap ends up facing the wrong way.");
// FOUND IN PLAY: the hit itself lands where the PLAYER'S own body is, at the Brute's
// native scale (RavagerScale) the visible mouth/claws sit well forward of that - so
// the swing visibly connects a metre or more short of where the model appears to
// bite. Attack.m_attackOffset pushes the hit-detection origin forward from the
// player before m_attackRange is measured out from it; 1.5 is a first guess sized
// against the model's own scale, not a verified figure, so it lives here to be
// walked in by eye rather than baked into SvermConfig as if it were.
RavagerAttackOffsetValue = config.Bind(ravager, "Attack Reach Offset", 1.5f,
"How far forward of the player, in metres, the Brute's attacks are measured from. " +
"Raise it if a swing visibly connects short of the model's mouth/claws; lower it " +
"if it connects well past them.");
EmberGlowStrength = config.Bind(ember, "Glow Strength", SvermConfig.EmberGlowStrength,
"How hot the chitin burns at Fader. This multiplies an HDR colour and it is applied " +
@ -246,8 +262,9 @@ namespace RacesOfValheim
public static float NestVfxScale => NestVfxScaleValue?.Value ?? SvermConfig.NestVfxScale;
public static float BeehiveVfxScale => BeehiveVfxScaleValue?.Value ?? SvermConfig.BeehiveVfxScale;
public static float StingerScale => StingerScaleMultiplier?.Value ?? 1f;
public static float StingerYaw => StingerYawDegrees?.Value ?? 180f;
public static float RavagerScale => RavagerScaleMultiplier?.Value ?? 1f;
public static float RavagerYaw => RavagerYawDegrees?.Value ?? 0f;
public static float RavagerAttackOffset => RavagerAttackOffsetValue?.Value ?? 1.5f;
public static float SizeSmall => SpineSizeSmall?.Value ?? SvermConfig.SpineSizeSmall;
public static float SizeFull => SpineSizeFull?.Value ?? SvermConfig.SpineSizeFull;