1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-08 21:08:17 -05:00

Encounter: change team player waypoint icon height only on stance change

This commit is contained in:
Jbleezy
2023-03-15 00:38:12 -07:00
parent 91fb5824d1
commit e8cf37be5e

View File

@ -993,13 +993,33 @@ team_player_waypoint_origin_think()
{
self endon("disconnect");
prev_stance = "none";
while (isDefined(self.player_waypoint_origin))
{
cur_stance = self getStance();
if (prev_stance != cur_stance)
{
prev_stance = cur_stance;
self.player_waypoint_origin unlink();
self.player_waypoint_origin.origin = self getEye() + (0, 0, 12);
if (cur_stance == "stand")
{
self.player_waypoint_origin.origin = self.origin + (0, 0, 72);
}
else if (cur_stance == "crouch")
{
self.player_waypoint_origin.origin = self.origin + (0, 0, 52);
}
else if (cur_stance == "prone")
{
self.player_waypoint_origin.origin = self.origin + (0, 0, 23);
}
self.player_waypoint_origin linkto(self);
}
wait 0.05;
}