mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-28 16:10:24 -05:00
Borough: players initially spawn in the Stables zone
This commit is contained in:
@ -229,6 +229,7 @@
|
|||||||
|
|
||||||
#### Borough
|
#### Borough
|
||||||
* Tunnels disabled
|
* Tunnels disabled
|
||||||
|
* Players initially spawn in the Stables zone
|
||||||
* Added B23R, M16A1, Claymore, and Bowie Knife wallbuys
|
* Added B23R, M16A1, Claymore, and Bowie Knife wallbuys
|
||||||
* Moved Quick Revive to Speed Cola's location on Borough
|
* Moved Quick Revive to Speed Cola's location on Borough
|
||||||
* Moved Speed Cola to its location on Buried
|
* Moved Speed Cola to its location on Buried
|
||||||
|
@ -67,6 +67,7 @@ main()
|
|||||||
deletebuildabletarp( "generalstore" );
|
deletebuildabletarp( "generalstore" );
|
||||||
deleteslothbarricades();
|
deleteslothbarricades();
|
||||||
disable_tunnels();
|
disable_tunnels();
|
||||||
|
override_spawn_init();
|
||||||
powerswitchstate( 1 );
|
powerswitchstate( 1 );
|
||||||
level.enemy_location_override_func = ::enemy_location_override;
|
level.enemy_location_override_func = ::enemy_location_override;
|
||||||
spawnmapcollision( "zm_collision_buried_street_grief" );
|
spawnmapcollision( "zm_collision_buried_street_grief" );
|
||||||
@ -252,4 +253,51 @@ disable_tunnels()
|
|||||||
spawn_point.locked = 1;
|
spawn_point.locked = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override_spawn_init()
|
||||||
|
{
|
||||||
|
// remove existing initial spawns
|
||||||
|
structs = getstructarray("initial_spawn", "script_noteworthy");
|
||||||
|
foreach(struct in structs)
|
||||||
|
{
|
||||||
|
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
|
||||||
|
ind = 0;
|
||||||
|
spawn_points = maps/mp/gametypes_zm/_zm_gametype::get_player_spawns_for_gametype();
|
||||||
|
for(i = 0; i < spawn_points.size; i++)
|
||||||
|
{
|
||||||
|
if(spawn_points[i].script_noteworthy == "zone_stables")
|
||||||
|
{
|
||||||
|
ind = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
init_spawn_array = getstructarray(spawn_points[ind].target, "targetname");
|
||||||
|
foreach(init_spawn in init_spawn_array)
|
||||||
|
{
|
||||||
|
struct = spawnStruct();
|
||||||
|
struct.origin = init_spawn.origin;
|
||||||
|
struct.angles = init_spawn.angles;
|
||||||
|
struct.radius = init_spawn.radius;
|
||||||
|
struct.script_int = init_spawn.script_int;
|
||||||
|
struct.script_noteworthy = "initial_spawn";
|
||||||
|
struct.script_string = "zgrief_street";
|
||||||
|
|
||||||
|
size = level.struct_class_names["script_noteworthy"][struct.script_noteworthy].size;
|
||||||
|
level.struct_class_names["script_noteworthy"][struct.script_noteworthy][size] = struct;
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user