Veilheim/Map/SharedMapSystem.cs
/// <summary>
///     Apply other player's locations as own exploration
/// </summary>
Apply other player's locations as own exploration
Apply other player ' s locations as own exploration
private static void GetSharedExploration(On.Minimap.orig_UpdateExplore orig, Minimap self, float dt, Player player)
        {
            self.m_exploreTimer += Time.deltaTime;
            if (self.m_exploreTimer > self.m_exploreInterval)
            {
                if (ConfigUtil.Get<bool>("MapServer", "shareMapProgression"))
                {
                    if (self.m_exploreTimer + Time.deltaTime > self.m_exploreInterval)
                    {
                        var tempPlayerInfos = new List<ZNet.PlayerInfo>();
                        ZNet.instance.GetOtherPublicPlayers(tempPlayerInfos);
                        foreach (var tempPlayer in tempPlayerInfos)
                        {
                            ExploreLocal(tempPlayer.m_position);
                        }
                    }
                }
                if (playerIsOnShip && ConfigUtil.Get<float>("MapServer", "exploreRadiusSailing") > ConfigUtil.Get<float>("MapServer", "exploreRadius"))
                {
                    self.Explore(Player.m_localPlayer.transform.position, ConfigUtil.Get<float>("MapServer", "exploreRadiusSailing"));
                }
                else
                {
                    self.Explore(Player.m_localPlayer.transform.position, ConfigUtil.Get<float>("MapServer", "exploreRadius"));
                }
                orig(self, dt, player);
            }
        }
private static void GetSharedExploration ( On . Minimap . orig_UpdateExplore orig , Minimap self , float dt , Player player ) { self . m_exploreTimer += Time . deltaTime ; if ( self . m_exploreTimer > self . m_exploreInterval ) { if ( ConfigUtil . Get < bool > ( " " , " " ) ) { if ( self . m_exploreTimer + Time . deltaTime > self . m_exploreInterval ) { var tempPlayerInfos = new List < ZNet . PlayerInfo > ( ) ; ZNet . instance . GetOtherPublicPlayers ( tempPlayerInfos ) ; foreach ( var tempPlayer in tempPlayerInfos ) { ExploreLocal ( tempPlayer . m_position ) ; } } } if ( playerIsOnShip && ConfigUtil . Get < float > ( " " , " " ) > ConfigUtil . Get < float > ( " " , " " ) ) { self . Explore ( Player . m_localPlayer . transform . position , ConfigUtil . Get < float > ( " " , " " ) ) ; } else { self . Explore ( Player . m_localPlayer . transform . position , ConfigUtil . Get < float > ( " " , " " ) ) ; } orig ( self , dt , player ) ; } }
Apply other player's locations as own exploration
Apply other player ' s locations as own exploration
orig
On.Minimap.orig_UpdateExplore
self
Minimap
dt
float
player
Player