Skip to content
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

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

TheCandianVendingMachine
Copy link
Contributor

@TheCandianVendingMachine TheCandianVendingMachine commented Jun 3, 2022

When merged this pull request will:

  • Adds Spike LR ATGM
  • Adds custom camera framework for Spike to use

Requires #10019

@TheCandianVendingMachine TheCandianVendingMachine changed the base branch from master to missile_guidance_rewrite May 28, 2024 03:35
@TheCandianVendingMachine TheCandianVendingMachine changed the title ADD - Missile Guidance - Spike LR ATGM Add - Spike LR ATGM May 28, 2024
@TheCandianVendingMachine
Copy link
Contributor Author

Updated to merge into new missile guidance branch

@PabstMirror PabstMirror deleted the branch acemod:master August 23, 2024 14:21
@PabstMirror
Copy link
Contributor

guess it auto closed because target merged, ugh

@PabstMirror
Copy link
Contributor

reopen test

@PabstMirror PabstMirror reopened this Aug 23, 2024
@PabstMirror PabstMirror changed the base branch from missile_guidance_rewrite to master August 23, 2024 14:42
Copy link
Contributor

@johnb432 johnb432 left a 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.

addons/spike/XEH_postInit.sqf Outdated Show resolved Hide resolved

private _lastGroundPos = _cameraNamespace getVariable [QGVAR(lastMovedGroundPos), [0, 0, 0]];

if !((_movingCameraX || _movingCameraY) || true) then {
Copy link
Contributor

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.

addons/spike/functions/fnc_camera_update.sqf Outdated Show resolved Hide resolved
addons/spike/stringtable.xml Outdated Show resolved Hide resolved
addons/spike/script_component.hpp Outdated Show resolved Hide resolved
addons/spike/functions/fnc_camera_cycleViewMode.sqf Outdated Show resolved Hide resolved
addons/spike/functions/fnc_camera_init.sqf Outdated Show resolved Hide resolved
addons/spike/functions/fnc_camera_switchTo.sqf Outdated Show resolved Hide resolved

private _lastGroundPos = _cameraNamespace getVariable [QGVAR(lastMovedGroundPos), [0, 0, 0]];

if !((_movingCameraX || _movingCameraY) || true) then {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if !((_movingCameraX || _movingCameraY) || true) then {
if !(_movingCameraX || _movingCameraY) then {

addons/spike/functions/fnc_camera_update.sqf Outdated Show resolved Hide resolved
addons/spike/functions/fnc_camera_userInCamera.sqf Outdated Show resolved Hide resolved
addons/spike/functions/fnc_keyDown.sqf Outdated Show resolved Hide resolved
if ((currentWeapon ACE_player) != QGVAR(launcher)) exitWith {};

if (_key == SPIKE_KEY_DESIGNATE) then {
if (cameraView == "GUNNER") then {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (cameraView == "GUNNER") then {
if (cameraView isEqualTo "GUNNER") then {

Comment on lines +40 to +51
_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
Copy link
Contributor

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.

Suggested change
_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

Comment on lines +54 to +64
_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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_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

@PabstMirror PabstMirror added the kind/feature Release Notes: **ADDED:** label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Release Notes: **ADDED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants