feat(trol): Legacy True Form switch, chosen per player
The Troll Model option becomes Legacy True Form, off by default. On, True Form is the old one: the player's own Trol grown bigger, weapons in hand, body untouched, which player model mods such as VRM need. It is a local preference, not a synced one, so a server cannot force the troll costume on a VRM user. The owner publishes the choice on the ZDO and every other client reads it from there, so onlookers see each Trol the way that Trol's owner picked.
This commit is contained in:
parent
a9e66aeeb7
commit
b2346c1437
4 changed files with 20 additions and 5 deletions
|
|
@ -51,7 +51,7 @@ namespace RacesOfValheim
|
|||
public static ConfigEntry<float> TrueFormCooldown;
|
||||
public static ConfigEntry<float> TrueFormScaleNormal;
|
||||
public static ConfigEntry<float> TrueFormScaleAdvanced;
|
||||
public static ConfigEntry<bool> TrueFormUseTrollModel;
|
||||
public static ConfigEntry<bool> TrueFormLegacy;
|
||||
public static ConfigEntry<float> TrueFormModelSize;
|
||||
public static ConfigEntry<float> TrueFormTrollDamageShare;
|
||||
public static ConfigEntry<float> TrueFormAttackReach;
|
||||
|
|
@ -138,8 +138,8 @@ namespace RacesOfValheim
|
|||
new ConfigDescription("Model scale while in True Form, tier 5-6.", new AcceptableValueRange<float>(1f, 4f)));
|
||||
TrueFormScaleAdvanced = config.Bind(trueForm, "Scale (Tier 7+)", 2.5f,
|
||||
new ConfigDescription("Model scale while in True Form, tier 7+.", new AcceptableValueRange<float>(1f, 4f)));
|
||||
TrueFormUseTrollModel = config.Bind(trueForm, "Troll Model", true,
|
||||
new ConfigDescription("Wear Valheim's own troll in True Form, with its own punch and ground slam instead of your weapons. Off: the old True Form, a bigger Trol with weapons in hand."));
|
||||
TrueFormLegacy = config.Bind(trueForm, "Legacy True Form", false,
|
||||
new ConfigDescription("Off: True Form wears Valheim's own troll, with its punch and ground slam instead of your weapons. On: the old True Form, your own Trol grown bigger with weapons in hand. Turn it on if you use a player model mod such as VRM, which needs the player's body to stay visible. Your own choice: other players see you the way you picked."));
|
||||
TrueFormModelSize = config.Bind(trueForm, "Troll Model Size", 1f,
|
||||
new ConfigDescription("How tall the troll stands, as a share of the True Form size set by Scale above. 1 = exactly as tall as the old True Form.", new AcceptableValueRange<float>(0.5f, 2f)));
|
||||
TrueFormTrollDamageShare = config.Bind(trueForm, "Troll Attack Damage", 0.5f,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue