Repository navigation
feat: Homing Screamers 1.1, the game's own guidance flies the player's Screamers - #68
Open
LordBlacksun wants to merge 1 commit into
Open
LordBlacksun wants to merge 1 commit into
LordBlacksun wants to merge 1 commit into
Conversation
…s Screamers OpenReliant 0.13 lets a missile script set `homes` (OpenReliant/openreliant#1154), so the mod no longer steers the player's Screamers itself. It gives each of them the player's target as it leaves its pod, as before, and sets `homes`, so they home, warn their target and follow decoys as the AI's do. Where the AI wouldn't aim at the target, as far as a script can tell, the Screamer flies straight as before, since the game's guidance would end it after its pod launch. Closes OpenReliant#64
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The player's Screamers now home with the game's own guidance. The script sets the missile's
homesfield (OpenReliant/openreliant#1154, in OpenReliant 0.13) and drops its own steering: the turn it kept, the speed it cut and the flight model. What stays is what the game doesn't do: giving each of the player's Screamers the player's target as it leaves its pod, locked or not.That removes the differences 1.0 listed. The target gets a missile warning, so the AI drops countermeasures and a decoy can draw the Screamer off. The Screamer ends once its target is lost, arrives as the AI's do, and aims at the part of a ship the AI aims at.
The script sets
homesonly where, as far as a script can tell, the AI would aim at the target: a ship that isn't exploding, cloaked, disabled or ejected and can be targeted, and, for a component, one that isn't destroyed. Otherwise the Screamer flies straight as before, since the game's guidance would end it after its pod launch. A script can't see a ship sent off or a hidden component, so a Screamer aimed at one of those still ends after its pod launch.The mod now needs OpenReliant 0.13 (
OpenReliant=0.13,Version=1.1), which is out. The description, the README andlicense.txtdrop the differences and the steering.I tested it headless on OpenReliant 0.13.0, with a local flight test that runs the script through the real scripting runtime and missile code (the 1.0 test, updated; it isn't part of this change). A Screamer is fired at a ship 8000 to the side and 15000 ahead, flying on at 200 a step:
Setting
homeson every Screamer, or leaving out the pod check, the cloaked check or the component check, each makes one of these fail. The collection's checks pass locally with 0.13.0'ssltool(release.py --dry-runandsite.py), with the artists' repositories left out. I haven't flown 1.1 in the game yet.Closes #64