Skip to content

Commit 22014d1

Browse files
authored
feat: More Dynamic Spawn Locations (#626)
1 parent 92982fe commit 22014d1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

EXILED/Exiled.API/Enums/SpawnLocationType.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ public enum SpawnLocationType
132132
/// <summary>
133133
/// Inside the lower door that leads to the stairs in Micro-HID room.
134134
/// </summary>
135+
[Obsolete("This location has been removed from the game.")]
135136
InsideHidLower,
136137

137138
/// <summary>
138139
/// Inside the upper door that leads into the Micro-HID room just after the stairs.
139140
/// </summary>
141+
[Obsolete("This location has been removed from the game. Use InsideHidLab instead.")]
140142
InsideHidUpper,
141143

142144
/// <summary>
@@ -168,5 +170,15 @@ public enum SpawnLocationType
168170
/// Inside SCP-079's Armory
169171
/// </summary>
170172
Inside079Armory,
173+
174+
/// <summary>
175+
/// Inside SCP-127's Lab
176+
/// </summary>
177+
Inside127Lab,
178+
179+
/// <summary>
180+
/// Inside the upper door that leads into the Micro-HID Lab room.
181+
/// </summary>
182+
InsideHidLab,
171183
}
172184
}

EXILED/Exiled.API/Extensions/SpawnExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static class SpawnExtensions
2525
{
2626
SpawnLocationType.InsideHczArmory,
2727
SpawnLocationType.Inside079First,
28-
SpawnLocationType.InsideHidUpper,
28+
SpawnLocationType.InsideHidLab,
2929
SpawnLocationType.Inside173Gate,
3030
SpawnLocationType.InsideGateA,
3131
SpawnLocationType.InsideGateB,
@@ -86,11 +86,10 @@ public static Vector3 GetPosition(this SpawnLocationType location)
8686
SpawnLocationType.InsideGateA => "GATE_A",
8787
SpawnLocationType.InsideGateB => "GATE_B",
8888
SpawnLocationType.InsideLczWc => "LCZ_WC",
89-
SpawnLocationType.InsideHidLower => "HID_LOWER",
9089
SpawnLocationType.InsideLczCafe => "LCZ_CAFE",
9190
SpawnLocationType.Inside173Gate => "173_GATE",
9291
SpawnLocationType.InsideIntercom => "INTERCOM",
93-
SpawnLocationType.InsideHidUpper => "HID_UPPER",
92+
SpawnLocationType.InsideHidLab => "HID_LAB",
9493
SpawnLocationType.Inside079First => "079_FIRST",
9594
SpawnLocationType.Inside330Chamber => "330_CHAMBER",
9695
SpawnLocationType.Inside049Armory => "049_ARMORY",
@@ -108,6 +107,7 @@ public static Vector3 GetPosition(this SpawnLocationType location)
108107
SpawnLocationType.Inside106Secondary => "106_SECONDARY",
109108
SpawnLocationType.Inside939Cryo => "939_CRYO",
110109
SpawnLocationType.Inside079Armory => "079_ARMORY",
110+
SpawnLocationType.Inside127Lab => "HCZ_127_LAB",
111111
_ => default,
112112
};
113113
}

0 commit comments

Comments
 (0)