Skip to content

Fix: USA Tomahawk missile angle jump before target hit #1581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/WeaponObjects.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3220,6 +3220,8 @@ Object TomahawkMissile
Behavior = PhysicsBehavior ModuleTag_06
Mass = 1
End

; Patch104p @bugfix Remove DistanceToTargetForLock = 10 setting to fix missile angle jump before target hit (#1574).
Behavior = MissileAIUpdate ModuleTag_07
TryToFollowTarget = Yes
FuelLifetime = 4000
Expand All @@ -3230,8 +3232,6 @@ Object TomahawkMissile
DistanceToTargetBeforeDiving = 100 ; When I hit this close to target, I ignore PreferredHeight.
; Note, if this is too small, the missile will turn too late to hit. And, since we have a 2D
; heart, being over the target counts as "there", so we'll give up and just go straight.

DistanceToTargetForLock = 10 ; Short lock on, as it looks better flying. jba.
End
Locomotor = SET_NORMAL TomahawkMissileLocomotor

Expand Down