-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #61, closes #76, closes #32 added utils module moved all playable classes to utils added scp-019-2
- Loading branch information
1 parent
871e587
commit 4c59911
Showing
63 changed files
with
1,054 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
using CommandSystem; | ||
using Exiled.API.Enums; | ||
using Exiled.API.Features; | ||
using Exiled.API.Features.Doors; | ||
using MEC; | ||
|
||
namespace VeryUsualDay.Commands | ||
{ | ||
[CommandHandler(typeof(RemoteAdminCommandHandler))] | ||
public class Patogen008 : ICommand | ||
{ | ||
public string Command => "patogen008"; | ||
public string[] Aliases => new string[] { }; | ||
public string Description => "Вызывает НОУС SCP-008. FX."; | ||
|
||
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response) | ||
{ | ||
if (!VeryUsualDay.Instance.IsEnabledInRound) | ||
{ | ||
response = "Режим СОД не включён!"; | ||
return false; | ||
} | ||
if (VeryUsualDay.Instance.Is008Leaked) | ||
{ | ||
Timing.KillCoroutines("_008_poisoning"); | ||
Door.Get(DoorType.Scp106Primary).Unlock(); | ||
VeryUsualDay.Instance.Is008Leaked = false; | ||
Cassie.DelayedMessage("<b><color=#727472>[ВОУС]</color></b>: Объект-008 был перекрыт, распространение патогена прекращено. <size=0> pitch_0.1 .G2 . pitch_1.0 . . . . . . ", 1f, isSubtitles: true, isNoisy: false); | ||
response = "Распространение SCP-008 прекращено."; | ||
} | ||
else | ||
{ | ||
Timing.RunCoroutine(VeryUsualDay.Instance._008_poisoning(), "_008_poisoning"); | ||
Door.Get(DoorType.Scp106Primary).Lock(float.PositiveInfinity, DoorLockType.AdminCommand); | ||
VeryUsualDay.Instance.Is008Leaked = true; | ||
Cassie.DelayedMessage("<b><color=#C50000>[ВНИМАНИЕ]</color></b> В зонах содержания зафиксировано распространение аномальной инфекции. Заражение перешло в активную стадию. Всем боевым единицам ликвидировать аномалии <size=0> pitch_0.2 .G1 .G1 . .G6 .", 1f, isSubtitles: true, isNoisy: false); | ||
response = "Распространение SCP-008 начато."; | ||
} | ||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System; | ||
using CommandSystem; | ||
using Exiled.API.Enums; | ||
using Exiled.API.Features; | ||
using Exiled.API.Features.Doors; | ||
using MEC; | ||
using PlayerRoles; | ||
|
||
namespace VeryUsualDay.Commands | ||
{ | ||
[CommandHandler(typeof(ClientCommandHandler))] | ||
public class Recontain008 : ICommand | ||
{ | ||
public string Command => "recontain008"; | ||
public string[] Aliases => new string[] { }; | ||
public string Description => "Восстанавливает ОУС SCP-008. Использовать только в К.С. SCP-008."; | ||
|
||
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response) | ||
{ | ||
if (!VeryUsualDay.Instance.Is008Leaked) | ||
{ | ||
response = "ОУС SCP-008 не нарушены!"; | ||
return false; | ||
} | ||
var playerSender = Player.Get(sender); | ||
if (playerSender.CurrentRoom.Type != RoomType.Hcz106) | ||
{ | ||
response = "Вы не находитесь в К.С. SCP-008."; | ||
return false; | ||
} | ||
if (Door.Get(DoorType.Scp106Primary).IsLocked) | ||
{ | ||
response = "Для ВОУС необходимо, чтобы дверь в К.С. SCP-008 была разблокирована."; | ||
return false; | ||
} | ||
if (playerSender.Role.Team != Team.FoundationForces && playerSender.Role.Team != Team.ChaosInsurgency) | ||
{ | ||
response = "Восстановить ОУС SCP-008 может только человек с ролью Охраны/МОГ/ПХ (рп-отыгровка: вам не хватило силы/знаний)"; | ||
return false; | ||
} | ||
if (Math.Abs(Room.Get(RoomType.Hcz106).Position.z - playerSender.Position.z) < 19 && Math.Abs(Room.Get(RoomType.Hcz106).Position.x - playerSender.Position.x) < 18) | ||
{ | ||
response = "Вы не находитесь в К.С. SCP-008."; | ||
return false; | ||
} | ||
Cassie.DelayedMessage("<b><color=#727472>[ВОУС]</color></b>: Объект-008 был перекрыт, распространение патогена прекращено. <size=0> pitch_0.1 .G2 . pitch_1.0 . . . . . . ", 1f, isSubtitles: true, isNoisy: false); | ||
Timing.KillCoroutines("_008_poisoning"); | ||
VeryUsualDay.Instance.Is008Leaked = false; | ||
response = "ВОУС SCP-008 прошло успешно."; | ||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Linq; | ||
using CommandSystem; | ||
using Exiled.API.Features; | ||
using VeryUsualDay.Utils; | ||
|
||
namespace VeryUsualDay.Commands | ||
{ | ||
[CommandHandler(typeof(RemoteAdminCommandHandler))] | ||
public class Spawn0082 : ICommand | ||
{ | ||
public string Command => "spawn008-2"; | ||
public string[] Aliases => new string[] { }; | ||
public string Description => "Работает при СОД. Спавнит SCP-008-2."; | ||
|
||
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response) | ||
{ | ||
if (!VeryUsualDay.Instance.IsEnabledInRound) | ||
{ | ||
response = "Режим СОД не включён!"; | ||
return false; | ||
} | ||
var id = int.Parse(arguments.ToArray()[0]); | ||
if (Player.TryGet(id, out var scp0082)) | ||
{ | ||
if (VeryUsualDay.Instance.ScpPlayers.ContainsKey(id)) | ||
{ | ||
var human = new TutorialHuman(scp0082); | ||
response = "SCP удалён!"; | ||
return true; | ||
} | ||
var scp = new Scp0082(scp0082, isPatogenZombie: false); | ||
response = "SCP-008-2 создан!"; | ||
return true; | ||
} | ||
response = "Не удалось найти игрока с таким ID!"; | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Linq; | ||
using CommandSystem; | ||
using Exiled.API.Features; | ||
using VeryUsualDay.Utils; | ||
|
||
namespace VeryUsualDay.Commands | ||
{ | ||
[CommandHandler(typeof(RemoteAdminCommandHandler))] | ||
public class Spawn01921 : ICommand | ||
{ | ||
public string Command => "spawn019-2-1"; | ||
public string[] Aliases => new string[] { }; | ||
public string Description => "Работает при FX. Спавнит SCP-019-2 (1 вариант)."; | ||
|
||
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response) | ||
{ | ||
if (!VeryUsualDay.Instance.IsEnabledInRound) | ||
{ | ||
response = "Режим FX не включён!"; | ||
return false; | ||
} | ||
|
||
foreach (var id in arguments.ToArray()) | ||
{ | ||
if (!Player.TryGet(int.Parse(id), out var player)) continue; | ||
var scp = new Scp01921(player); | ||
} | ||
|
||
response = "Игроки заспавнены."; | ||
return true; | ||
} | ||
} | ||
} |
Oops, something went wrong.