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
|
|
@ -483,7 +483,8 @@ namespace RacesOfValheim
|
|||
if (nview == null || !nview.IsValid()) return;
|
||||
|
||||
ZDO zdo = nview.GetZDO();
|
||||
bool active = TrolConfig.TrueFormUseTrollModel.Value &&
|
||||
// The owner's choice, not this client's: see TrolTrueFormModel.LegacyKey.
|
||||
bool active = !zdo.GetBool(TrolTrueFormModel.LegacyKey, false) &&
|
||||
!player.IsDead() &&
|
||||
zdo.GetString("RacesOfValheim_Race", "Human") == "Trol" &&
|
||||
zdo.GetBool(Trol_PlayerUpdate_Patch.TrueFormKey, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue