mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 07:37:56 -05:00
Diner: change player spawn points
Add general code for setting team spawn to custom locations
This commit is contained in:
23
README.md
23
README.md
@ -257,11 +257,15 @@
|
|||||||
* Fixed a zombie pathing exploit at Town in Bookstore
|
* Fixed a zombie pathing exploit at Town in Bookstore
|
||||||
* Grief: added Ballistic Knife, Ray Gun, and Ray Gun Mark 2 to the Mystery Box
|
* Grief: added Ballistic Knife, Ray Gun, and Ray Gun Mark 2 to the Mystery Box
|
||||||
|
|
||||||
#### Town
|
#### Bus Depot
|
||||||
* Moved Quick Revive to Stamin-Up's location on Town
|
* Lava in starting area activates immediately
|
||||||
* Moved Stamin-Up to its location on Tranzit
|
* Power doors open when door is opened
|
||||||
* Moved Tombstone Soda to the laundry room front door
|
* Lava pit is accessible
|
||||||
* Grief: added Tombstone Soda
|
|
||||||
|
#### Diner
|
||||||
|
* Added Survival and Grief gamemodes
|
||||||
|
* Wallbuys: M14, Olympia, MP5, Galvaknuckles
|
||||||
|
* Perks: Juggernog, Quick Revive, Speed Cola, Double Tap
|
||||||
|
|
||||||
#### Farm
|
#### Farm
|
||||||
* Zombies spawn in the Farm zone when in the Barn zone
|
* Zombies spawn in the Farm zone when in the Barn zone
|
||||||
@ -269,10 +273,11 @@
|
|||||||
* Survival: removed Galvaknuckles wallbuy
|
* Survival: removed Galvaknuckles wallbuy
|
||||||
* Grief: removed player spawns near gate
|
* Grief: removed player spawns near gate
|
||||||
|
|
||||||
#### Bus Depot
|
#### Town
|
||||||
* Lava in starting area activates immediately
|
* Moved Quick Revive to Stamin-Up's location on Town
|
||||||
* Power doors open when door is opened
|
* Moved Stamin-Up to its location on Tranzit
|
||||||
* Lava pit is accessible
|
* Moved Tombstone Soda to the laundry room front door
|
||||||
|
* Grief: added Tombstone Soda
|
||||||
|
|
||||||
### Die Rise
|
### Die Rise
|
||||||
* Zombies no longer spawn in the Upper Blue Highrise zone when in the Trample Steam zone
|
* Zombies no longer spawn in the Upper Blue Highrise zone when in the Trample Steam zone
|
||||||
|
@ -14,13 +14,27 @@ struct_init()
|
|||||||
scripts/zm/replaced/utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( -5470, -7859.5, 0 ), ( 0, 270, 0 ) );
|
scripts/zm/replaced/utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( -5470, -7859.5, 0 ), ( 0, 270, 0 ) );
|
||||||
scripts/zm/replaced/utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( -4170, -7592, -63 ), ( 0, 270, 0 ) );
|
scripts/zm/replaced/utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( -4170, -7592, -63 ), ( 0, 270, 0 ) );
|
||||||
|
|
||||||
coordinates = array( ( -3991, -7317, -63 ), ( -4231, -7395, -60 ), ( -4127, -6757, -54 ), ( -4465, -7346, -58 ),
|
ind = 0;
|
||||||
( -5770, -6600, -55 ), ( -6135, -6671, -56 ), ( -6182, -7120, -60 ), ( -5882, -7174, -61 ) );
|
respawnpoints = maps/mp/gametypes_zm/_zm_gametype::get_player_spawns_for_gametype();
|
||||||
angles = array( ( 0, 161, 0 ), ( 0, 120, 0 ), ( 0, 217, 0 ), ( 0, 173, 0 ), ( 0, -106, 0 ), ( 0, -46, 0 ), ( 0, 51, 0 ), ( 0, 99, 0 ) );
|
for(i = 0; i < respawnpoints.size; i++)
|
||||||
for ( i = 0; i < coordinates.size; i++ )
|
{
|
||||||
{
|
if(respawnpoints[i].script_noteworthy == "zone_gas")
|
||||||
scripts/zm/replaced/utility::register_map_initial_spawnpoint( coordinates[ i ], angles[ i ] );
|
{
|
||||||
}
|
ind = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
respawn_array = getstructarray(respawnpoints[ind].target, "targetname");
|
||||||
|
foreach(respawn in respawn_array)
|
||||||
|
{
|
||||||
|
if(respawn.script_int == 2)
|
||||||
|
{
|
||||||
|
respawn.angles += (0, 180, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
scripts/zm/replaced/utility::register_map_initial_spawnpoint( respawn.origin, respawn.angles, respawn.script_int );
|
||||||
|
}
|
||||||
|
|
||||||
gameObjects = getEntArray( "script_model", "classname" );
|
gameObjects = getEntArray( "script_model", "classname" );
|
||||||
foreach ( object in gameObjects )
|
foreach ( object in gameObjects )
|
||||||
|
@ -144,7 +144,7 @@ register_perk_struct( name, model, origin, angles )
|
|||||||
add_struct( perk_struct );
|
add_struct( perk_struct );
|
||||||
}
|
}
|
||||||
|
|
||||||
register_map_initial_spawnpoint( origin, angles )
|
register_map_initial_spawnpoint( origin, angles, team_num )
|
||||||
{
|
{
|
||||||
spawnpoint_struct = spawnStruct();
|
spawnpoint_struct = spawnStruct();
|
||||||
spawnpoint_struct.origin = origin;
|
spawnpoint_struct.origin = origin;
|
||||||
@ -158,7 +158,7 @@ register_map_initial_spawnpoint( origin, angles )
|
|||||||
}
|
}
|
||||||
spawnpoint_struct.radius = 32;
|
spawnpoint_struct.radius = 32;
|
||||||
spawnpoint_struct.script_noteworthy = "initial_spawn";
|
spawnpoint_struct.script_noteworthy = "initial_spawn";
|
||||||
spawnpoint_struct.script_int = 2048;
|
spawnpoint_struct.script_int = team_num;
|
||||||
spawnpoint_struct.script_string = getDvar( "g_gametype" ) + "_" + getDvar( "ui_zm_mapstartlocation" );
|
spawnpoint_struct.script_string = getDvar( "g_gametype" ) + "_" + getDvar( "ui_zm_mapstartlocation" );
|
||||||
spawnpoint_struct.locked = 0;
|
spawnpoint_struct.locked = 0;
|
||||||
player_respawn_point_size = level.struct_class_names[ "targetname" ][ "player_respawn_point" ].size;
|
player_respawn_point_size = level.struct_class_names[ "targetname" ][ "player_respawn_point" ].size;
|
||||||
|
Reference in New Issue
Block a user