feat: Skeletons can show their helmet
New "Show Helmet" option under Skeleton - Visuals, off by default. The owner's choice is written to the ZDO, so other players see the helmet the way its owner picked. On a skull the helmet moves up and back and grows to fit, since the skull is bigger than the viking head the helmet hangs for. Hoods and the other skinned helmets can't be moved by their transform: their Head bone is swapped for a fitted child bone, so the head part follows the skull and the shoulder parts stay put. A viking body gets the vanilla placement and bones back.
This commit is contained in:
parent
1aa55984d6
commit
e972ca5ea4
5 changed files with 259 additions and 30 deletions
|
|
@ -47,6 +47,7 @@ namespace RacesOfValheim
|
|||
public static ConfigEntry<bool> HeadFireVFXEnabled;
|
||||
public static ConfigEntry<bool> BodyModelEnabled;
|
||||
public static ConfigEntry<bool> RaiseDeadIcon;
|
||||
public static ConfigEntry<bool> ShowHelmet;
|
||||
|
||||
public static void Bind(ConfigFile config)
|
||||
{
|
||||
|
|
@ -86,6 +87,7 @@ namespace RacesOfValheim
|
|||
new ConfigDescription("Whether Skeleton players wear the skeleton body. Turn it off if you use a player model mod (EnhancedValheimVRM and the like): Skeletons then keep the vanilla viking body, so the replacement model shows without bones clipping through it. Abilities are unchanged. Client-side, like the option above: it applies to every Skeleton you see, yourself included, and changes nothing for other players."));
|
||||
RaiseDeadIcon = config.Bind(visuals, "Raise the Dead Icon", true,
|
||||
new ConfigDescription("Shows the Raise the Dead status icon while your Summon on Kill is on."));
|
||||
}
|
||||
ShowHelmet = config.Bind(visuals, "Show Helmet", false,
|
||||
new ConfigDescription("Off: your helmet stays hidden over the skull. On: the helmet you wear shows. Helmets and hoods are moved and enlarged to fit the skull. Your own choice: other players see you the way you picked. A viking body (Body Model Enabled off) always shows its helmet.")); }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue