示例#1
0
 public static void SpawnSCP181(ReferenceHub LuckyBoy)
 {
     LuckyBoy.characterClassManager.SetClassID(RoleType.ClassD);
     LuckyBoy.Broadcast(Configs.LuckyBoySpawnmsg, Configs.LuckyBoySpawnmsgbctime);
     hasTag   = !string.IsNullOrEmpty(LuckyBoy.serverRoles.NetworkMyText);
     isHidden = !string.IsNullOrEmpty(LuckyBoy.serverRoles.HiddenBadge);
     if (isHidden)
     {
         LuckyBoy.RefreshTag();
     }
     LuckyBoy.inventory.items.ToList().Clear();
     for (int i = 0; i < Configs.SCP181SpawnItem.Count; i++)
     {
         LuckyBoy.inventory.AddNewItem((ItemType)Configs.SCP181SpawnItem[i]);
     }
     LuckyBoy.SetRank("SCP-181", "orange");
     SCP181 = LuckyBoy;
 }
示例#2
0
 public static void SpawnChaosCommander(ReferenceHub Chaosss)
 {
     Chaosss.characterClassManager.SetClassID(RoleType.ChaosInsurgency);
     Chaosss.Broadcast(Configs.ChaosCommanderSpawnmsg, Configs.ChaosCommanderSpawnmsgbctime);
     hasTag   = !string.IsNullOrEmpty(Chaosss.serverRoles.NetworkMyText);
     isHidden = !string.IsNullOrEmpty(Chaosss.serverRoles.HiddenBadge);
     if (isHidden)
     {
         Chaosss.RefreshTag();
     }
     Chaosss.SetHealth(300f);
     Chaosss.inventory.items.ToList().Clear();
     for (int i = 0; i < Configs.ChaosCommanderSpawnItem.Count; i++)
     {
         Chaosss.inventory.AddNewItem((ItemType)Configs.ChaosCommanderSpawnItem[i]);
     }
     Chaosss.SetRank("Chaos Commander", "green");
     ChaosCommander = Chaosss;
 }
示例#3
0
 public static void SpawnSCP550(ReferenceHub Ghoul)
 {
     Ghoul.characterClassManager.SetClassID(RoleType.Tutorial);
     Ghoul.Broadcast(Configs.SCP999Spawnmsg, Configs.SCP999Spawnmsgbctime);
     hasTag   = !string.IsNullOrEmpty(Ghoul.serverRoles.NetworkMyText);
     isHidden = !string.IsNullOrEmpty(Ghoul.serverRoles.HiddenBadge);
     if (isHidden)
     {
         Ghoul.RefreshTag();
     }
     Timing.RunCoroutine(EventHandlers.DelayAction(0.5f, () => Ghoul.plyMovementSync.OverridePosition(Map.GetRandomSpawnPoint(RoleType.Scp049), 0f)));
     Ghoul.SetHealth(200f);
     Ghoul.inventory.items.ToList().Clear();
     for (int i = 0; i < Configs.SCP550SpawnItem.Count; i++)
     {
         Ghoul.inventory.AddNewItem((ItemType)Configs.SCP550SpawnItem[i]);
     }
     Ghoul.SetRank("SCP-550", "red");
     SCP550 = Ghoul;
 }
示例#4
0
 public static void SpawnSCP999(ReferenceHub TTM)
 {
     TTM.characterClassManager.SetClassID(RoleType.Tutorial);
     TTM.Broadcast(Configs.SCP999Spawnmsg, Configs.SCP999Spawnmsgbctime);
     hasTag   = !string.IsNullOrEmpty(TTM.serverRoles.NetworkMyText);
     isHidden = !string.IsNullOrEmpty(TTM.serverRoles.HiddenBadge);
     if (isHidden)
     {
         TTM.RefreshTag();
     }
     Timing.RunCoroutine(EventHandlers.DelayAction(0.5f, () => TTM.plyMovementSync.OverridePosition(Map.GetRandomSpawnPoint(RoleType.FacilityGuard), 0f)));
     TTM.SetHealth(5000f);
     TTM.inventory.items.ToList().Clear();
     for (int i = 0; i < Configs.SCP999SpawnItem.Count; i++)
     {
         TTM.inventory.AddNewItem((ItemType)Configs.SCP999SpawnItem[i]);
     }
     TTM.SetRank("SCP-999", "pink");
     SCP999 = TTM;
 }