2015-08-29 01:30:47 +00:00
|
|
|
#ifndef _DNAMP1_CTWEAKPLAYER_HPP_
|
|
|
|
#define _DNAMP1_CTWEAKPLAYER_HPP_
|
|
|
|
|
|
|
|
#include "../../DNACommon/Tweaks/ITweakPlayer.hpp"
|
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
namespace DataSpec
|
2015-08-29 01:30:47 +00:00
|
|
|
{
|
|
|
|
namespace DNAMP1
|
|
|
|
{
|
|
|
|
|
|
|
|
struct CTweakPlayer : ITweakPlayer
|
|
|
|
{
|
2016-09-15 07:26:35 +00:00
|
|
|
Delete _d;
|
|
|
|
Value<float> x4_[8];
|
|
|
|
Value<float> x24_[8];
|
|
|
|
Value<float> x44_[8];
|
|
|
|
Value<float> x64_[8];
|
|
|
|
Value<float> x84_[8];
|
|
|
|
Value<float> xa4_[8];
|
2017-07-23 23:45:04 +00:00
|
|
|
Value<float> xc4_normalGravAccel;
|
|
|
|
Value<float> xc8_fluidGravAccel;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> xcc_;
|
|
|
|
Value<float> xd0_;
|
|
|
|
Value<float> xd4_;
|
|
|
|
Value<float> xd8_;
|
|
|
|
Value<float> xdc_;
|
|
|
|
Value<float> xe0_;
|
|
|
|
Value<float> xe4_;
|
|
|
|
Value<float> xe8_;
|
|
|
|
Value<float> xec_;
|
|
|
|
Value<float> xf0_;
|
|
|
|
Value<float> xf4_;
|
|
|
|
Value<float> xf8_;
|
|
|
|
Value<float> xfc_;
|
|
|
|
Value<float> x100_;
|
|
|
|
Value<float> x104_;
|
|
|
|
Value<float> x108_;
|
|
|
|
Value<float> x10c_;
|
|
|
|
Value<float> x110_;
|
|
|
|
Value<float> x114_;
|
|
|
|
Value<float> x118_;
|
|
|
|
Value<float> x11c_;
|
|
|
|
Value<float> x120_;
|
|
|
|
Value<float> x124_;
|
|
|
|
Value<float> x128_;
|
|
|
|
Value<float> x12c_;
|
|
|
|
Value<float> x130_;
|
|
|
|
Value<float> x134_;
|
2017-04-09 06:14:22 +00:00
|
|
|
Value<float> x138_hudLagAmount;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x13c_;
|
|
|
|
Value<float> x140_;
|
|
|
|
Value<float> x144_;
|
|
|
|
Value<float> x148_;
|
|
|
|
Value<float> x14c_;
|
|
|
|
Value<float> x150_leftDiv;
|
|
|
|
Value<float> x154_rightDiv;
|
|
|
|
Value<float> x158_[3];
|
|
|
|
Value<float> x164_[3];
|
|
|
|
Value<float> x170_[3];
|
|
|
|
Value<float> x17c_;
|
2017-07-17 03:04:14 +00:00
|
|
|
Value<float> x180_orbitNormalDistance;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x184_;
|
|
|
|
Value<float> x188_;
|
|
|
|
Value<float> x18c_;
|
|
|
|
Value<float> x190_;
|
|
|
|
Value<float> x194_;
|
|
|
|
Value<float> x198_;
|
|
|
|
Value<float> x19c_;
|
|
|
|
Value<float> x1a0_;
|
2017-07-28 06:56:23 +00:00
|
|
|
Value<float> x1a4_orbitDistanceThreshold;
|
2017-05-30 03:45:31 +00:00
|
|
|
Value<atUint32> x1a8_orbitScreenBoxHalfExtentX[2];
|
|
|
|
Value<atUint32> x1b0_orbitScreenBoxHalfExtentY[2];
|
|
|
|
Value<atUint32> x1b8_orbitScreenBoxCenterX[2];
|
|
|
|
Value<atUint32> x1c0_orbitScreenBoxCenterY[2];
|
2017-07-28 06:56:23 +00:00
|
|
|
Value<atUint32> x1c8_orbitZoneIdealX[2];
|
|
|
|
Value<atUint32> x1d0_orbitZoneIdealY[2];
|
2017-05-30 03:45:31 +00:00
|
|
|
Value<float> x1d8_orbitNearX;
|
|
|
|
Value<float> x1dc_orbitNearZ;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x1e0_;
|
|
|
|
Value<float> x1e4_;
|
|
|
|
Value<float> x1e8_;
|
2017-06-12 04:23:34 +00:00
|
|
|
Value<float> x1ec_orbitZRange;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x1f0_;
|
|
|
|
Value<float> x1f4_;
|
|
|
|
Value<float> x1f8_;
|
|
|
|
Value<float> x1fc_;
|
|
|
|
Value<bool> x200_24_ : 1;
|
|
|
|
Value<bool> x200_25_ : 1;
|
|
|
|
Value<float> x204_;
|
|
|
|
Value<float> x208_;
|
|
|
|
Value<float> x20c_;
|
|
|
|
Value<float> x210_;
|
|
|
|
Value<float> x214_;
|
2017-04-02 03:03:37 +00:00
|
|
|
Value<float> x218_scanningRange;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<bool> x21c_24_ : 1;
|
2017-04-03 01:39:23 +00:00
|
|
|
Value<bool> x21c_25_scanFreezesGame : 1;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<bool> x21c_26_ : 1;
|
|
|
|
Value<float> x220_;
|
2017-05-30 03:45:31 +00:00
|
|
|
Value<float> x224_scanningFrameSenseRange;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<bool> x228_24_ : 1;
|
|
|
|
Value<bool> x228_25_ : 1;
|
|
|
|
Value<bool> x228_26_ : 1;
|
|
|
|
Value<bool> x228_27_ : 1;
|
|
|
|
Value<bool> x228_28_ : 1;
|
|
|
|
Value<bool> x228_29_ : 1;
|
|
|
|
Value<bool> x228_30_ : 1;
|
|
|
|
Value<bool> x228_31_ : 1;
|
|
|
|
Value<bool> x229_24_ : 1;
|
|
|
|
Value<bool> x229_25_ : 1;
|
|
|
|
Value<bool> x229_26_ : 1;
|
|
|
|
Value<bool> x229_27_ : 1;
|
|
|
|
Value<bool> x229_28_ : 1;
|
|
|
|
Value<bool> x229_29_ : 1;
|
2017-07-20 06:04:40 +00:00
|
|
|
Value<bool> x229_30_gunButtonTogglesHolster : 1;
|
|
|
|
Value<bool> x229_31_gunNotFiringHolstersGun : 1;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<bool> x22a_24_ : 1;
|
|
|
|
Value<bool> x22a_25_ : 1;
|
2017-07-17 03:04:14 +00:00
|
|
|
Value<bool> x22a_26_firingCancelsCameraPitch : 1;
|
2017-07-23 23:45:04 +00:00
|
|
|
Value<bool> x22a_27_assistedAimingIgnoreHorizontal : 1;
|
|
|
|
Value<bool> x22a_28_assistedAimingIgnoreVertical : 1;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x22c_;
|
|
|
|
Value<float> x230_;
|
2017-07-28 06:56:23 +00:00
|
|
|
Value<float> x234_aimMaxDistance;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x238_;
|
|
|
|
Value<float> x23c_;
|
|
|
|
Value<float> x240_;
|
|
|
|
Value<float> x244_;
|
|
|
|
Value<float> x248_;
|
2017-07-28 06:56:23 +00:00
|
|
|
Value<float> x24c_aimThresholdDistance;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x250_;
|
|
|
|
Value<float> x254_;
|
2017-07-28 06:56:23 +00:00
|
|
|
Value<float> x258_aimBoxWidth;
|
|
|
|
Value<float> x25c_aimBoxHeight;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x260_;
|
2017-07-23 23:45:04 +00:00
|
|
|
Value<float> x264_aimAssistHorizontalAngle;
|
|
|
|
Value<float> x268_aimAssistVerticalAngle;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x26c_playerHeight;
|
|
|
|
Value<float> x270_playerXYHalfExtent;
|
|
|
|
Value<float> x274_;
|
|
|
|
Value<float> x278_;
|
2016-12-24 06:08:48 +00:00
|
|
|
Value<float> x27c_playerBallHalfExtent;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x280_;
|
|
|
|
Value<float> x284_;
|
|
|
|
Value<float> x288_;
|
|
|
|
Value<float> x28c_;
|
|
|
|
Value<float> x290_;
|
|
|
|
Value<float> x294_;
|
|
|
|
Value<float> x298_;
|
|
|
|
Value<float> x29c_;
|
2017-07-28 06:56:23 +00:00
|
|
|
Value<float> x2a0_orbitDistanceMax;
|
2017-07-23 23:45:04 +00:00
|
|
|
Value<float> x2a4_grappleSwingLength;
|
2017-07-17 03:04:14 +00:00
|
|
|
Value<float> x2a8_grappleSwingPeriod;
|
2017-07-23 23:45:04 +00:00
|
|
|
Value<float> x2ac_grapplePullSpeedMin;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x2b0_;
|
2017-07-23 23:45:04 +00:00
|
|
|
Value<float> x2b4_maxGrappleLockedTurnAlignDistance;
|
|
|
|
Value<float> x2b8_grapplePullSpeedProportion;
|
|
|
|
Value<float> x2bc_grapplePullSpeedMax;
|
|
|
|
Value<float> x2c0_grappleLookCenterSpeed;
|
|
|
|
Value<float> x2c4_maxGrappleTurnSpeed;
|
2017-07-17 03:04:14 +00:00
|
|
|
Value<float> x2c8_grappleJumpForce;
|
2017-07-18 06:11:37 +00:00
|
|
|
Value<float> x2cc_grappleReleaseTime;
|
2017-07-17 03:04:14 +00:00
|
|
|
Value<atUint32> x2d0_grappleJumpMode;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<bool> x2d4_;
|
2017-07-23 23:45:04 +00:00
|
|
|
Value<bool> x2d5_invertGrappleTurn;
|
2016-09-15 07:26:35 +00:00
|
|
|
Value<float> x2d8_;
|
|
|
|
Value<float> x2dc_;
|
|
|
|
Value<float> x2e0_;
|
|
|
|
Value<float> x2e4_;
|
|
|
|
Value<float> x2e8_;
|
|
|
|
Value<float> x2ec_;
|
|
|
|
Value<float> x2f0_;
|
|
|
|
Value<bool> x2f4_;
|
2017-07-17 03:04:14 +00:00
|
|
|
Value<float> x2f8_frozenTimeout;
|
|
|
|
Value<atUint32> x2fc_iceBreakJumpCount;
|
2017-03-31 19:51:40 +00:00
|
|
|
Value<float> x300_variaDamageReduction;
|
|
|
|
Value<float> x304_gravityDamageReduction;
|
|
|
|
Value<float> x308_phazonDamageReduction;
|
2016-10-31 22:56:44 +00:00
|
|
|
float GetX50() const { return x44_[3]; }
|
|
|
|
float GetX54() const { return x44_[4]; }
|
|
|
|
float GetX58() const { return x44_[5]; }
|
|
|
|
float GetX5C() const { return x44_[6]; }
|
2017-07-23 23:45:04 +00:00
|
|
|
float GetNormalGravAccel() const { return xc4_normalGravAccel; }
|
|
|
|
float GetFluidGravAccel() const { return xc8_fluidGravAccel; }
|
2017-04-09 06:14:22 +00:00
|
|
|
float GetHudLagAmount() const { return x138_hudLagAmount; }
|
2017-07-17 03:04:14 +00:00
|
|
|
float GetOrbitNormalDistance() const { return x180_orbitNormalDistance; }
|
2017-07-28 06:56:23 +00:00
|
|
|
float GetOrbitDistanceThreshold() const { return x1a4_orbitDistanceThreshold; }
|
2017-05-30 03:45:31 +00:00
|
|
|
uint32_t GetOrbitScreenBoxHalfExtentX(int zone) const { return x1a8_orbitScreenBoxHalfExtentX[zone]; }
|
|
|
|
uint32_t GetOrbitScreenBoxHalfExtentY(int zone) const { return x1b0_orbitScreenBoxHalfExtentY[zone]; }
|
|
|
|
uint32_t GetOrbitScreenBoxCenterX(int zone) const { return x1b8_orbitScreenBoxCenterX[zone]; }
|
|
|
|
uint32_t GetOrbitScreenBoxCenterY(int zone) const { return x1c0_orbitScreenBoxCenterY[zone]; }
|
2017-07-28 06:56:23 +00:00
|
|
|
uint32_t GetOrbitZoneIdealX(int zone) const { return x1c8_orbitZoneIdealX[zone]; }
|
|
|
|
uint32_t GetOrbitZoneIdealY(int zone) const { return x1d0_orbitZoneIdealY[zone]; }
|
2017-05-30 03:45:31 +00:00
|
|
|
float GetOrbitNearX() const { return x1d8_orbitNearX; }
|
|
|
|
float GetOrbitNearZ() const { return x1dc_orbitNearZ; }
|
2017-06-12 04:23:34 +00:00
|
|
|
float GetOrbitZRange() const { return x1ec_orbitZRange; }
|
2017-04-02 03:03:37 +00:00
|
|
|
float GetScanningRange() const { return x218_scanningRange; }
|
2017-04-03 01:39:23 +00:00
|
|
|
bool GetScanFreezesGame() const { return x21c_25_scanFreezesGame; }
|
2017-05-30 03:45:31 +00:00
|
|
|
float GetScanningFrameSenseRange() const { return x224_scanningFrameSenseRange; }
|
2017-07-20 06:04:40 +00:00
|
|
|
bool GetGunButtonTogglesHolster() const { return x229_30_gunButtonTogglesHolster; }
|
|
|
|
bool GetGunNotFiringHolstersGun() const { return x229_31_gunNotFiringHolstersGun; }
|
2017-07-17 03:04:14 +00:00
|
|
|
bool GetFiringCancelsCameraPitch() const { return x22a_26_firingCancelsCameraPitch; }
|
2017-07-23 23:45:04 +00:00
|
|
|
bool GetAssistedAimingIgnoreHorizontal() const { return x22a_27_assistedAimingIgnoreHorizontal; }
|
|
|
|
bool GetAssistedAimingIgnoreVertical() const { return x22a_28_assistedAimingIgnoreVertical; }
|
2017-07-28 06:56:23 +00:00
|
|
|
float GetAimMaxDistance() const { return x234_aimMaxDistance; }
|
|
|
|
float GetAimThresholdDistance() const { return x24c_aimThresholdDistance; }
|
|
|
|
float GetAimBoxWidth() const { return x258_aimBoxWidth; }
|
|
|
|
float GetAimBoxHeight() const { return x25c_aimBoxHeight; }
|
2017-07-23 23:45:04 +00:00
|
|
|
float GetAimAssistHorizontalAngle() const { return x264_aimAssistHorizontalAngle; }
|
|
|
|
float GetAimAssistVerticalAngle() const { return x268_aimAssistVerticalAngle; }
|
2016-09-15 07:26:35 +00:00
|
|
|
float GetPlayerHeight() const { return x26c_playerHeight; }
|
|
|
|
float GetPlayerXYHalfExtent() const { return x270_playerXYHalfExtent; }
|
2016-10-31 22:56:44 +00:00
|
|
|
float GetX274() const { return x274_; }
|
|
|
|
float GetX278() const { return x278_; }
|
2017-06-12 04:23:34 +00:00
|
|
|
float GetPlayerBallHalfExtent() const { return x27c_playerBallHalfExtent; }
|
2017-07-28 06:56:23 +00:00
|
|
|
float GetOrbitDistanceMax() const { return x2a0_orbitDistanceMax; }
|
2017-07-23 23:45:04 +00:00
|
|
|
float GetGrappleSwingLength() const { return x2a4_grappleSwingLength; }
|
2017-07-17 03:04:14 +00:00
|
|
|
float GetGrappleSwingPeriod() const { return x2a8_grappleSwingPeriod; }
|
2017-07-23 23:45:04 +00:00
|
|
|
float GetGrapplePullSpeedMin() const { return x2ac_grapplePullSpeedMin; }
|
|
|
|
float GetMaxGrappleLockedTurnAlignDistance() const { return x2b4_maxGrappleLockedTurnAlignDistance; }
|
|
|
|
float GetGrapplePullSpeedProportion() const { return x2b8_grapplePullSpeedProportion; }
|
|
|
|
float GetGrapplePullSpeedMax() const { return x2bc_grapplePullSpeedMax; }
|
|
|
|
float GetGrappleLookCenterSpeed() const { return x2c0_grappleLookCenterSpeed; }
|
|
|
|
float GetMaxGrappleTurnSpeed() const { return x2c4_maxGrappleTurnSpeed; }
|
2017-07-17 03:04:14 +00:00
|
|
|
float GetGrappleJumpForce() const { return x2c8_grappleJumpForce; }
|
2017-07-18 06:11:37 +00:00
|
|
|
float GetGrappleReleaseTime() const { return x2cc_grappleReleaseTime; }
|
2017-07-17 03:04:14 +00:00
|
|
|
uint32_t GetGrappleJumpMode() const { return x2d0_grappleJumpMode; }
|
2017-07-23 23:45:04 +00:00
|
|
|
bool InvertGrappleTurn() const { return x2d5_invertGrappleTurn; }
|
2016-10-31 22:56:44 +00:00
|
|
|
float GetX124() const { return x134_; }
|
2017-03-24 05:30:16 +00:00
|
|
|
float GetX184() const { return x184_; }
|
2017-06-12 04:23:34 +00:00
|
|
|
float GetX1fc() const { return x1fc_; }
|
2016-10-31 22:56:44 +00:00
|
|
|
bool GetX228_24() const { return x228_24_; }
|
|
|
|
float GetX288() const { return x288_; }
|
|
|
|
float GetX28c() const { return x28c_; }
|
|
|
|
float GetX290() const { return x290_; }
|
|
|
|
float GetX294() const { return x294_; }
|
|
|
|
float GetX298() const { return x298_; }
|
|
|
|
float GetX29C() const { return x29c_; }
|
|
|
|
float GetX280() const { return x280_; }
|
|
|
|
float GetX2B0() const { return x2b0_; }
|
2017-04-09 06:14:22 +00:00
|
|
|
float GetX138() const { return x138_hudLagAmount; }
|
2016-10-31 22:56:44 +00:00
|
|
|
float GetX14C() const { return x14c_; }
|
2017-03-31 19:51:40 +00:00
|
|
|
float GetLeftLogicalThreshold() const { return x150_leftDiv; }
|
|
|
|
float GetRightLogicalThreshold() const { return x154_rightDiv; }
|
2017-06-12 04:23:34 +00:00
|
|
|
float GetX164(int type) const { return x164_[type]; }
|
2017-07-17 03:04:14 +00:00
|
|
|
float GetFrozenTimeout() const { return x2f8_frozenTimeout; }
|
|
|
|
uint32_t GetIceBreakJumpCount() const { return x2fc_iceBreakJumpCount; }
|
2017-03-31 19:51:40 +00:00
|
|
|
float GetVariaDamageReduction() const { return x300_variaDamageReduction; }
|
|
|
|
float GetGravityDamageReduction() const { return x304_gravityDamageReduction; }
|
|
|
|
float GetPhazonDamageReduction() const { return x308_phazonDamageReduction; }
|
2016-09-15 07:26:35 +00:00
|
|
|
CTweakPlayer() = default;
|
|
|
|
CTweakPlayer(athena::io::IStreamReader& reader)
|
|
|
|
{
|
|
|
|
read(reader);
|
|
|
|
FixupValues();
|
|
|
|
}
|
|
|
|
|
|
|
|
void read(athena::io::IStreamReader& __dna_reader);
|
|
|
|
void write(athena::io::IStreamWriter& __dna_writer) const;
|
|
|
|
void read(athena::io::YAMLDocReader& __dna_docin);
|
|
|
|
void write(athena::io::YAMLDocWriter& __dna_docout) const;
|
|
|
|
void FixupValues();
|
|
|
|
static const char* DNAType();
|
|
|
|
const char* DNATypeV() const { return DNAType(); }
|
|
|
|
|
|
|
|
size_t binarySize(size_t __isz) const;
|
2015-08-29 01:30:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _DNAMP1_CTWEAKPLAYER_HPP_
|