2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-01-21 06:03:37 +00:00
|
|
|
|
|
|
|
#include "../../DNACommon/Tweaks/ITweakTargeting.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAMP1
|
2017-01-21 06:03:37 +00:00
|
|
|
{
|
2017-08-27 03:02:18 +00:00
|
|
|
struct CTweakTargeting final : public ITweakTargeting
|
2017-01-21 06:03:37 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2017-10-29 06:21:52 +00:00
|
|
|
Value<atUint32> x4_targetRadiusMode;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<float> x8_currLockOnExitDuration;
|
|
|
|
Value<float> xc_currLockOnEnterDuration;
|
|
|
|
Value<float> x10_currLockOnSwitchDuration;
|
|
|
|
Value<float> x14_lockConfirmScale;
|
2018-05-08 05:10:24 +00:00
|
|
|
Value<float> x18_nextLockOnEnterDuration;
|
|
|
|
Value<float> x1c_nextLockOnExitDuration;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<float> x20_nextLockOnSwitchDuration;
|
2017-10-29 06:21:52 +00:00
|
|
|
Value<float> x24_seekerScale;
|
|
|
|
Value<float> x28_seekerAngleSpeed;
|
|
|
|
Value<float> x2c_xrayRetAngleSpeed;
|
2017-01-21 22:26:07 +00:00
|
|
|
Value<atVec3f> x30_;
|
|
|
|
Value<atVec3f> x3c_;
|
|
|
|
Value<float> x48_;
|
|
|
|
Value<float> x4c_;
|
2017-10-29 06:21:52 +00:00
|
|
|
Value<float> x50_orbitPointZOffset;
|
|
|
|
Value<float> x54_orbitPointInTime;
|
|
|
|
Value<float> x58_orbitPointOutTime;
|
2017-01-21 22:26:07 +00:00
|
|
|
Value<float> x5c_;
|
|
|
|
Value<atVec3f> x60_;
|
|
|
|
Value<atVec3f> x6c_;
|
|
|
|
Value<atVec3f> x78_;
|
|
|
|
Value<atVec3f> x84_;
|
|
|
|
Value<float> x90_;
|
|
|
|
Value<float> x94_;
|
|
|
|
Value<float> x98_;
|
|
|
|
Value<float> x9c_;
|
|
|
|
Value<float> xa0_;
|
|
|
|
Value<float> xa4_;
|
|
|
|
Value<float> xa8_;
|
|
|
|
Value<float> xac_;
|
2017-10-29 06:21:52 +00:00
|
|
|
DNAColor xb0_thermalReticuleColor;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<float> xb4_targetFlowerScale;
|
|
|
|
DNAColor xb8_targetFlowerColor;
|
|
|
|
Value<float> xbc_missileBracketDuration;
|
|
|
|
Value<float> xc0_missileBracketScaleStart;
|
|
|
|
Value<float> xc4_missileBracketScaleEnd;
|
|
|
|
Value<float> xc8_missileBracketScaleDuration;
|
|
|
|
DNAColor xcc_missileBracketColor;
|
|
|
|
Value<float> xd0_LockonDuration;
|
|
|
|
Value<float> xd4_innerBeamScale;
|
|
|
|
DNAColor xd8_innerBeamColorPower;
|
|
|
|
DNAColor xdc_innerBeamColorIce;
|
|
|
|
DNAColor xe0_innerBeamColorWave;
|
|
|
|
DNAColor xe4_innerBeamColorPlasma;
|
|
|
|
Value<float> xe8_chargeGaugeOvershootOffset;
|
|
|
|
Value<float> xec_chargeGaugeOvershootDuration;
|
|
|
|
Value<float> xf0_outerBeamSquaresScale;
|
|
|
|
DNAColor xf4_outerBeamSquareColor;
|
|
|
|
Value<atUint32> xf8_outerBeamSquareAngleCount;
|
2018-02-22 07:24:51 +00:00
|
|
|
struct UnkVec : BigDNA
|
2017-01-21 22:26:07 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA
|
2017-01-21 22:26:07 +00:00
|
|
|
Value<atUint32> count;
|
2018-02-25 08:23:27 +00:00
|
|
|
Vector<float, AT_DNA_COUNT(count)> floats;
|
2017-01-21 22:26:07 +00:00
|
|
|
};
|
2018-02-25 08:23:27 +00:00
|
|
|
Vector<UnkVec, AT_DNA_COUNT(xf8_outerBeamSquareAngleCount)> xf8_outerBeamSquareAngles;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<atUint32> x108_chargeGaugeAngleCount;
|
2018-02-25 08:23:27 +00:00
|
|
|
Vector<float, AT_DNA_COUNT(x108_chargeGaugeAngleCount)> x108_chargeGaugeAngles;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<float> x118_chargeGaugeScale;
|
|
|
|
DNAColor x11c_chargeGaugeNonFullColor;
|
|
|
|
Value<atUint32> x120_chargeTickCount;
|
|
|
|
Value<float> x124_chargeTickAnglePitch;
|
|
|
|
Value<float> x128_lockFireScale;
|
|
|
|
Value<float> x12c_lockFireDuration;
|
|
|
|
DNAColor x130_lockFireColor;
|
|
|
|
Value<float> x134_lockDaggerScaleStart;
|
|
|
|
Value<float> x138_lockDaggerScaleEnd;
|
|
|
|
DNAColor x13c_lockDaggerColor;
|
|
|
|
Value<float> x140_lockDaggerAngle0;
|
|
|
|
Value<float> x144_lockDaggerAngle1;
|
|
|
|
Value<float> x148_lockDaggerAngle2;
|
|
|
|
DNAColor x14c_lockConfirmColor;
|
2017-10-29 06:21:52 +00:00
|
|
|
DNAColor x150_seekerColor;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<float> x154_lockConfirmClampMin;
|
|
|
|
Value<float> x158_lockConfirmClampMax;
|
|
|
|
Value<float> x15c_targetFlowerClampMin;
|
|
|
|
Value<float> x160_targetFlowerClampMax;
|
2017-10-29 06:21:52 +00:00
|
|
|
Value<float> x164_seekerClampMin;
|
|
|
|
Value<float> x168_seekerClampMax;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<float> x16c_missileBracketClampMin;
|
|
|
|
Value<float> x170_missileBracketClampMax;
|
|
|
|
Value<float> x174_innerBeamClampMin;
|
|
|
|
Value<float> x178_innerBeamClampMax;
|
|
|
|
Value<float> x17c_chargeGaugeClampMin;
|
|
|
|
Value<float> x180_chargeGaugeClampMax;
|
|
|
|
Value<float> x184_lockFireClampMin;
|
|
|
|
Value<float> x188_lockFireClampMax;
|
|
|
|
Value<float> x18c_lockDaggerClampMin;
|
|
|
|
Value<float> x190_lockDaggerClampMax;
|
2017-10-29 06:21:52 +00:00
|
|
|
Value<float> x194_grappleSelectScale;
|
|
|
|
Value<float> x198_grappleScale;
|
|
|
|
Value<float> x19c_grappleClampMin;
|
|
|
|
Value<float> x1a0_grappleClampMax;
|
|
|
|
DNAColor x1a4_grapplePointSelectColor;
|
|
|
|
DNAColor x1a8_grapplePointColor;
|
|
|
|
DNAColor x1ac_lockedGrapplePointSelectColor;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<float> x1b0_grappleMinClampScale;
|
|
|
|
DNAColor x1b4_chargeGaugePulseColorHigh;
|
|
|
|
Value<float> x1b8_fullChargeFadeDuration;
|
2017-10-29 06:21:52 +00:00
|
|
|
DNAColor x1bc_orbitPointColor;
|
|
|
|
DNAColor x1c0_crosshairsColor;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<float> x1c4_crosshairsScaleDur;
|
2017-10-29 06:21:52 +00:00
|
|
|
Value<bool> x1c8_drawOrbitPoint;
|
2017-10-30 03:37:20 +00:00
|
|
|
DNAColor x1cc_chargeGaugePulseColorLow;
|
|
|
|
Value<float> x1d0_chargeGaugePulsePeriod;
|
|
|
|
DNAColor x1d4_;
|
|
|
|
DNAColor x1d8_;
|
|
|
|
DNAColor x1dc_;
|
2017-01-21 22:26:07 +00:00
|
|
|
Value<float> x1e0_;
|
|
|
|
Value<float> x1e4_;
|
|
|
|
Value<float> x1e8_;
|
|
|
|
Value<float> x1ec_;
|
|
|
|
Value<float> x1f0_;
|
|
|
|
Value<float> x1f4_;
|
|
|
|
Value<float> x1f8_;
|
|
|
|
Value<float> x1fc_;
|
|
|
|
Value<float> x200_;
|
|
|
|
Value<float> x204_;
|
|
|
|
Value<float> x208_;
|
2017-10-29 06:21:52 +00:00
|
|
|
Value<float> x20c_reticuleClampMin;
|
|
|
|
Value<float> x210_reticuleClampMax;
|
|
|
|
DNAColor x214_xrayRetRingColor;
|
|
|
|
Value<float> x218_reticuleScale;
|
2017-05-30 03:45:31 +00:00
|
|
|
Value<float> x21c_scanTargetClampMin;
|
|
|
|
Value<float> x220_scanTargetClampMax;
|
2017-10-30 03:37:20 +00:00
|
|
|
Value<float> x224_angularLagSpeed;
|
2017-01-21 22:26:07 +00:00
|
|
|
|
|
|
|
CTweakTargeting() = default;
|
|
|
|
CTweakTargeting(athena::io::IStreamReader& r)
|
|
|
|
{
|
|
|
|
this->read(r);
|
2017-10-30 03:37:20 +00:00
|
|
|
x124_chargeTickAnglePitch = -zeus::degToRad(x124_chargeTickAnglePitch);
|
|
|
|
x140_lockDaggerAngle0 = zeus::degToRad(x140_lockDaggerAngle0);
|
|
|
|
x144_lockDaggerAngle1 = zeus::degToRad(x144_lockDaggerAngle1);
|
|
|
|
x148_lockDaggerAngle2 = zeus::degToRad(x148_lockDaggerAngle2);
|
|
|
|
x208_ = zeus::degToRad(x208_);
|
|
|
|
for (int i=0 ; i<4 ; ++i)
|
|
|
|
for (float& f : xf8_outerBeamSquareAngles[i].floats)
|
|
|
|
f = zeus::degToRad(f);
|
|
|
|
for (int i=0 ; i<4 ; ++i)
|
|
|
|
x108_chargeGaugeAngles[i] = zeus::degToRad(x108_chargeGaugeAngles[i]);
|
2017-01-21 22:26:07 +00:00
|
|
|
}
|
2017-02-21 03:29:28 +00:00
|
|
|
|
2017-10-29 06:21:52 +00:00
|
|
|
atUint32 GetTargetRadiusMode() const { return x4_targetRadiusMode; }
|
2017-10-30 03:37:20 +00:00
|
|
|
float GetCurrLockOnExitDuration() const { return x8_currLockOnExitDuration; }
|
|
|
|
float GetCurrLockOnEnterDuration() const { return xc_currLockOnEnterDuration; }
|
|
|
|
float GetCurrLockOnSwitchDuration() const { return x10_currLockOnSwitchDuration; }
|
|
|
|
float GetLockConfirmScale() const { return x14_lockConfirmScale; }
|
2018-05-08 05:10:24 +00:00
|
|
|
float GetNextLockOnEnterDuration() const { return x18_nextLockOnEnterDuration; }
|
|
|
|
float GetNextLockOnExitDuration() const { return x1c_nextLockOnExitDuration; }
|
2017-10-30 03:37:20 +00:00
|
|
|
float GetNextLockOnSwitchDuration() const { return x20_nextLockOnSwitchDuration; }
|
2017-10-29 06:21:52 +00:00
|
|
|
float GetSeekerScale() const { return x24_seekerScale; }
|
|
|
|
float GetSeekerAngleSpeed() const { return x28_seekerAngleSpeed; }
|
|
|
|
float GetXRayRetAngleSpeed() const { return x2c_xrayRetAngleSpeed; }
|
|
|
|
float GetOrbitPointZOffset() const { return x50_orbitPointZOffset; }
|
|
|
|
float GetOrbitPointInTime() const { return x54_orbitPointInTime; }
|
|
|
|
float GetOrbitPointOutTime() const { return x58_orbitPointOutTime; }
|
|
|
|
const zeus::CColor& GetThermalReticuleColor() const { return xb0_thermalReticuleColor; }
|
2017-10-30 03:37:20 +00:00
|
|
|
float GetTargetFlowerScale() const { return xb4_targetFlowerScale; }
|
|
|
|
const zeus::CColor& GetTargetFlowerColor() const { return xb8_targetFlowerColor; }
|
|
|
|
float GetMissileBracketDuration() const { return xbc_missileBracketDuration; }
|
|
|
|
float GetMissileBracketScaleStart() const { return xc0_missileBracketScaleStart; }
|
|
|
|
float GetMissileBracketScaleEnd() const { return xc4_missileBracketScaleEnd; }
|
|
|
|
float GetMissileBracketScaleDuration() const { return xc8_missileBracketScaleDuration; }
|
|
|
|
const zeus::CColor& GetMissileBracketColor() const { return xcc_missileBracketColor; }
|
|
|
|
float GetChargeGaugeOvershootOffset() const { return xe8_chargeGaugeOvershootOffset; }
|
|
|
|
float GetChargeGaugeOvershootDuration() const { return xec_chargeGaugeOvershootDuration; }
|
|
|
|
float GetOuterBeamSquaresScale() const { return xf0_outerBeamSquaresScale; }
|
|
|
|
const zeus::CColor& GetOuterBeamSquareColor() const { return xf4_outerBeamSquareColor; }
|
|
|
|
float GetLockonDuration() const { return xd0_LockonDuration; }
|
|
|
|
float GetInnerBeamScale() const { return xd4_innerBeamScale; }
|
|
|
|
const zeus::CColor& GetInnerBeamColorPower() const { return xd8_innerBeamColorPower; }
|
|
|
|
const zeus::CColor& GetInnerBeamColorIce() const { return xdc_innerBeamColorIce; }
|
|
|
|
const zeus::CColor& GetInnerBeamColorWave() const { return xe0_innerBeamColorWave; }
|
|
|
|
const zeus::CColor& GetInnerBeamColorPlasma() const { return xe4_innerBeamColorPlasma; }
|
|
|
|
const float* GetOuterBeamSquareAngles(int i) const { return xf8_outerBeamSquareAngles[i].floats.data(); }
|
|
|
|
float GetChargeGaugeAngle(int i) const { return x108_chargeGaugeAngles[i]; }
|
|
|
|
float GetChargeGaugeScale() const { return x118_chargeGaugeScale; }
|
|
|
|
const zeus::CColor& GetChargeGaugeNonFullColor() const { return x11c_chargeGaugeNonFullColor; }
|
|
|
|
atUint32 GetChargeTickCount() const { return x120_chargeTickCount; }
|
|
|
|
float GetChargeTickAnglePitch() const { return x124_chargeTickAnglePitch; }
|
|
|
|
float GetLockFireScale() const { return x128_lockFireScale; }
|
|
|
|
float GetLockFireDuration() const { return x12c_lockFireDuration; }
|
|
|
|
const zeus::CColor& GetLockFireColor() const { return x130_lockFireColor; }
|
|
|
|
float GetLockDaggerScaleStart() const { return x134_lockDaggerScaleStart; }
|
|
|
|
float GetLockDaggerScaleEnd() const { return x138_lockDaggerScaleEnd; }
|
|
|
|
const zeus::CColor& GetLockDaggerColor() const { return x13c_lockDaggerColor; }
|
|
|
|
float GetLockDaggerAngle0() const { return x140_lockDaggerAngle0; }
|
|
|
|
float GetLockDaggerAngle1() const { return x144_lockDaggerAngle1; }
|
|
|
|
float GetLockDaggerAngle2() const { return x148_lockDaggerAngle2; }
|
|
|
|
const zeus::CColor& GetLockConfirmColor() const { return x14c_lockConfirmColor; }
|
2017-10-29 06:21:52 +00:00
|
|
|
const zeus::CColor& GetSeekerColor() const { return x150_seekerColor; }
|
2017-10-30 03:37:20 +00:00
|
|
|
float GetLockConfirmClampMin() const { return x154_lockConfirmClampMin; }
|
|
|
|
float GetLockConfirmClampMax() const { return x158_lockConfirmClampMax; }
|
|
|
|
float GetTargetFlowerClampMin() const { return x15c_targetFlowerClampMin; }
|
|
|
|
float GetTargetFlowerClampMax() const { return x160_targetFlowerClampMax; }
|
2017-10-29 06:21:52 +00:00
|
|
|
float GetSeekerClampMin() const { return x164_seekerClampMin; }
|
|
|
|
float GetSeekerClampMax() const { return x168_seekerClampMax; }
|
2017-10-30 03:37:20 +00:00
|
|
|
float GetMissileBracketClampMin() const { return x16c_missileBracketClampMin; }
|
|
|
|
float GetMissileBracketClampMax() const { return x170_missileBracketClampMax; }
|
|
|
|
float GetInnerBeamClampMin() const { return x174_innerBeamClampMin; }
|
|
|
|
float GetInnerBeamClampMax() const { return x178_innerBeamClampMax; }
|
|
|
|
float GetChargeGaugeClampMin() const { return x17c_chargeGaugeClampMin; }
|
|
|
|
float GetChargeGaugeClampMax() const { return x180_chargeGaugeClampMax; }
|
|
|
|
float GetLockFireClampMin() const { return x184_lockFireClampMin; }
|
|
|
|
float GetLockFireClampMax() const { return x188_lockFireClampMax; }
|
|
|
|
float GetLockDaggerClampMin() const { return x18c_lockDaggerClampMin; }
|
|
|
|
float GetLockDaggerClampMax() const { return x190_lockDaggerClampMax; }
|
2017-10-29 06:21:52 +00:00
|
|
|
float GetGrappleSelectScale() const { return x194_grappleSelectScale; }
|
|
|
|
float GetGrappleScale() const { return x198_grappleScale; }
|
|
|
|
float GetGrappleClampMin() const { return x19c_grappleClampMin; }
|
|
|
|
float GetGrappleClampMax() const { return x1a0_grappleClampMax; }
|
|
|
|
const zeus::CColor& GetGrapplePointSelectColor() const { return x1a4_grapplePointSelectColor; }
|
|
|
|
const zeus::CColor& GetGrapplePointColor() const { return x1a8_grapplePointColor; }
|
|
|
|
const zeus::CColor& GetLockedGrapplePointSelectColor() const { return x1ac_lockedGrapplePointSelectColor; }
|
2017-10-30 03:37:20 +00:00
|
|
|
float GetGrappleMinClampScale() const { return x1b0_grappleMinClampScale; }
|
|
|
|
const zeus::CColor& GetChargeGaugePulseColorHigh() const { return x1b4_chargeGaugePulseColorHigh; }
|
|
|
|
float GetFullChargeFadeDuration() const { return x1b8_fullChargeFadeDuration; }
|
2017-10-29 06:21:52 +00:00
|
|
|
const zeus::CColor& GetOrbitPointColor() const { return x1bc_orbitPointColor; }
|
|
|
|
const zeus::CColor& GetCrosshairsColor() const { return x1c0_crosshairsColor; }
|
2017-10-30 03:37:20 +00:00
|
|
|
float GetCrosshairsScaleDuration() const { return x1c4_crosshairsScaleDur; }
|
2017-10-29 06:21:52 +00:00
|
|
|
bool DrawOrbitPoint() const { return x1c8_drawOrbitPoint; }
|
2017-10-30 03:37:20 +00:00
|
|
|
const zeus::CColor& GetChargeGaugePulseColorLow() const { return x1cc_chargeGaugePulseColorLow; }
|
|
|
|
float GetChargeGaugePulsePeriod() const { return x1d0_chargeGaugePulsePeriod; }
|
2017-10-29 06:21:52 +00:00
|
|
|
float GetReticuleClampMin() const { return x20c_reticuleClampMin; }
|
|
|
|
float GetReticuleClampMax() const { return x210_reticuleClampMax; }
|
|
|
|
const zeus::CColor& GetXRayRetRingColor() const { return x214_xrayRetRingColor; }
|
|
|
|
float GetReticuleScale() const { return x218_reticuleScale; }
|
2017-05-30 03:45:31 +00:00
|
|
|
float GetScanTargetClampMin() const { return x21c_scanTargetClampMin; }
|
|
|
|
float GetScanTargetClampMax() const { return x220_scanTargetClampMax; }
|
2017-10-30 03:37:20 +00:00
|
|
|
float GetAngularLagSpeed() const { return x224_angularLagSpeed; }
|
2017-01-21 06:03:37 +00:00
|
|
|
};
|
|
|
|
}
|