Beispiel #1
0
        public void ApplyToServer()
        {
            ZombieGameProps.ChangeLevels = ChangeLevels;
            string list = IgnoredLevelsList.Replace(" ", "");

            if (list == "")
            {
                ZombieGameProps.IgnoredLevelList = new List <string>();
            }
            else
            {
                ZombieGameProps.IgnoredLevelList = new List <string>(list.Replace(" ", "").Split(','));
            }

            list = LevelsList.Replace(" ", "");
            if (list == "")
            {
                ZombieGameProps.LevelList = new List <string>();
            }
            else
            {
                ZombieGameProps.LevelList = new List <string>(list.Replace(" ", "").Split(','));
            }
            ZombieGameProps.SaveLevelBlockchanges = SaveLevelChanges;
            ZombieGameProps.IgnorePersonalWorlds  = IgnorePersonalWorlds;

            ZombieGameProps.NoPillaring      = !Pillaring;
            ZombieGameProps.NoRespawn        = !Respawning;
            ZombieGameProps.SetMainLevel     = SetMainLevel;
            ZombieGameProps.StartImmediately = StartImmediately;

            ZombieGameProps.MaxMoveDistance       = MaxMoveDistance;
            ZombieGameProps.HitboxPrecision       = HitboxPrecision;
            ZombieGameProps.IncludeMapInHeartbeat = IncludeMapInHeartbeat;

            ZombieGameProps.ZombieName  = Name.Trim();
            ZombieGameProps.ZombieModel = Model.Trim();
            if (ZombieGameProps.ZombieModel == "")
            {
                ZombieGameProps.ZombieModel = "zombie";
            }
            ZombieGameProps.InvisibilityDuration       = InvisibilityDuration;
            ZombieGameProps.InvisibilityPotions        = InvisibilityPotions;
            ZombieGameProps.ZombieInvisibilityDuration = ZInvisibilityDuration;
            ZombieGameProps.ZombieInvisibilityPotions  = ZInvisibilityPotions;

            ZombieGameProps.ReviveChance         = Chance;
            ZombieGameProps.ReviveNoTime         = InsufficientTime;
            ZombieGameProps.ReviveNoTimeMessage  = InsufficientTimeMessage;
            ZombieGameProps.ReviveTooSlow        = ExpiryTime;
            ZombieGameProps.ReviveFailureMessage = FailureMessage;
            ZombieGameProps.ReviveSuccessMessage = SuccessMessage;
        }
Beispiel #2
0
        public void ApplyToServer()
        {
            ZSConfig.ChangeLevels = ChangeLevels;
            string list = IgnoredLevelsList.Replace(" ", "");

            if (list.Length == 0)
            {
                ZSConfig.IgnoredLevelList = new List <string>();
            }
            else
            {
                ZSConfig.IgnoredLevelList = new List <string>(list.Replace(" ", "").Split(','));
            }

            list = LevelsList.Replace(" ", "");
            if (list.Length == 0)
            {
                ZSConfig.LevelList = new List <string>();
            }
            else
            {
                ZSConfig.LevelList = new List <string>(list.Replace(" ", "").Split(','));
            }

            ZSConfig.NoPillaring      = !Pillaring;
            ZSConfig.SetMainLevel     = SetMainLevel;
            ZSConfig.StartImmediately = StartImmediately;

            ZSConfig.MaxMoveDistance       = MaxMoveDistance;
            ZSConfig.HitboxPrecision       = HitboxPrecision;
            ZSConfig.IncludeMapInHeartbeat = IncludeMapInHeartbeat;

            ZSConfig.ZombieName  = Name.Trim();
            ZSConfig.ZombieModel = Model.Trim();
            if (ZSConfig.ZombieModel.Length == 0)
            {
                ZSConfig.ZombieModel = "zombie";
            }
            ZSConfig.InvisibilityDuration       = InvisibilityDuration;
            ZSConfig.InvisibilityPotions        = InvisibilityPotions;
            ZSConfig.ZombieInvisibilityDuration = ZInvisibilityDuration;
            ZSConfig.ZombieInvisibilityPotions  = ZInvisibilityPotions;

            ZSConfig.ReviveChance         = Chance;
            ZSConfig.ReviveNoTime         = InsufficientTime;
            ZSConfig.ReviveNoTimeMessage  = InsufficientTimeMessage;
            ZSConfig.ReviveTooSlow        = ExpiryTime;
            ZSConfig.ReviveFailureMessage = FailureMessage;
            ZSConfig.ReviveSuccessMessage = SuccessMessage;
        }
Beispiel #3
0
        public void ApplyToServer()
        {
            ZombieGame.ChangeLevels = ChangeLevels;
            string list = IgnoredLevelsList.Replace(" ", "");

            if (list == "")
            {
                ZombieGame.IgnoredLevelList = new List <string>();
            }
            else
            {
                ZombieGame.IgnoredLevelList = new List <string>(list.Replace(" ", "").Split(','));
            }

            list = LevelsList.Replace(" ", "");
            if (list == "")
            {
                ZombieGame.LevelList = new List <string>();
            }
            else
            {
                ZombieGame.LevelList = new List <string>(list.Replace(" ", "").Split(','));
            }
            ZombieGame.SaveLevelBlockchanges = SaveZombieLevelChanges;
            ZombieGame.IgnorePersonalWorlds  = IgnorePersonalWorlds;

            ZombieGame.noPillaring      = !Pillaring;
            ZombieGame.noRespawn        = !Respawning;
            ZombieGame.SetMainLevel     = SetMainLevel;
            ZombieGame.StartImmediately = StartImmediately;

            ZombieGame.MaxMoveDistance       = MaxMoveDistance;
            ZombieGame.HitboxPrecision       = HitboxPrecision;
            ZombieGame.IncludeMapInHeartbeat = IncludeMapInHeartbeat;

            ZombieGame.ZombieName  = Name.Trim();
            ZombieGame.ZombieModel = Model.Trim();
            if (ZombieGame.ZombieModel == "")
            {
                ZombieGame.ZombieModel = "zombie";
            }
            ZombieGame.InvisibilityDuration = InvisibilityDuration;
            ZombieGame.InvisibilityPotions  = InvisibilityPotions;
        }