1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00
Files
BO2-Reimagined/scripts/zm/replaced/zgrief.gsc
Jbleezy 290cfaa74b Grief: meat changes
Message shows when the meat is active on a player
Meleeing while the meat is moving no longer grabs the meat
Meleeing while the meat is moving throws the meat
Meleeing while the meat is moving activates more consistently
2021-12-27 11:14:41 -08:00

54 lines
1.6 KiB
Plaintext

#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\zombies\_zm_utility;
meat_stink_on_ground(position_to_play)
{
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" );
who.ignoreme = 0;
players = get_players();
foreach ( player in players )
{
player thread maps/mp/gametypes_zm/zgrief::meat_stink_player_cleanup();
if ( player != who )
{
player.ignoreme = 1;
}
if(player.team == who.team)
{
player iprintln("^8" + who.name + " has the meat");
}
else
{
player iprintln("^9" + who.name + " has the meat");
}
}
who thread maps/mp/gametypes_zm/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 maps/mp/gametypes_zm/zgrief::meat_stink_player_cleanup();
player.ignoreme = 0;
}
}