Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop
This commit is contained in:
@@ -1082,23 +1082,26 @@ namespace reallife_gamemode.Server.Commands
|
||||
if (playerHeading < 45 || playerHeading >= 315)
|
||||
{
|
||||
Vector3 playerPosition = new Vector3(player.Position.X + value, player.Position.Y, player.Position.Z);
|
||||
player.Position = playerPosition;
|
||||
|
||||
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = playerPosition;
|
||||
else player.Position = playerPosition;
|
||||
}
|
||||
else if (playerHeading < 315 && playerHeading >= 225)
|
||||
{
|
||||
Vector3 playerPosition = new Vector3(player.Position.X, player.Position.Y - value, player.Position.Z);
|
||||
player.Position = playerPosition;
|
||||
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = playerPosition;
|
||||
else player.Position = playerPosition;
|
||||
}
|
||||
else if (playerHeading >= 135 && playerHeading < 225)
|
||||
{
|
||||
Vector3 playerPosition = new Vector3(player.Position.X - value, player.Position.Y, player.Position.Z);
|
||||
player.Position = playerPosition;
|
||||
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = playerPosition;
|
||||
else player.Position = playerPosition;
|
||||
}
|
||||
else if (playerHeading >= 45 && playerHeading < 135)
|
||||
{
|
||||
Vector3 playerPosition = new Vector3(player.Position.X, player.Position.Y + value, player.Position.Z);
|
||||
player.Position = playerPosition;
|
||||
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = playerPosition;
|
||||
else player.Position = playerPosition;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1116,23 +1119,26 @@ namespace reallife_gamemode.Server.Commands
|
||||
if (playerHeading < 45 || playerHeading >= 315)
|
||||
{
|
||||
Vector3 playerPosition = new Vector3(player.Position.X - value, player.Position.Y, player.Position.Z);
|
||||
player.Position = playerPosition;
|
||||
|
||||
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = playerPosition;
|
||||
else player.Position = playerPosition;
|
||||
}
|
||||
else if (playerHeading < 315 && playerHeading >= 225)
|
||||
{
|
||||
Vector3 playerPosition = new Vector3(player.Position.X, player.Position.Y + value, player.Position.Z);
|
||||
player.Position = playerPosition;
|
||||
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = playerPosition;
|
||||
else player.Position = playerPosition;
|
||||
}
|
||||
else if (playerHeading >= 135 && playerHeading < 225)
|
||||
{
|
||||
Vector3 playerPosition = new Vector3(player.Position.X + value, player.Position.Y, player.Position.Z);
|
||||
player.Position = playerPosition;
|
||||
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = playerPosition;
|
||||
else player.Position = playerPosition;
|
||||
}
|
||||
else if (playerHeading >= 45 && playerHeading < 135)
|
||||
{
|
||||
Vector3 playerPosition = new Vector3(player.Position.X, player.Position.Y - value, player.Position.Z);
|
||||
player.Position = playerPosition;
|
||||
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = playerPosition;
|
||||
else player.Position = playerPosition;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1347,7 +1353,8 @@ namespace reallife_gamemode.Server.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
player.Position = player.GetData("mark");
|
||||
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = player.GetData("mark");
|
||||
else player.Position = player.GetData("mark");
|
||||
}
|
||||
|
||||
[Command("getincar", "~m~Benutzung: ~s~/getincar [Name]")]
|
||||
|
||||
Reference in New Issue
Block a user