mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-27 07:30:09 -05:00
Optimize register map spawn code
Fix register map spawn point code
This commit is contained in:
@ -94,7 +94,7 @@ struct_init()
|
||||
{
|
||||
if(isDefined(point.script_string) && isSubStr(point.script_string, "zgrief_maze"))
|
||||
{
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( point.origin, point.angles, point.script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn( point.origin, point.angles, "zone_maze", point.script_int );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,12 +39,12 @@ struct_init()
|
||||
origin = respawn.origin + (anglesToRight(respawn.angles) * 32);
|
||||
angles = respawn.angles;
|
||||
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( origin, angles, script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn( origin, angles, respawnpoints[ind].script_noteworthy, script_int );
|
||||
|
||||
origin = respawn.origin + (anglesToRight(respawn.angles) * -32);
|
||||
angles = respawn.angles;
|
||||
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( origin, angles, script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn( origin, angles, respawnpoints[ind].script_noteworthy, script_int );
|
||||
|
||||
i++;
|
||||
}
|
||||
|
@ -34,13 +34,13 @@ struct_init()
|
||||
angles = respawn.angles;
|
||||
script_int = 1;
|
||||
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( origin, angles, script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn( origin, angles, respawnpoints[ind].script_noteworthy, script_int );
|
||||
|
||||
origin = respawn.origin + (anglesToRight(respawn.angles) * -32);
|
||||
angles = respawn.angles;
|
||||
script_int = 2;
|
||||
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( origin, angles, script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn( origin, angles, respawnpoints[ind].script_noteworthy, script_int );
|
||||
}
|
||||
|
||||
structs = getstructarray( "game_mode_object", "targetname" );
|
||||
|
@ -33,7 +33,7 @@ struct_init()
|
||||
respawn.angles += (0, 180, 0);
|
||||
}
|
||||
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( respawn.origin, respawn.angles, respawn.script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn( respawn.origin, respawn.angles, respawnpoints[ind].script_noteworthy, respawn.script_int );
|
||||
}
|
||||
|
||||
gameObjects = getEntArray( "script_model", "classname" );
|
||||
|
@ -17,14 +17,15 @@ struct_init()
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_scavenger", "zombie_vending_tombstone", ( 10946, 8308.77, -408 ), ( 0, 270, 0 ) );
|
||||
scripts\zm\replaced\utility::register_perk_struct( "specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", ( 12333, 8158, -752 ), ( 0, 180, 0 ) );
|
||||
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 8060, -554), (0, 0, 0), 1 );
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7996, -554), (0, 0, 0), 1 );
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7932, -554), (0, 0, 0), 1 );
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7868, -554), (0, 0, 0), 1 );
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7772, -554), (0, 0, 0), 2 );
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7708, -554), (0, 0, 0), 2 );
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7644, -554), (0, 0, 0), 2 );
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7580, -554), (0, 0, 0), 2 );
|
||||
zone = "zone_pow";
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 8060, -554), (0, 0, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7996, -554), (0, 0, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7932, -554), (0, 0, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7868, -554), (0, 0, 0), zone, 1 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7772, -554), (0, 0, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7708, -554), (0, 0, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7644, -554), (0, 0, 0), zone, 2 );
|
||||
scripts\zm\replaced\utility::register_map_spawn( (10160, 7580, -554), (0, 0, 0), zone, 2 );
|
||||
}
|
||||
|
||||
precache()
|
||||
|
@ -31,7 +31,7 @@ struct_init()
|
||||
respawn_array = getstructarray(respawnpoints[ind].target, "targetname");
|
||||
foreach(respawn in respawn_array)
|
||||
{
|
||||
scripts\zm\replaced\utility::register_map_initial_spawnpoint( respawn.origin, respawn.angles, respawn.script_int );
|
||||
scripts\zm\replaced\utility::register_map_spawn( respawn.origin, respawn.angles, respawnpoints[ind].script_noteworthy, respawn.script_int );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user