1
0
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:
Jbleezy
2023-02-25 19:58:30 -08:00
parent 3f040907f3
commit a63ca8b4cb
2 changed files with 18 additions and 8 deletions

View File

@ -63,14 +63,7 @@ meat_stink_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");
}
print_meat_msg(player, who);
}
who thread [[level.zgrief_meat_stink_player_create]]();
who waittill_any_or_timeout( 30, "disconnect", "player_downed", "bled_out" );
@ -81,3 +74,18 @@ meat_stink_player( who )
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");
}

View File

@ -2966,6 +2966,8 @@ meat_stink_player(meat_player)
player.meat_waypoint = player meat_waypoint_init();
}
scripts\zm\replaced\zgrief::print_meat_msg(player, meat_player);
if (player == meat_player)
{
player.meat_waypoint.alpha = 0;