mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-20 20:20:30 -05:00
104 lines
2.4 KiB
Plaintext
104 lines
2.4 KiB
Plaintext
#include maps\mp\_utility;
|
|
#include common_scripts\utility;
|
|
#include maps\mp\zombies\_zm_utility;
|
|
|
|
game_mode_spawn_player_logic()
|
|
{
|
|
if(scripts\zm\zgrief\zgrief_reimagined::is_respawn_gamemode())
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
if ( flag( "start_zombie_round_logic" ) && !isDefined( self.is_hotjoin ) )
|
|
{
|
|
self.is_hotjoin = 1;
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
meat_stink_on_ground(position_to_play)
|
|
{
|
|
if(level.scr_zm_ui_gametype_obj == "zmeat")
|
|
{
|
|
if (isDefined(level.meat_powerup))
|
|
{
|
|
return;
|
|
}
|
|
|
|
if (is_true(level.meat_on_ground))
|
|
{
|
|
return;
|
|
}
|
|
|
|
level.meat_on_ground = 1;
|
|
level.meat_powerup = maps\mp\zombies\_zm_powerups::specific_powerup_drop( "meat_stink", position_to_play );
|
|
level.meat_on_ground = undefined;
|
|
|
|
return;
|
|
}
|
|
|
|
level.meat_on_ground = 1;
|
|
attractor_point = spawn( "script_model", position_to_play );
|
|
attractor_point setmodel( "tag_origin" );
|
|
attractor_point playsound( "zmb_land_meat" );
|
|
wait 0.2;
|
|
playfxontag( level._effect[ "meat_stink_torso" ], attractor_point, "tag_origin" );
|
|
attractor_point playloopsound( "zmb_meat_flies" );
|
|
attractor_point create_zombie_point_of_interest( 1536, 32, 10000 );
|
|
attractor_point.attract_to_origin = 1;
|
|
attractor_point thread create_zombie_point_of_interest_attractor_positions( 4, 45 );
|
|
attractor_point thread maps\mp\zombies\_zm_weap_cymbal_monkey::wait_for_attractor_positions_complete();
|
|
attractor_point delay_thread( 10, ::self_delete );
|
|
wait 10;
|
|
level.meat_on_ground = undefined;
|
|
}
|
|
|
|
meat_stink_player( who )
|
|
{
|
|
level notify( "new_meat_stink_player" );
|
|
level endon( "new_meat_stink_player" );
|
|
|
|
if(level.scr_zm_ui_gametype_obj == "zmeat")
|
|
{
|
|
level thread [[level.zgrief_meat_stink]](who);
|
|
return;
|
|
}
|
|
|
|
who.ignoreme = 0;
|
|
players = get_players();
|
|
foreach ( player in players )
|
|
{
|
|
player thread [[level.zgrief_meat_stink_player_cleanup]]();
|
|
if ( player != who )
|
|
{
|
|
player.ignoreme = 1;
|
|
}
|
|
|
|
print_meat_msg(player, who);
|
|
}
|
|
who thread [[level.zgrief_meat_stink_player_create]]();
|
|
who waittill_any_or_timeout( 30, "disconnect", "player_downed", "bled_out" );
|
|
players = get_players();
|
|
foreach ( player in players )
|
|
{
|
|
player thread [[level.zgrief_meat_stink_player_cleanup]]();
|
|
player.ignoreme = 0;
|
|
}
|
|
}
|
|
|
|
print_meat_msg(player, meat_player)
|
|
{
|
|
color = "";
|
|
if(player.team == meat_player.team)
|
|
{
|
|
color = "^8";
|
|
}
|
|
else
|
|
{
|
|
color = "^9";
|
|
}
|
|
|
|
player iprintln(color + meat_player.name + " has the meat");
|
|
} |