From 8ae63796cf2bbab03dc56752ffe1ff166093c841 Mon Sep 17 00:00:00 2001 From: Raffson Date: Sun, 21 Jan 2024 22:36:00 +0100 Subject: [PATCH] Increase buffer around landing-zone This aims to specifically tackle the issue where AI helicopters tend to crash into the depot of the pickup-zone Resolves #138 --- game/missiongenerator/aircraft/waypoints/landingzone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/missiongenerator/aircraft/waypoints/landingzone.py b/game/missiongenerator/aircraft/waypoints/landingzone.py index 2e91189d..894477ae 100644 --- a/game/missiongenerator/aircraft/waypoints/landingzone.py +++ b/game/missiongenerator/aircraft/waypoints/landingzone.py @@ -10,7 +10,7 @@ class LandingZoneBuilder(PydcsWaypointBuilder): # Create a landing task, currently only for Helos! # Calculate a landing point with a small buffer to prevent AI from landing # directly at the static ammo depot and exploding - landing_point = waypoint.position.random_point_within(15, 5) + landing_point = waypoint.position.random_point_within(30, 20) # Use Land Task with 30s duration for helos waypoint.add_task(Land(landing_point, duration=30)) if waypoint.name == "DROPOFFZONE":