-
Notifications
You must be signed in to change notification settings - Fork 736
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
Add - Spike LR ATGM #8931
base: master
Are you sure you want to change the base?
Add - Spike LR ATGM #8931
Conversation
Updated to merge into new missile guidance branch |
guess it auto closed because target merged, ugh |
reopen test |
Co-authored-by: Jouni Järvinen <[email protected]>
Co-authored-by: Jouni Järvinen <[email protected]>
Co-authored-by: Jouni Järvinen <[email protected]>
Co-authored-by: Jouni Järvinen <[email protected]>
Co-authored-by: Jouni Järvinen <[email protected]>
Co-authored-by: Jouni Järvinen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All headers to camera
functions (and some others) need to be updated with correct examples.
|
||
private _lastGroundPos = _cameraNamespace getVariable [QGVAR(lastMovedGroundPos), [0, 0, 0]]; | ||
|
||
if !((_movingCameraX || _movingCameraY) || true) then { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That true
needs to go.
|
||
private _lastGroundPos = _cameraNamespace getVariable [QGVAR(lastMovedGroundPos), [0, 0, 0]]; | ||
|
||
if !((_movingCameraX || _movingCameraY) || true) then { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if !((_movingCameraX || _movingCameraY) || true) then { | |
if !(_movingCameraX || _movingCameraY) then { |
if ((currentWeapon ACE_player) != QGVAR(launcher)) exitWith {}; | ||
|
||
if (_key == SPIKE_KEY_DESIGNATE) then { | ||
if (cameraView == "GUNNER") then { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (cameraView == "GUNNER") then { | |
if (cameraView isEqualTo "GUNNER") then { |
_cameraArray set [9, [ | ||
getNumber (_cameraConfig >> "gimbal" >> "enabled") == 1, | ||
getNumber (_cameraConfig >> "gimbal" >> "gimbalAngleX"), | ||
getNumber (_cameraConfig >> "gimbal" >> "gimbalAngleY"), | ||
getNumber (_cameraConfig >> "gimbal" >> "gimbalSpeedX"), | ||
getNumber (_cameraConfig >> "gimbal" >> "gimbalSpeedY"), | ||
getNumber (_cameraConfig >> "gimbal" >> "gimbalInitOffsetX"), | ||
getNumber (_cameraConfig >> "gimbal" >> "gimbalInitOffsetY"), | ||
getArray (_cameraConfig >> "gimbal" >> "fovGimbalSpeedModifiers"), | ||
getNumber (_cameraConfig >> "gimbal" >> "stabilizeWhenMoving") == 1, | ||
getNumber (_cameraConfig >> "gimbal" >> "designateWhenStationary") == 1, | ||
getNumber (_cameraConfig >> "gimbal" >> "trackLockedPosition") == 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch, this many calls has to be expensive.
_cameraArray set [9, [ | |
getNumber (_cameraConfig >> "gimbal" >> "enabled") == 1, | |
getNumber (_cameraConfig >> "gimbal" >> "gimbalAngleX"), | |
getNumber (_cameraConfig >> "gimbal" >> "gimbalAngleY"), | |
getNumber (_cameraConfig >> "gimbal" >> "gimbalSpeedX"), | |
getNumber (_cameraConfig >> "gimbal" >> "gimbalSpeedY"), | |
getNumber (_cameraConfig >> "gimbal" >> "gimbalInitOffsetX"), | |
getNumber (_cameraConfig >> "gimbal" >> "gimbalInitOffsetY"), | |
getArray (_cameraConfig >> "gimbal" >> "fovGimbalSpeedModifiers"), | |
getNumber (_cameraConfig >> "gimbal" >> "stabilizeWhenMoving") == 1, | |
getNumber (_cameraConfig >> "gimbal" >> "designateWhenStationary") == 1, | |
getNumber (_cameraConfig >> "gimbal" >> "trackLockedPosition") == 1 | |
private _cameraConfigGimbal = _cameraConfig >> "gimbal"; | |
_cameraArray set [9, [ | |
getNumber (_cameraConfigGimbal >> "enabled") == 1, | |
getNumber (_cameraConfigGimbal >> "gimbalAngleX"), | |
getNumber (_cameraConfigGimbal >> "gimbalAngleY"), | |
getNumber (_cameraConfigGimbal >> "gimbalSpeedX"), | |
getNumber (_cameraConfigGimbal >> "gimbalSpeedY"), | |
getNumber (_cameraConfigGimbal >> "gimbalInitOffsetX"), | |
getNumber (_cameraConfigGimbal >> "gimbalInitOffsetY"), | |
getArray (_cameraConfigGimbal >> "fovGimbalSpeedModifiers"), | |
getNumber (_cameraConfigGimbal >> "stabilizeWhenMoving") == 1, | |
getNumber (_cameraConfigGimbal >> "designateWhenStationary") == 1, | |
getNumber (_cameraConfigGimbal >> "trackLockedPosition") == 1 |
_cameraArray set [10, [ | ||
getText (_cameraConfig >> "reticle" >> "titleRsc"), | ||
getNumber (_cameraConfig >> "reticle" >> "centerReticle"), | ||
getArray (_cameraConfig >> "reticle" >> "controlsToDisappearOnLock"), | ||
getArray (_cameraConfig >> "reticle" >> "controlsToAppearOnLock"), | ||
getNumber (_cameraConfig >> "reticle" >> "leftGate"), | ||
getNumber (_cameraConfig >> "reticle" >> "rightGate"), | ||
getNumber (_cameraConfig >> "reticle" >> "topGate"), | ||
getNumber (_cameraConfig >> "reticle" >> "bottomGate"), | ||
getText (_cameraConfig >> "reticle" >> "uiNamespaceDialogVariable"), | ||
getNumber (_cameraConfig >> "reticle" >> "reticleMovesWithTrack") == 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_cameraArray set [10, [ | |
getText (_cameraConfig >> "reticle" >> "titleRsc"), | |
getNumber (_cameraConfig >> "reticle" >> "centerReticle"), | |
getArray (_cameraConfig >> "reticle" >> "controlsToDisappearOnLock"), | |
getArray (_cameraConfig >> "reticle" >> "controlsToAppearOnLock"), | |
getNumber (_cameraConfig >> "reticle" >> "leftGate"), | |
getNumber (_cameraConfig >> "reticle" >> "rightGate"), | |
getNumber (_cameraConfig >> "reticle" >> "topGate"), | |
getNumber (_cameraConfig >> "reticle" >> "bottomGate"), | |
getText (_cameraConfig >> "reticle" >> "uiNamespaceDialogVariable"), | |
getNumber (_cameraConfig >> "reticle" >> "reticleMovesWithTrack") == 1 | |
private _cameraConfigReticle = _cameraConfig >> "reticle"; | |
_cameraArray set [10, [ | |
getText (_cameraConfigReticle >> "titleRsc"), | |
getNumber (_cameraConfigReticle >> "centerReticle"), | |
getArray (_cameraConfigReticle >> "controlsToDisappearOnLock"), | |
getArray (_cameraConfigReticle >> "controlsToAppearOnLock"), | |
getNumber (_cameraConfigReticle >> "leftGate"), | |
getNumber (_cameraConfigReticle >> "rightGate"), | |
getNumber (_cameraConfigReticle >> "topGate"), | |
getNumber (_cameraConfigReticle >> "bottomGate"), | |
getText (_cameraConfigReticle >> "uiNamespaceDialogVariable"), | |
getNumber (_cameraConfigReticle >> "reticleMovesWithTrack") == 1 |
Co-authored-by: Jouni Järvinen <[email protected]>
When merged this pull request will:
Requires #10019