From f8f6fc08fad643e11d20d72498982596b9d0dbfe Mon Sep 17 00:00:00 2001 From: Causeless Date: Sun, 25 Oct 2026 16:17:13 +0000 Subject: [PATCH] Gave the Coalition Missile Launcher round an AILifeTime The round's particle is a 10 ms dummy shell, as the real missile is spawned by the launcher's script, so the AI worked its range out as about 45 px and held fire at anything further away. 5000 ms matches the missile's lifetime. Fixes #281 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 ++ .../Devices/Weapons/MissileLauncher/MissileLauncher.ini | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d763c5a14a..2b036f1c72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -307,6 +307,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Fixed `AHuman:EquipShieldInBGArm()` being able to take the wrong item out of the inventory, which left the device it equipped both held and in the inventory. The device then got dropped twice when its holder died, and the game could crash when quitting. +- Fixed AI actors refusing to fire the Coalition Missile Launcher at anything beyond point-blank range, because the AI took the range of its short-lived dummy round instead of the missile's. +
Removed diff --git a/Data/Coalition.rte/Devices/Weapons/MissileLauncher/MissileLauncher.ini b/Data/Coalition.rte/Devices/Weapons/MissileLauncher/MissileLauncher.ini index 812863b028..fcbdc4c506 100644 --- a/Data/Coalition.rte/Devices/Weapons/MissileLauncher/MissileLauncher.ini +++ b/Data/Coalition.rte/Devices/Weapons/MissileLauncher/MissileLauncher.ini @@ -363,6 +363,7 @@ AddAmmo = Round CopyOf = Shell Coalition Rocket Launcher FireVelocity = 25 AIFireVel = 250 + AILifeTime = 5000 ShellVelocity = 5 Separation = 5