fix(factions): read player race from ZDO, add party-wide hostility sharing
IsSameFaction read player.m_customData directly, which is local save data never networked - correct only for whichever client is asking, wrong for a remote player as seen by whatever peer owns the mob's ZDO (the common case in multiplayer). Switched to the ZDO-synced race value with the same fallback DraughVisuals/TrentaVisuals already use. Also adds FactionConfig.ShareHostilityWithParty (off by default): when on, a player's truce covers every faction any connected player's race belongs to, not just their own - a Dvergar and an Aswid playing together are left alone by both the Mountain's mobs and the Swamp's.
This commit is contained in:
parent
a38d1ec4b7
commit
a3b1666036
3 changed files with 78 additions and 3 deletions
|
|
@ -30,6 +30,7 @@ namespace RacesOfValheim
|
|||
AswidConfig.Bind(Config);
|
||||
DraughConfig.Bind(Config);
|
||||
DvergarConfigManagement.Bind(Config);
|
||||
FactionConfig.Bind(Config);
|
||||
FenrirConfig.Bind(Config);
|
||||
FurlingConfig.Bind(Config);
|
||||
SkadiConfig.Bind(Config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue