2017-01-23 10:13:36 +00:00
|
|
|
#ifndef _DNAMP1_CTWEAKGUI_HPP_
|
|
|
|
#define _DNAMP1_CTWEAKGUI_HPP_
|
2016-08-20 04:22:13 +00:00
|
|
|
|
|
|
|
#include "../../DNACommon/Tweaks/ITweakGui.hpp"
|
|
|
|
|
|
|
|
namespace DataSpec
|
|
|
|
{
|
|
|
|
namespace DNAMP1
|
|
|
|
{
|
|
|
|
struct CTweakGui : ITweakGui
|
|
|
|
{
|
|
|
|
DECL_YAML
|
|
|
|
Value<bool> x4_;
|
2017-03-20 05:09:53 +00:00
|
|
|
Value<float> x8_mapAlphaInterp;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> xc_;
|
2017-04-07 05:35:09 +00:00
|
|
|
Value<float> x10_radarXYRadius;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x14_;
|
|
|
|
Value<float> x18_;
|
|
|
|
Value<float> x1c_;
|
|
|
|
Value<float> x20_;
|
2017-04-07 05:35:09 +00:00
|
|
|
Value<float> x24_radarZRadius;
|
|
|
|
Value<float> x28_radarZCloseRadius;
|
2016-08-31 00:33:59 +00:00
|
|
|
atUint32 x2c_ = 0;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x30_;
|
2017-04-03 05:37:54 +00:00
|
|
|
Value<float> x34_energyBarFilledSpeed;
|
|
|
|
Value<float> x38_energyBarShadowSpeed;
|
|
|
|
Value<float> x3c_energyBarDrainDelay;
|
|
|
|
Value<bool> x40_energyBarAlwaysResetDelay;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x44_;
|
|
|
|
Value<float> x48_;
|
|
|
|
Value<float> x4c_;
|
|
|
|
Value<float> x50_;
|
|
|
|
Value<float> x54_;
|
|
|
|
Value<float> x58_;
|
|
|
|
Value<float> x5c_;
|
|
|
|
Value<float> x60_;
|
|
|
|
Value<atVec3f> x64_;
|
|
|
|
Value<atVec3f> x70_;
|
|
|
|
Value<float> x7c_;
|
|
|
|
Value<float> x80_;
|
|
|
|
Value<float> x84_;
|
|
|
|
Value<float> x88_;
|
|
|
|
Value<float> x8c_;
|
|
|
|
Value<float> x90_;
|
|
|
|
Value<float> x94_;
|
|
|
|
Value<float> x98_;
|
|
|
|
Value<float> x9c_;
|
|
|
|
Value<float> xa0_;
|
|
|
|
Value<float> xa4_;
|
2017-04-03 01:39:23 +00:00
|
|
|
Value<atUint32> xa8_hudCamFovTweak;
|
|
|
|
Value<atUint32> xac_hudCamYTweak;
|
|
|
|
Value<atUint32> xb0_hudCamZTweak;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> xb4_;
|
|
|
|
Value<float> xb8_;
|
|
|
|
Value<float> xbc_;
|
|
|
|
Value<float> xc0_;
|
|
|
|
Value<float> xc4_;
|
|
|
|
Value<float> xc8_;
|
|
|
|
Value<float> xcc_;
|
|
|
|
Value<float> xd0_;
|
|
|
|
Value<atUint32> xd4_;
|
|
|
|
Value<float> xd8_;
|
|
|
|
Value<float> xdc_;
|
|
|
|
Value<float> xe0_;
|
2017-04-07 05:35:09 +00:00
|
|
|
Value<float> xe4_maxThreatEnergy;
|
|
|
|
Value<float> xe8_radarScopeCoordRadius;
|
|
|
|
Value<float> xec_radarPlayerPaintRadius;
|
|
|
|
Value<float> xf0_radarEnemyPaintRadius;
|
2017-04-04 05:48:13 +00:00
|
|
|
Value<float> xf4_missileArrowVisTime;
|
2017-02-12 03:17:18 +00:00
|
|
|
Value<EHudVisMode> xf8_hudVisMode;
|
|
|
|
Value<EHelmetVisMode> xfc_helmetVisMode;
|
|
|
|
Value<atUint32> x100_enableAutoMapper;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<atUint32> x104_;
|
2017-02-12 03:17:18 +00:00
|
|
|
Value<atUint32> x108_enableTargetingManager;
|
|
|
|
Value<atUint32> x10c_enablePlayerVisor;
|
2017-04-07 05:35:09 +00:00
|
|
|
Value<float> x110_threatWarningFraction;
|
2017-04-04 05:48:13 +00:00
|
|
|
Value<float> x114_missileWarningFraction;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x118_;
|
|
|
|
Value<float> x11c_;
|
|
|
|
Value<float> x120_;
|
|
|
|
Value<float> x124_;
|
|
|
|
Value<float> x128_;
|
|
|
|
Value<float> x12c_;
|
|
|
|
Value<bool> x130_;
|
|
|
|
Value<float> x134_;
|
|
|
|
Value<float> x138_;
|
|
|
|
Value<atUint32> x13c_;
|
|
|
|
Value<atUint32> x140_;
|
|
|
|
Value<atUint32> x144_;
|
|
|
|
Value<atUint32> x148_;
|
|
|
|
Value<atUint32> x14c_;
|
|
|
|
String<-1> x150_;
|
|
|
|
String<-1> x160_;
|
|
|
|
String<-1> x170_;
|
|
|
|
String<-1> x180_;
|
|
|
|
String<-1> x190_;
|
2017-04-04 05:48:13 +00:00
|
|
|
Value<float> x1a0_missileWarningPulseTime;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x1a4_;
|
|
|
|
Value<float> x1a8_;
|
|
|
|
Value<float> x1ac_;
|
|
|
|
Value<float> x1b0_;
|
|
|
|
Value<float> x1b4_;
|
|
|
|
Value<float> x1b8_;
|
|
|
|
Value<float> x1bc_;
|
|
|
|
Value<float> x1c0_;
|
|
|
|
Value<float> x1c4_;
|
|
|
|
Value<float> x1c8_;
|
|
|
|
Value<bool> x1cc_;
|
|
|
|
Value<bool> x1cd_;
|
|
|
|
Value<float> x1d0_;
|
|
|
|
Value<float> x1d4_;
|
|
|
|
Value<float> x1d8_;
|
|
|
|
Value<float> x1dc_;
|
|
|
|
Value<float> x1e0_;
|
|
|
|
Value<float> x1e4_;
|
|
|
|
Value<float> x1e8_;
|
|
|
|
Value<float> x1ec_;
|
|
|
|
Value<float> x1f0_;
|
|
|
|
Value<float> x1f4_;
|
|
|
|
Value<float> x1f8_;
|
|
|
|
Value<float> x1fc_;
|
2017-01-26 10:06:18 +00:00
|
|
|
float x200_;
|
2016-08-20 04:22:13 +00:00
|
|
|
float x204_xrayBlurScaleLinear = 0.0014f;
|
|
|
|
float x208_xrayBlurScaleQuadratic = 0.0000525f;
|
|
|
|
Value<float> x20c_;
|
2017-04-02 03:03:37 +00:00
|
|
|
Value<float> x210_scanSidesAngle;
|
|
|
|
Value<float> x214_scanSidesXScale;
|
|
|
|
Value<float> x218_scanSidesPositionEnd;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x21c_;
|
2017-04-02 03:03:37 +00:00
|
|
|
Value<float> x220_scanSidesDuration;
|
|
|
|
Value<float> x224_scanSidesStartTime;
|
|
|
|
float x228_scanSidesEndTime;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x22c_;
|
|
|
|
Value<float> x230_;
|
|
|
|
Value<float> x234_;
|
|
|
|
Value<float> x238_;
|
|
|
|
Value<float> x23c_;
|
|
|
|
Value<float> x240_;
|
2017-02-10 05:43:07 +00:00
|
|
|
Value<float> x244_scanAppearanceOffset;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x248_;
|
|
|
|
Value<float> x24c_;
|
|
|
|
Value<float> x250_;
|
2017-04-03 01:39:23 +00:00
|
|
|
Value<float> x254_ballViewportYReduction;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x258_;
|
|
|
|
Value<float> x25c_;
|
|
|
|
Value<float> x260_;
|
|
|
|
Value<float> x264_;
|
|
|
|
Value<float> x268_;
|
|
|
|
Value<float> x26c_;
|
2017-04-02 03:03:37 +00:00
|
|
|
Value<float> x270_scanSidesPositionStart;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<bool> x274_;
|
2017-01-26 10:06:18 +00:00
|
|
|
bool x275_ = true;
|
2017-02-12 03:17:18 +00:00
|
|
|
Value<float> x278_wtMgrCharsPerSfx;
|
2017-03-04 04:31:08 +00:00
|
|
|
Value<atUint32> x27c_xrayFogMode;
|
|
|
|
Value<float> x280_xrayFogNearZ;
|
|
|
|
Value<float> x284_xrayFogFarZ;
|
|
|
|
DNAColor x288_xrayFogColor;
|
|
|
|
Value<float> x28c_thermalVisorLevel;
|
|
|
|
DNAColor x290_thermalVisorColor;
|
2017-01-26 10:06:18 +00:00
|
|
|
DNAColor x294_;
|
|
|
|
DNAColor x298_;
|
|
|
|
DNAColor x29c_;
|
|
|
|
DNAColor x2a0_;
|
|
|
|
DNAColor x2a4_;
|
|
|
|
DNAColor x2a8_;
|
|
|
|
DNAColor x2ac_;
|
|
|
|
DNAColor x2b0_;
|
|
|
|
DNAColor x2b4_;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x2b8_;
|
|
|
|
Value<float> x2bc_;
|
|
|
|
Value<float> x2c0_;
|
|
|
|
Value<atUint32> m_scanSpeedsCount;
|
|
|
|
Vector<float, DNA_COUNT(m_scanSpeedsCount)> x2c4_scanSpeeds;
|
|
|
|
String<-1> x2d0_;
|
|
|
|
String<-1> x2e0_;
|
|
|
|
String<-1> x2f0_;
|
2017-01-26 10:06:18 +00:00
|
|
|
DNAColor x300_;
|
|
|
|
DNAColor x304_;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x308_;
|
|
|
|
Value<float> x30c_;
|
|
|
|
Value<float> x310_;
|
|
|
|
String<-1> x314_;
|
|
|
|
String<-1> x324_;
|
|
|
|
String<-1> x334_;
|
2017-01-26 10:06:18 +00:00
|
|
|
DNAColor x344_;
|
|
|
|
DNAColor x348_;
|
|
|
|
DNAColor x34c_;
|
|
|
|
DNAColor x350_;
|
|
|
|
DNAColor x354_;
|
|
|
|
DNAColor x358_;
|
2016-08-20 04:22:13 +00:00
|
|
|
Value<float> x35c_;
|
|
|
|
Value<float> x360_;
|
|
|
|
Value<float> x364_;
|
|
|
|
|
2017-01-26 10:06:18 +00:00
|
|
|
CTweakGui() = default;
|
|
|
|
CTweakGui(athena::io::IStreamReader& r) { this->read(r); }
|
2017-02-10 05:43:07 +00:00
|
|
|
|
2017-03-20 05:09:53 +00:00
|
|
|
float GetMapAlphaInterpolant() const { return x8_mapAlphaInterp; }
|
2017-04-07 05:35:09 +00:00
|
|
|
float GetRadarXYRadius() const { return x10_radarXYRadius; }
|
|
|
|
float GetRadarZRadius() const { return x24_radarZRadius; }
|
|
|
|
float GetRadarZCloseRadius() const { return x28_radarZCloseRadius; }
|
2017-04-03 05:37:54 +00:00
|
|
|
float GetEnergyBarFilledSpeed() const { return x34_energyBarFilledSpeed; }
|
|
|
|
float GetEnergyBarShadowSpeed() const { return x38_energyBarShadowSpeed; }
|
|
|
|
float GetEnergyBarDrainDelay() const { return x3c_energyBarDrainDelay; }
|
|
|
|
bool GetEnergyBarAlwaysResetDelay() const { return x40_energyBarAlwaysResetDelay; }
|
2017-04-03 01:39:23 +00:00
|
|
|
atUint32 GetHudCamFovTweak() const { return xa8_hudCamFovTweak; }
|
|
|
|
atUint32 GetHudCamYTweak() const { return xac_hudCamYTweak; }
|
|
|
|
atUint32 GetHudCamZTweak() const { return xb0_hudCamZTweak; }
|
2017-04-07 05:35:09 +00:00
|
|
|
float GetMaxThreatEnergy() const { return xe4_maxThreatEnergy; }
|
|
|
|
float GetRadarScopeCoordRadius() const { return xe8_radarScopeCoordRadius; }
|
|
|
|
float GetRadarPlayerPaintRadius() const { return xec_radarPlayerPaintRadius; }
|
|
|
|
float GetRadarEnemyPaintRadius() const { return xf0_radarEnemyPaintRadius; }
|
2017-04-04 05:48:13 +00:00
|
|
|
float GetMissileArrowVisTime() const { return xf4_missileArrowVisTime; }
|
2017-02-12 03:17:18 +00:00
|
|
|
EHudVisMode GetHudVisMode() const { return xf8_hudVisMode; }
|
|
|
|
EHelmetVisMode GetHelmetVisMode() const { return xfc_helmetVisMode; }
|
|
|
|
atUint32 GetEnableAutoMapper() const { return x100_enableAutoMapper; }
|
|
|
|
atUint32 GetEnableTargetingManager() const { return x108_enableTargetingManager; }
|
|
|
|
atUint32 GetEnablePlayerVisor() const { return x10c_enablePlayerVisor; }
|
2017-04-07 05:35:09 +00:00
|
|
|
float GetThreatWarningFraction() const { return x110_threatWarningFraction; }
|
2017-04-04 05:48:13 +00:00
|
|
|
float GetMissileWarningFraction() const { return x114_missileWarningFraction; }
|
|
|
|
float GetMissileWarningPulseTime() const { return x1a0_missileWarningPulseTime; }
|
2017-02-10 05:43:07 +00:00
|
|
|
float GetScanAppearanceOffset() const { return x244_scanAppearanceOffset; }
|
2017-04-03 01:39:23 +00:00
|
|
|
float GetBallViewportYReduction() const { return x254_ballViewportYReduction; }
|
2016-08-20 04:22:13 +00:00
|
|
|
float GetXrayBlurScaleLinear() const { return x204_xrayBlurScaleLinear; }
|
|
|
|
float GetXrayBlurScaleQuadratic() const { return x208_xrayBlurScaleQuadratic; }
|
2017-04-02 03:03:37 +00:00
|
|
|
float GetScanSidesAngle() const { return x210_scanSidesAngle; }
|
|
|
|
float GetScanSidesXScale() const { return x214_scanSidesXScale; }
|
|
|
|
float GetScanSidesPositionEnd() const { return x218_scanSidesPositionEnd; }
|
|
|
|
float GetScanSidesDuration() const { return x220_scanSidesDuration; }
|
|
|
|
float GetScanSidesStartTime() const { return x224_scanSidesStartTime; }
|
|
|
|
float GetScanSidesEndTime() const { return x228_scanSidesEndTime; }
|
|
|
|
float GetScanSidesPositionStart() const { return x270_scanSidesPositionStart; }
|
2017-02-12 03:17:18 +00:00
|
|
|
float GetWorldTransManagerCharsPerSfx() const { return x278_wtMgrCharsPerSfx; }
|
2017-03-04 04:31:08 +00:00
|
|
|
atUint32 GetXRayFogMode() const { return x27c_xrayFogMode; }
|
|
|
|
float GetXRayFogNearZ() const { return x280_xrayFogNearZ; }
|
|
|
|
float GetXRayFogFarZ() const { return x284_xrayFogFarZ; }
|
|
|
|
const zeus::CColor& GetXRayFogColor() const { return x288_xrayFogColor; }
|
|
|
|
float GetThermalVisorLevel() const { return x28c_thermalVisorLevel; }
|
|
|
|
const zeus::CColor& GetThermalVisorColor() const { return x290_thermalVisorColor; }
|
2016-08-20 04:22:13 +00:00
|
|
|
|
|
|
|
float GetScanSpeed(int idx) const
|
|
|
|
{
|
|
|
|
if (idx < 0 || idx >= x2c4_scanSpeeds.size())
|
|
|
|
return 0.f;
|
|
|
|
return x2c4_scanSpeeds[idx];
|
|
|
|
}
|
|
|
|
|
|
|
|
void FixupValues()
|
|
|
|
{
|
|
|
|
xd8_ = zeus::degToRad(xd8_);
|
|
|
|
xdc_ = zeus::degToRad(xdc_);
|
|
|
|
|
2017-01-26 10:06:18 +00:00
|
|
|
x200_ = x1f4_ * 0.25f;
|
|
|
|
x204_xrayBlurScaleLinear = x1f8_ * 0.25f;
|
|
|
|
x208_xrayBlurScaleQuadratic = x1fc_ * 0.25f;
|
2016-08-20 04:22:13 +00:00
|
|
|
|
2017-04-02 03:03:37 +00:00
|
|
|
x210_scanSidesAngle = zeus::degToRad(x210_scanSidesAngle);
|
|
|
|
x228_scanSidesEndTime = x220_scanSidesDuration + x224_scanSidesStartTime;
|
2016-08-20 04:22:13 +00:00
|
|
|
|
2017-03-04 04:31:08 +00:00
|
|
|
if (x27c_xrayFogMode == 1)
|
|
|
|
x27c_xrayFogMode = 2;
|
|
|
|
else if (x27c_xrayFogMode == 2)
|
|
|
|
x27c_xrayFogMode = 4;
|
|
|
|
else if (x27c_xrayFogMode == 3)
|
|
|
|
x27c_xrayFogMode = 5;
|
2016-08-20 04:22:13 +00:00
|
|
|
else
|
2017-03-04 04:31:08 +00:00
|
|
|
x27c_xrayFogMode = 0;
|
2016-08-20 04:22:13 +00:00
|
|
|
|
|
|
|
x84_ *= 2.0f;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-23 10:13:36 +00:00
|
|
|
#endif // _DNAMP1_CTWEAKGUI_HPP_
|