1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-03 02:20:07 -05:00

Borough: fix new initial spawns not working on server

This commit is contained in:
Jbleezy
2021-12-18 21:31:02 -08:00
parent d0bc0fd055
commit efe635825d

View File

@ -259,22 +259,10 @@ override_spawn_init()
{ {
// remove existing initial spawns // remove existing initial spawns
structs = getstructarray("initial_spawn", "script_noteworthy"); structs = getstructarray("initial_spawn", "script_noteworthy");
foreach(struct in structs) array_delete(structs, true);
{ level.struct_class_names["script_noteworthy"]["initial_spawn"] = [];
if(isDefined(struct.script_string))
{
tokens = strtok(struct.script_string, " ");
foreach(token in tokens)
{
if(token == "zgrief_street")
{
struct.script_string = undefined;
}
}
}
}
// set new initial spawns to be same as respawns at zone_stables // set new initial spawns to be same as respawns already on map
ind = 0; ind = 0;
spawn_points = maps/mp/gametypes_zm/_zm_gametype::get_player_spawns_for_gametype(); spawn_points = maps/mp/gametypes_zm/_zm_gametype::get_player_spawns_for_gametype();
for(i = 0; i < spawn_points.size; i++) for(i = 0; i < spawn_points.size; i++)