1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

Diner: change player spawn points

Add general code for setting team spawn to custom locations
This commit is contained in:
Jbleezy
2022-01-12 22:43:58 -08:00
parent 9d925c6afd
commit c0af13fe73
3 changed files with 37 additions and 18 deletions

View File

@ -144,7 +144,7 @@ register_perk_struct( name, model, origin, angles )
add_struct( perk_struct );
}
register_map_initial_spawnpoint( origin, angles )
register_map_initial_spawnpoint( origin, angles, team_num )
{
spawnpoint_struct = spawnStruct();
spawnpoint_struct.origin = origin;
@ -158,7 +158,7 @@ register_map_initial_spawnpoint( origin, angles )
}
spawnpoint_struct.radius = 32;
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.locked = 0;
player_respawn_point_size = level.struct_class_names[ "targetname" ][ "player_respawn_point" ].size;