Hello,
As the title says, dumbfire missiles are not being selected to be shot on ships, these missiles are shot on stations only. I think the script is: !lib.get.best.missile.fortarget.pck around line 93.
I understand the current use case is very useful specially with Tornado missiles. But I think it could be extended to relatively big and slow ships.
If you want to be more accurate with the script I did some calculations.
Avoiding dumbfire critical time: (SHIP.LENGTH/2)/TARGET.SPEED #It would be the time it takes to a the victim ship to move out of the missile trajectory.
Dumbfire time to target: DistanceToTarget/DUMBFIRE.SPEED # It would be the time it takes for the dumbfire to reach the target position
And we would like to shoot the dumbfire in case the target does not have enough time to avoid the dumbfire: AvoidDumbfireCriticalTime > DumbfireTimeToTarget
There may be many cases:
************************************************
Target FIghter vs Firefly
If we use some typical values:
DumbfireSpeed = 700m/s
TARGET.SPEED = 150m/s
SHIP.LENGTH = 20m (typical for a fighter)
0.05 seconds > DistanceToTarget/700
DistanceToTarget < 46m
This result is nuts since at that distance or less the dumbfire will hit for sure but the fighters will probably crash. The reaction time for the AI would require to be in miliseconds!
Could work if dumbfire missile speed is buffed or if the target is an already damaged and slow fighter.
************************************************
Target TS vs Firefly or Aurora
DumbfireSpeed = 700m/s
TARGET.SPEED = 100m/s
SHIP.LENGTH = 80m (typical for a TS)
0.4 seconds > DistanceToTarget/700
DistanceToTarget < 280m
Good. At the distance of 280m or less a Firefly or Aurora dumbfire missile would impact on a typical TS.
************************************************
Target M6 vs Firefly or Aurora
DumbfireSpeed = 700m/s
TARGET.SPEED = 120m/s
SHIP.LENGTH = 120m (typical for M6)
0.5 seconds > DistanceToTarget/700
DistanceToTarget < 350m
Good. At the distance of 350m or less a Firefly or Aurora would impact on a typical M6.
************************************************
Target M7 vs Tornado
DumbfireSpeed = 312m/s
TARGET.SPEED = 100m/s
SHIP.LENGTH = 1000m (typical for M7)
5 seconds > DistanceToTarget/312
DistanceToTarget < 1560m
Really good. At the distance of 1.56 Km or less a Tornado missile would impact on a typical M7.
************************************************
Target Capitals and TLs vs Tornado
DumbfireSpeed = 312m/s
TARGET.SPEED = 80m/s
SHIP.LENGTH = 2000m (typical for Capitals and TLs some bigger, some smaller)
12.5 seconds > DistanceToTarget/312
DistanceToTarget < 3900m
Excelent. At the distance of 3.9 Km or less a Tornado missile would impact on a typical Capital ship or TL.
************************************************
Conclusion: There are several cases in which allowing the dumbfire missiles against ships would be useful with the proposed model. These calculations can be done in the script with the mentioned parameters: Target ship size, Target ship speed, and dumbfire missile speed. The variable that needs to be checked is the distance between attacker and victim ship since is the only one whose value changes continuously during combat.
Dumbfire missiles only firing against stations
The place to discuss scripting and game modifications for X³: Farnham's Legacy
Moderators: Scripting / Modding Moderators, Moderators for English X Forum, Moderators for the X3:FL Forums
1 post
• Page 1 of 1
-
- Posts: 11
- Joined: Fri, 24. Jun 22, 23:37
Dumbfire missiles only firing against stations
Post by CheloDeAstora »
1 post
• Page 1 of 1
Return to “X³: Farnham's Legacy - Scripts and Modding”
Jump to
- English Forums
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technical Support
- ↳ X4: Foundations - Scripts and Modding
- ↳ Construction Community
- ↳ X Wiki Discussion
- ↳ X Rebirth Universe
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technical Support
- ↳ X Rebirth - Scripts and Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts and Modding
- ↳ X Trilogy Universe
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technical Support
- ↳ X³: Terran Conflict / Albion Prelude - Scripts and Modding
- ↳ X³: Reunion, X²: The Threat, X-T and X-BTF - Technical Support
- ↳ X³: Reunion - Scripts and Modding
- ↳ X²: The Threat - Scripts and Modding
- ↳ Creative Universe
- ↳ Off Topic English
- Deutschsprachige Foren
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technische Unterstützung
- ↳ X4: Foundations - Scripts und Modding
- ↳ X Rebirth Universum
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technische Unterstützung
- ↳ X Rebirth - Scripts und Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts und Modding
- ↳ X Trilogie Universum
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technische Unterstützung
- ↳ X³: Terran Conflict / Albion Prelude - Scripts und Modding
- ↳ X³: Reunion, X²: Die Bedrohung, X-T und X-BTF - Technische Unterstützung
- ↳ X³: Reunion - Scripts und Modding
- ↳ X²: Die Bedrohung - Scripts und Modding
- ↳ Kreative Zone
- ↳ Off Topic Deutsch
- Forum Français
- ↳ X4: Foundations
- ↳ Support et Aide pour X4: Foundations
- ↳ Script et Modding pour X4: Foundations
- ↳ L'Univers X Rebirth
- ↳ Support et Aide pour X Rebirth
- ↳ Script et Modding pour X Rebirth
- ↳ Support et Aide pour la Trilogie X
- ↳ L'Univers de la Trilogie X
- ↳ Script et Modding pour la Trilogie X
- ↳ Off Topic Français
- Forum Italiano
- ↳ X4: Foundations
- ↳ Supporto Tecnico per X4: Foundations
- ↳ Script e Modding per X4: Foundations
- ↳ L'Universo di X Rebirth
- ↳ Script e Modding per X Rebirth
- ↳ Supporto Tecnico per X Rebirth
- ↳ L'Universo della Trilogia di X
- ↳ Script e Modding per la Trilogia di X
- ↳ Supporto Tecnico per la Trilogia di X
- ↳ Off Topic Italiano
- Polskie Fora
- ↳ Polskie / Polish X-Forum
- ↳ Polskie / Polish Off Topic
- Other Languages
- ↳ Česky / Czech X-Forum
- ↳ Dansk / Danish X-Forum
- ↳ Español / Spanish X-Forum
- ↳ Nederlands / Dutch X-Forum
- ↳ Português / Portuguese X-Forum
- ↳ Русский / Russian X-Forum
- DevNet: General
- ↳ MSCI Reference
- DevNet: X4: Foundations
- DevNet: X Rebirth
- ↳ XR - Technical Troubleshooting