Skip to content

Commit

Permalink
code... i think
Browse files Browse the repository at this point in the history
  • Loading branch information
nomad0260 committed Feb 13, 2024
1 parent d574ea9 commit 85a8dd0
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 8 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 => ErtAplhaShuttlePath,
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
}
26 changes: 20 additions & 6 deletions Resources/Prototypes/Backmen/Adminbuse/centFifa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
shoes: ClothingShoesBootsNedoSpetsnaz
gloves: ClothingHandsGlovesCombat
neck: CombatKnifeSpetsnaz
head: ClothingHeadHelmetSwat
head: ClothingHeadHelmetERTLeader
outerClothing: ClothingOuterArmorBasic
suitstorage: WeaponPistolACP14
ears: ClothingHeadsetCentComCCMTFEPS11
Expand All @@ -352,11 +352,11 @@
equipment:
jumpsuit: ClothingUniformJumpsuitERTEngineer
id: OBRGavnaEngineerIDCard2
back: WeaponRifleG36
back: WeaponShotgun39
shoes: ClothingShoesBootsNedoSpetsnaz
gloves: ClothingHandsGlovesCombat
neck: CombatKnifeSpetsnaz
head: ClothingHeadHelmetSwat
head: ClothingHeadHelmetERTEngineer
outerClothing: ClothingOuterArmorBasic
suitstorage: WeaponPistolACP14
ears: ClothingHeadsetCentComCCMTFEPS11
Expand All @@ -365,6 +365,18 @@
pocket1: ClothingPounchMTFBattleFilled
pocket2: ClothingPounchMTFEngineerFilled

- type: entity
noSpawn: true
parent: ClothingPounchMTF
id: ClothingPounchMTFBattleFilled
components:
- type: StorageFill
contents:
- id: BattleMedipen
amount: 2
- id: MagazineShotgun
amount: 4

- type: entity
noSpawn: true
parent: ClothingPounchMTF
Expand All @@ -390,7 +402,7 @@
shoes: ClothingShoesBootsNedoSpetsnaz
gloves: ClothingHandsGlovesCombat
neck: CombatKnifeSpetsnaz
head: ClothingHeadHelmetSwat
head: ClothingHeadHelmetERTSecurity
outerClothing: ClothingOuterArmorBasic
suitstorage: WeaponPistolACP14
ears: ClothingHeadsetCentComCCMTFEPS11
Expand Down Expand Up @@ -420,7 +432,7 @@
shoes: ClothingShoesBootsNedoSpetsnaz
gloves: ClothingHandsGlovesCombat
neck: CombatKnifeSpetsnaz
head: ClothingHeadHelmetSwat
head: ClothingHeadHelmetERTMedic
outerClothing: ClothingOuterArmorBasic
suitstorage: WeaponPistolACP14
ears: ClothingHeadsetCentComCCMTFEPS11
Expand Down Expand Up @@ -450,8 +462,10 @@
- type: StorageFill
contents:
- id: EpinephrineChemistryBottle
amount: 2
- id: OmnizineChemistryBottle
- id: Hypospray
amount: 3
- id: SyringeBluespace
- id: HandheldHealthAnalyzer
- id: MagazinePistol
amount: 2
Expand Down

0 comments on commit 85a8dd0

Please sign in to comment.