mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 15:48:05 -05:00
Remove respawn points being assigned to players
This commit is contained in:
@ -30,6 +30,7 @@ main()
|
||||
replaceFunc(maps/mp/zombies/_zm::ai_calculate_health, scripts/zm/replaced/_zm::ai_calculate_health);
|
||||
replaceFunc(maps/mp/zombies/_zm::last_stand_pistol_rank_init, scripts/zm/replaced/_zm::last_stand_pistol_rank_init);
|
||||
replaceFunc(maps/mp/zombies/_zm::check_for_valid_spawn_near_team, scripts/zm/replaced/_zm::check_for_valid_spawn_near_team);
|
||||
replaceFunc(maps/mp/zombies/_zm::get_valid_spawn_location, scripts/zm/replaced/_zm::get_valid_spawn_location);
|
||||
replaceFunc(maps/mp/zombies/_zm::actor_damage_override, scripts/zm/replaced/_zm::actor_damage_override);
|
||||
replaceFunc(maps/mp/zombies/_zm::player_spawn_protection, scripts/zm/replaced/_zm::player_spawn_protection);
|
||||
replaceFunc(maps/mp/zombies/_zm::wait_and_revive, scripts/zm/replaced/_zm::wait_and_revive);
|
||||
|
@ -538,6 +538,36 @@ check_for_valid_spawn_near_team( revivee, return_struct )
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get_valid_spawn_location( revivee, spawn_points, closest_group, return_struct )
|
||||
{
|
||||
spawn_array = getstructarray( spawn_points[ closest_group ].target, "targetname" );
|
||||
spawn_array = array_randomize( spawn_array );
|
||||
k = 0;
|
||||
|
||||
while ( k < spawn_array.size )
|
||||
{
|
||||
if ( positionwouldtelefrag( spawn_array[ k ].origin ) )
|
||||
{
|
||||
k++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( is_true( return_struct ) )
|
||||
{
|
||||
return spawn_array[ k ];
|
||||
}
|
||||
|
||||
return spawn_array[ k ].origin;
|
||||
}
|
||||
|
||||
if ( is_true( return_struct ) )
|
||||
{
|
||||
return spawn_array[ 0 ];
|
||||
}
|
||||
|
||||
return spawn_array[ 0 ].origin;
|
||||
}
|
||||
|
||||
player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime )
|
||||
{
|
||||
if ( isDefined( level._game_module_player_damage_callback ) )
|
||||
|
Reference in New Issue
Block a user