Skip to content

Commit

Permalink
Epsilon squad (#464)
Browse files Browse the repository at this point in the history
* Create NT-DF-Kolibri-011.yml

* medipen

* code... i think

* fixs

* fix
  • Loading branch information
nomad0260 authored Feb 13, 2024
1 parent 6499f2e commit e21a093
Show file tree
Hide file tree
Showing 5 changed files with 1,459 additions and 15 deletions.
35 changes: 35 additions & 0 deletions Content.Server/Backmen/SpecForces/SpecForcesSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,33 @@ private void SpawnGhostRole(SpecForcesType ev, EntityUid shuttle)
}
}

break;
case SpecForcesType.ERTEpsilon:
SpawnEntity(ErtEpsilonLeader, _random.Pick(spawns));

while (countExtra > 0)
{
if (countExtra-- > 0)
{
SpawnEntity(ErtEpsilonSecurity, _random.Pick(spawns));
}

if (countExtra-- > 0)
{
SpawnEntity(ErtEpsilonMedical, _random.Pick(spawns));
}

if (countExtra-- > 0)
{
SpawnEntity(ErtEpsilonMedical, _random.Pick(spawns));
}

if (countExtra-- > 0)
{
SpawnEntity(ErtEpsilonJunitor, _random.Pick(spawns));
}
}

break;
case SpecForcesType.DeathSquad:
SpawnEntity(SpestnazOfficer, _random.Pick(spawns));
Expand Down Expand Up @@ -266,6 +293,7 @@ private void SpawnGhostRole(SpecForcesType ev, EntityUid shuttle)
// todo: cvar
SpecForcesType.ERT => EtrShuttlePath,
SpecForcesType.ERTAlpha => ErtAplhaShuttlePath,
SpecForcesType.ERTEpsilon => ErtEpsilonShuttlePath,
SpecForcesType.RXBZZ => RxbzzShuttlePath,
SpecForcesType.DeathSquad => SpestnazShuttlePath,
_ => EtrShuttlePath
Expand Down Expand Up @@ -363,6 +391,13 @@ private void OnCleanup(RoundRestartCleanupEvent ev)
[ValidatePrototypeId<EntityPrototype>] private const string ErtAplhaLeader = "SpawnMobHumanERTLeaderAlpha1";
[ValidatePrototypeId<EntityPrototype>] private const string ErtAplhaOperative = "SpawnMobHumanERTOperativeAlpha1";

private const string ErtEpsilonShuttlePath = "Maps/Backmen/Grids/NT-DF-Kolibri-011.yml";
[ValidatePrototypeId<EntityPrototype>] private const string ErtEpsilonLeader = "ReinforcementRadioMTFLeaderEgg";
[ValidatePrototypeId<EntityPrototype>] private const string ErtEpsilonSecurity = "ReinforcementRadioMTFSecurityEgg";
[ValidatePrototypeId<EntityPrototype>] private const string ErtEpsilonEngineer = "ReinforcementRadioMTFEngineerEgg";
[ValidatePrototypeId<EntityPrototype>] private const string ErtEpsilonJunitor = "ReinforcementRadioMTFJunitorEgg";
[ValidatePrototypeId<EntityPrototype>] private const string ErtEpsilonMedical = "ReinforcementRadioMTFMedicalEgg";

private const string RxbzzShuttlePath = "Maps/Backmen/Grids/NT-CC-SRV-013.yml";
[ValidatePrototypeId<EntityPrototype>] private const string RxbzzLeader = "MobHumanRXBZZLeader";
[ValidatePrototypeId<EntityPrototype>] private const string Rxbzz = "SpawnMobHumanRXBZZ";
Expand Down
5 changes: 3 additions & 2 deletions Content.Server/Backmen/SpecForces/SpecForcesType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public enum SpecForcesType
{
ERT = 0,
ERTAlpha = 1,
DeathSquad = 2,
RXBZZ = 3
ERTEpsilon = 2,
DeathSquad = 3,
RXBZZ = 4
}
Loading

0 comments on commit e21a093

Please sign in to comment.