mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-22 05:00:54 -05:00
Meat: add message when player has meat
This commit is contained in:
@ -63,14 +63,7 @@ meat_stink_player( who )
|
|||||||
player.ignoreme = 1;
|
player.ignoreme = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(player.team == who.team)
|
print_meat_msg(player, who);
|
||||||
{
|
|
||||||
player iprintln("^8" + who.name + " has the meat");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
player iprintln("^9" + who.name + " has the meat");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
who thread [[level.zgrief_meat_stink_player_create]]();
|
who thread [[level.zgrief_meat_stink_player_create]]();
|
||||||
who waittill_any_or_timeout( 30, "disconnect", "player_downed", "bled_out" );
|
who waittill_any_or_timeout( 30, "disconnect", "player_downed", "bled_out" );
|
||||||
@ -80,4 +73,19 @@ meat_stink_player( who )
|
|||||||
player thread [[level.zgrief_meat_stink_player_cleanup]]();
|
player thread [[level.zgrief_meat_stink_player_cleanup]]();
|
||||||
player.ignoreme = 0;
|
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");
|
||||||
}
|
}
|
@ -2966,6 +2966,8 @@ meat_stink_player(meat_player)
|
|||||||
player.meat_waypoint = player meat_waypoint_init();
|
player.meat_waypoint = player meat_waypoint_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scripts\zm\replaced\zgrief::print_meat_msg(player, meat_player);
|
||||||
|
|
||||||
if (player == meat_player)
|
if (player == meat_player)
|
||||||
{
|
{
|
||||||
player.meat_waypoint.alpha = 0;
|
player.meat_waypoint.alpha = 0;
|
||||||
|
Reference in New Issue
Block a user