mercredi 5 mars 2014

[Coding] NFS Rivals x64 SDK topic




[YOUTUBE_ID]5fDHSuRODrI[/YOUTUBE_ID]


PHP Code:







#ifndef NFSMANAGER_H

#define NFSMANAGER_H


#include <windows.h>

#include "eastl.h"


#define OFFSET_DXRENDERER                        0x141D37498

#define OFFSET_GAMERENDERER                        0x141D043B8

#define OFFSET_CLIENTGAMECONTEXT                0x141D03578

#define OFFSET_MAIN                                0x141A4A868

#define OFFSET_DEBUGRENDERER                    0x140168B80

#define OFFSET_DEBUGRENDERER_DRAWTEXT            0x14016A270

#define OFFSET_DEBUGRENDERER_DRAWLINE            0x140169FA0

#define OFFSET_DEBUGRENDERER_DRAWLINERECT        0x14016A010

#define OFFSET_CLIENTSETTINGS                    0x141A4A8D0

#define OFFSET_ONLINESETTINGS                    0x141D8D8E0

#define OFFSET_UISETTINGS                        0x141A4A920

#define OFFSET_SERVERSETTINGS                    0x141A4A8C0

#define OFFSET_GAMESETTINGS                        0x141A4A8F8

#define OFFSET_SYNCEDGAMESETTINGS                0x141F6B5F0

#define OFFSET_GAMETIMESETTINGS                    0x141A4A8C8

#define OFFSET_NETWORKSETTINGS                    0x141D036E0

#define OFFSET_ANTSETTINGS                        0x141CE62F8

#define OFFSET_ENTITYSETTINGS                    0x141DF7C00

#define OFFSET_WORLDRENDERSETTINGS                0x141D04600

#define OFFSET_DXRENDERSETTINGS                    0x141A4A710

#define OFFSET_VISUALTERRAINSETTINGS            0x141D392E0

#define OFFSET_GAMERENDERSETTINGS                0x141A4A8E0


class Type

{

public:

    
virtual DWORD_PTR GetType( );

};


class 
AxisAlignedBox

{

public:

    
D3DXVECTOR4 min; // 0x0000

    
D3DXVECTOR4 max; // 0x0010

};


class 
Components

{

public:

    
__int64 unk1; //0x0000

    
__int64 unk2; //0x0008

    
char _0x0010[16];

    
Type** m_ppComponents; //0x0020

    
char _0x0028[76];

    
float m_timeElapsed; //0x0074


    
void Dump( )

    {

        for( 
int i = 0; i < 44; i++ )

        {

            if ( 
m_ppComponents[i] )

            {

                
printf( "Object %I64X",    m_ppComponents[i] );

                
printf( " Type: %I64X",    m_ppComponents[i]->GetType( ) );

                
printf( " (%s)\n", **( char*** )m_ppComponents[i]->GetType( ) );

            }

        }

    }

};


class 
RaceVehicleSteeringConfigData

{

public:

    
char _0x0000[24];

    
__int64 m_BrakeInputRemap; //0x0018

    
__int64 m_ThrottleMappingFirstGear; //0x0020

    
__int64 m_ThrottleMappingSecondGear; //0x0028

    
__int64 m_ThrottleMappingThirdAndAbove; //0x0030

    
__int64 m_SteeringVsAngularVelocity; //0x0038

    
__int64 m_SteeringVsSlipAngle; //0x0040

    
__int64 m_SteerRate; //0x0048

    
__int64 m_GentleInputSteerRate; //0x0050

    
__int64 m_CounterSteerRate; //0x0058

    
__int64 m_CenterSteerRate; //0x0060

    
float m_ReverseSteerRate; //0x0068

    
float m_ReverseCounterSteerRate; //0x006C

    
float m_ReverseCenterSteerRate; //0x0070

    
char _0x0074[4];

    
float m_SteeringRangeOffThrottle; //0x0078

    
char _0x007C[4];

    
float m_SteeringRangeOnThrottle; //0x0080

    
char _0x0084[4];

    
float m_ReverseSteeringRange; //0x0088

    
char _0x008C[4];

    
float m_MaxSteeringAngle; //0x0090

    
float m_MaxAngleSteeringAlignEffect; //0x0094

    
float m_MaxAngleCounterSteerAlignEffect; //0x0098

    
float m_DriftAngleForCounterSteerRate; //0x009C

    
float m_DriftCountersteerRate; //0x00A0

    
float m_AligningTorqueEffect; //0x00A4

};


class 
RaceVehicleSteeringWheelConfigData

{

public:

    
char _0x0000[24];

    
__int64 m_SteeringWheelRemap; //0x0018

    
__int64 m_SteerCentreVsSlipAngle; //0x0020

    
__int64 m_SteerCentreVsSpeed; //0x0028

    
__int64 m_SteerDampVsSpeed; //0x0030

    
__int64 m_SteerWheelMaxVsSlipAngle; //0x0038

    
__int64 m_SteerWheelMaxVsSpeed; //0x0040

    
__int64 m_SteerWheelMaxVsSpeedMulti; //0x0048

    
__int64 m_SteeringWheelMaxFFBVSpeed; //0x0050

    
__int64 m_SteeringWheelSurfaceMagnitudeVSpeed; //0x0058

    
__int64 m_SteeringWheelSurfacePeriodVSpeed; //0x0060

    
__int64 m_SteerFFBRemapping; //0x0068

    
__int64 m_SteerFFBVsSlipAngle; //0x0070

    
__int64 m_SteerFFBVsSpeed; //0x0078

    
float m_FullBrakeThreshold; //0x0080

    
float m_NoBrakeThreshold; //0x0084

    
float m_BrakeStabTime; //0x0088

};


class 
RaceVehicleEngineConfigData

{

public:

    
char _0x0000[24];

    
float m_FlyWheelMass; //0x0018

    
float m_Idle; //0x001C

    
float m_EngineAntibogMaxMult; //0x0020

    
float m_EngineAntibogRampTime; //0x0024

    
float m_EngineBrakingVsGear; //0x0028

    
char _0x002C[4];

    
float m_EngineFrictionTorque; //0x0030

    
char _0x0034[4];

    
float m_EngineResistance; //0x0038

    
float m_MaxRpm; //0x003C

    
float m_RedLine; //0x0040

    
char _0x0044[4];

    
float m_Torque; //0x0048

    
char _0x004C[4];

    
float m_SpeedLimiter; //0x0050

    
float m_SpeedLimiterNOS; //0x0054

    
float m_SpeedLimiterReverse; //0x0058

    
float m_EngineLoadLerp; //0x005C

    
float m_MinLoadAtTopSpeed; //0x0060

    
float m_ZeroLoadTorqueNoise; //0x0064

    
float m_FullLoadTorqueNoise; //0x0068

    
char _0x006C[4];

    
float m_TorqueNoise; //0x0070

    
char _0x0074[4];

    
float m_IgnitionSequenceLength; //0x0078

    
char _0x007C[64];

};


class 
RaceVehicleForcedInductionConfigData

{

public:


    
enum ForcedInductionType

    
{

       
ForcedInductionType_None = 0,

       
ForcedInductionType_TurboCharger = 1,

       
ForcedInductionType_RootsBlower = 2,

       
ForcedInductionType_CentrifugalBlower = 3,

       
ForcedInductionType_Twinscrew = 4

    
};


    
char _0x0000[24];

    
ForcedInductionType m_InductionType; //0x0018

    
float m_LagTime; //0x001C

    
float m_SpinDownTime; //0x0020

    
float m_BoostMinThrottle; //0x0024

    
float m_BoostAlwaysThrottle; //0x0028

    
float m_BoostStartRpm; //0x002C

    
float m_PeakPSI; //0x0030

    
float m_LowBoost; //0x0034

    
float m_HighBoost; //0x0038

    
BYTE m_HasBypassVale; //0x003C

    
BYTE m_HasBlowoffValve; //0x003D

    
char _0x003E[2];

};
//Size=0x0040


class RaceVehicleTransmissionConfigData //Look into this shit

{

public:

    
char _0x0000[24];

    
float m_TransmissionInertia; //0x0018

    
float m_ClutchSlip; //0x001C

    
float m_DifferentialFront; //0x0020

    
float m_DifferentialRear; //0x0024

    
float m_DifferentialCenter; //0x0028

    
float m_DirtTorqueSplit; //0x002C

    
float m_DownShiftClutch; //0x0030 Shows 8-Byte Float

    
float m_DownShiftSlopeScalar; //0x0034

    
float m_DownShiftThrottle; //0x0038

    
float m_DriveShaftTorqueEffect; //0x003C

    
float m_DriveShaftTorqueMax; //0x0040

    
float m_ShiftDownBrakeDynamicFactor; //0x0044

    
float m_FinalGear; //0x0048

    
float m_TopGear; //0x004C

    
float m_GearEfficiency; //0x0050

    
float m_GearRatio; //0x0054

    
float m_GearUpRPM; //0x0058

    
float m_GearDownRPM; //0x005C

    
float m_GearUpSpeed; //0x0060

    
float m_Gears; //0x0064 Could be ptr

    
float m_GearChangeTime; //0x0068

    
float m_CruisingGears; //0x006C

    
float m_GearChangeTimeCruising; //0x0070

    
float m_MinTireTractionToShiftUp; //0x0074

    
float m_MinTireTractionToShiftUpFirstGear; //0x0078

    
float m_ReverseTorqueMultiplier; //0x007C

    
float m_TorqueSplit; //0x0080

    
float m_UpShiftClutch; //0x0084

    
float m_UpShiftThrottle; //0x0088

};


class 
RaceVehicleAerodynamicsConfigData

{

public:

    
char _0x0000[24];

    
__int64 m_AeroCG; //0x0018

    
__int64 m_AeroCoefficient; //0x0020

    
float m_AeroCoefficient90DegLoss; //0x0028

    
float m_AeroCoefficientMaxGroundEffect; //0x002C

    
float m_AeroCoefficientMaxLift; //0x0030

    
float m_AeroCoefficientOffThrottle; //0x0034

    
float m_DragCoefficient; //0x0038

    
float m_NitrousDragCoefficient; //0x003C

    
float m_TopSpeed; //0x0040

    
float m_NitrousTopSpeed; //0x0044

    
float m_GroundEffectHeightRatio; //0x0048

    
float m_LiftHeightRatio; //0x004C

    
float m_FlyingCarAeroCoef_BigAir; //0x0050

    
float m_FlyingCarAeroCoef_SmallAir; //0x0054

    
float m_Downforce; //0x0058

    
float m_DownforceOffset; //0x005C

    
float m_DownforceOffsetUnderBraking; //0x0060

    
float m_DownforceOffsetInDrift; //0x0064

    
char _0x0068[4];

};


class 
RaceVehicleChassisConfigData

{

public:

    
char _0x0000[24];

    
float m_CollisionInvMassScale; //0x0018 Shows 8-byte alignment

    
char _0x001C[4];

    
D3DXVECTOR4 m_InertiaBoxCollision; //0x0020

    
D3DXVECTOR4 m_InertiaBoxTumbling; //0x0030

    
D3DXVECTOR4 m_InertiaBoxVehiclePhysics; //0x0040

    
D3DXVECTOR4 m_TensorScale; //0x0050

    
D3DXVECTOR4 m_TumbleLocalCOG; //0x0060

    
float m_FrontAxle; //0x0070

    
float m_FrontWeightBias; //0x0074  Shows 8-byte alignment

    
float m_HealthScalar; //0x0078

    
float m_Mass; //0x007C

    
float m_RollCenter; //0x0080

    
float m_TrackWidthFront; //0x0084

    
float m_TrackWidthRear; //0x0088

    
float m_WheelBase; //0x008C

    
float m_GravityScale; //0x0090

    
char _0x0094[4];

};


class 
RaceVehicleBrakesConfigData

{

public:

    
char _0x0000[24];

    
__int64 m_FrontBrakeTorqueVsSpeed; //0x0018

    
__int64 m_RearBrakeTorqueVsSpeed; //0x0020

    
__int64 m_HandbrakeTorqueVsSpeed; //0x0028

    
float m_FrontBrakeOffset; //0x0030

    
float m_RearBrakeOffset; //0x0034

    
float m_TimeForFullBrakeStrength; //0x0038

    
float m_MinHandbrakeTime; //0x003C

    
float m_FrontBrakeScalarWhenSteering; //0x0040

    
float m_RearBrakeScalarWhenSteering; //0x0044

    
float m_BrakeScalarDeadZone; //0x0048

    
float m_BackwardsExtraBrakeStrength; //0x004C

};


class 
RaceVehicleDriftConfigData

{

public:

    
char _0x0000[24];

    
float m_Minimum_speed_to_enter_drift; //0x0018

    
float m_Slip_angle_to_enter_drift; //0x001C

    
float m_Slip_angle_to_enter_drift_when_braking; //0x0020

    
float m_Slip_angle_to_enter_drift_after_brake_stab; //0x0024

    
float m_Brake_stab_return_speed; //0x0028

    
float m_Drift_angle_to_exit_drift; //0x002C

    
float m_Steering_amount_on_exit_drift; //0x0030

    
float m_Slip_angle_to_start_blending_down_drift_scale; //0x0034

    
float m_Slip_angle_for_zero_drift_scale; //0x0038

    
float m_Time_to_blend_damping; //0x003C

    
float m_Starting_drift_scale; //0x0040

    
float m_Drift_scale_from_handbrake; //0x0044

    
float m_Drift_scale_decay; //0x0048

    
float m_Drift_scale_from_steering; //0x004C

    
float m_Drift_scale_from_braking; //0x0050

    
float m_Drift_scale_from_counter_steering; //0x0054

    
float m_Drift_scale_from_gas_let_off; //0x0058

    
float m_Drift_scale_from_gas_stab; //0x005C

    
float m_Drift_angle_for_full_gas_influence; //0x0060

    
float m_DriftScaleFromHandbrakeAtLowSpeed; //0x0064

    
float m_DriftScaleFromHandbrakeAtHighSpeed; //0x0068

    
float m_Initial_yaw_torque; //0x006C

    
float m_Minimum_yaw_torque; //0x0070

    
float m_Mid_yaw_torque; //0x0074

    
float m_Maximum_yaw_torque; //0x0078

    
float m_Gas_let_off_yaw_torque; //0x007C

    
float m_Donut_yaw_torque; //0x0080

    
float m_Donut_speed_limit_low; //0x0084

    
float m_Donut_speed_limit_high; //0x0088

    
float m_Default_steering_remapping; //0x008C

    
float m_Counter_steering_remapping; //0x0090

    
float m_Side_force_magnitude; //0x0094

    
float m_Drift_scale_for_maximum_side_force; //0x0098

    
float m_Speed_for_no_sideforce; //0x009C

    
float m_Speed_for_maximum_side_force; //0x00A0

    
float m_Minimum_drift_angle_for_side_force; //0x00A4

    
float m_Drift_angle_for_side_force; //0x00A8

    
float m_Drift_angle_for_decay; //0x00AC

    
float m_Decay_rate; //0x00B0

    
float m_Drift_sideways_damping; //0x00B4

    
float m_Min_decay_side_force_magnitude; //0x00B8

    
float m_Side_force_multiplier; //0x00BC

    
float m_Drift_angular_damping; //0x00C0

    
float m_Maintain_entry_speed_amount; //0x00C4

    
float m_Max_speed_difference_for_maintain_speed; //0x00C8

    
float m_Reduce_forward_speed_amount; //0x00CC

    
float m_Max_countersteering; //0x00D0

    
float m_Default_steering; //0x00D4

    
float m_Max_countersteering_at_low_slip_angle; //0x00D8

    
float m_Max_countersteering_at_high_slip_angle; //0x00DC

    
float m_Low_slip_angle_for_counter_steering; //0x00E0

    
float m_High_slip_angle_for_counter_steering; //0x00E4

    
float m_Slip_angle_for_deep_drift; //0x00E8

    
float m_Max_counter_steering_power; //0x00EC

    
float m_ExtraFishTailTorque; //0x00F0

    
char _0x00F4[4];

    
float m_YawDampeningAtAngle; //0x00F8

    
char _0x00FC[4];

    
float m_YawDampeningAtSpeed; //0x0100

    
char _0x0104[4];

    
float m_TimeForMaxDonutGripEffect; //0x0108

    
float m_DonutLongitudinalGripMin; //0x010C

    
float m_DonutLongitudinalGripMax; //0x0110

    
float m_DonutLateralGripMin; //0x0114

    
float m_DonutLateralGripMax; //0x0118

};//Size=0x11C


class RaceVehicleABSConfigData

{

public:

    
char _0x0000[24];

    
float m_ABSSlipRatioSystemTargetSR; //0x0018

    
float m_ABSTorqueRatioLowerBound; //0x001C

    
float m_ABSTorqueRatioScalarVsSpeed; //0x0020

    
char _0x0024[4];

    
float m_ABSTorqueRatioUpperBound; //0x0028

    
BYTE m_ABSSlipRatioSystemEnable; //0x002C

    
char _0x002D[3];

};


class 
RaceVehicleTCSConfigData

{

public:

    
char _0x0000[24];

    
__int64 m_TractionControlScalarVsSlipAngle; //0x0018

    
__int64 m_TractionControlScalarVsSpeed; //0x0020

};


class 
RaceVehicleTireConfigData

{

public:

    
char _0x0000[24];

    
__int64 m_AnalyticalTireDataFront; //0x0018

    
__int64 m_AnalyticalTireDataRear; //0x0020

    
float m_TireInertiaFront; //0x0028

    
float m_TireInertiaRear; //0x002C

    
float m_DiameterFront; //0x0030

    
float m_DiameterRear; //0x0034

    
float m_RimDiameterFront; //0x0038

    
float m_RimDiameterRear; //0x003C

    
float m_SectionWidthFront; //0x0040

    
float m_SectionWidthRear; //0x0044

    
float m_StaticGripOffThrottle; //0x0048

    
float m_BurnoutTendency; //0x004C

    
float m_RollingResistanceScalarVSpeed; //0x0050

    
char _0x0054[4];

    
__int64 m_SkidMarkDataFront; //0x0058

    
__int64 m_SkidMarkDataRear; //0x0060

};


class 
RaceVehicleXCarConfigData

{

public:

      
char _0x0000[24];

    
float m_WheelCamberBottomFront; //0x0018

    
float m_WheelCamberBottomRear; //0x001C

    
float m_WheelCamberTopFront; //0x0020

    
float m_WheelCamberTopRear; //0x0024

    
float m_WheelLowerLimitFront; //0x0028

    
float m_WheelLowerLimitRear; //0x002C

    
float m_WheelUpperLimitFront; //0x0030

    
float m_WheelUpperLimitRear; //0x0034

    
float m_WheelXOffsetBottomFront; //0x0038

    
float m_WheelXOffsetBottomRear; //0x003C

    
float m_WheelXOffsetTopFront; //0x0040

    
float m_WheelXOffsetTopRear; //0x0044

    
float m_XCarBodyYOffsetVSpeed; //0x0048

    
char _0x004C[4];

    
float m_XCarMultiplier; //0x0050

    
float m_XCarYOffset; //0x0054

    
float m_BodyRollCenterHeight; //0x0058

    
float m_ScalarX; //0x005C

    
float m_ScalarY; //0x0060

    
float m_ScalarZ; //0x0064

    
float m_WheelSpringCoefficientFront; //0x0068

    
float m_WheelSpringCoefficientRear; //0x006C

    
float m_WheelSpringDampingRatioFront; //0x0070

    
float m_WheelSpringDampingRatioRear; //0x0074

    
float m_WheelSpringMassFront; //0x0078

    
float m_WheelSpringMassRear; //0x007C

    
float m_WheelSpringLowerLimitFront; //0x0080

    
float m_WheelSpringLowerLimitRear; //0x0084

    
float m_WheelSpringUpperLimitFront; //0x0088

    
float m_WheelSpringUpperLimitRear; //0x008C

    
float m_PitchForceMultiplier; //0x0090

    
float m_ForwardForceMultiplier; //0x0094

    
float m_RollForceMultiplier; //0x0098

    
float m_SideForceMultiplier; //0x009C

};


class 
EngineUpgrades

{

public:

    
__int64 m_ModifierData[12]; // fb::RaceVehiclePerformanceModifierData

};


class 
RaceVehicleConfigData

{

public:


    class 
VehicleInputData

    
{

    public:

        
float m_ThrottleDeadzone; //0x0000

        
float m_BrakeDeadzone; //0x0004

        
float m_YawDeadzone; //0x0008

        
float m_PitchDeadzone; //0x000C

        
float m_RollDeadzone; //0x0010

        
float m_ThrottleInertiaOutDuration; //0x0014

        
float m_ThrottleInertiaInDuration; //0x0018

        
float m_ThrottleInertiaMinRatio; //0x001C

        
float m_BrakeInertiaOutDuration; //0x0020

        
float m_BrakeInertiaInDuration; //0x0024

        
float m_BrakeInertiaMinRatio; //0x0028

        
float m_YawInertiaOutDuration; //0x002C

        
float m_YawInertiaInDuration; //0x0030

        
float m_YawInertiaMinRatio; //0x0034

        
float m_PitchInertiaOutDuration; //0x0038

        
float m_PitchInertiaInDuration; //0x003C

        
float m_PitchInertiaMinRatio; //0x0040

        
float m_RollInertiaOutDuration; //0x0044

        
float m_RollInertiaInDuration; //0x0048

        
float m_RollInertiaMinRatio; //0x004C

    
}; //Size=0x0050


    
char _0x0000[24];

    
__int32 m_VehicleModeAtReset; //0x0018

    
float m_VehicleModeChangeEnteringTime; //0x001C

    
float m_VehicleModeChangeStartingTime; //0x0020

    
float m_VehicleScoringTopSpeedMPH; //0x0024

    
float m_VehicleModeChangeStoppingTime; //0x0028

    
float m_VehicleModeChangeLeavingTime; //0x002C

    
__int64 m_PerformanceModifierData; //0x0030

    
EngineUpgrades* m_EngineUpgrades; //0x0038

    
__int64 m_TransmissionUpgrades; //0x0040

    
__int64 m_SteeringUpgrades; //0x0048

    
__int64 m_ChassisUpgrades; //0x0050

    
__int64 m_ImpactProtectionUpgrades; //0x0058

    
VehicleInputData m_Input; //0x0060

    
RaceVehicleSteeringConfigData* m_Steering; //0x00B0 Alignment Problems

    
RaceVehicleSteeringWheelConfigData* m_SteeringWheel; //0x00B8

    
RaceVehicleEngineConfigData* m_Engine; //0x00C0

    
RaceVehicleForcedInductionConfigData* m_ForcedInduction; //0x00C8

    
RaceVehicleTransmissionConfigData* m_Transmission; //0x00D0

    
RaceVehicleAerodynamicsConfigData* m_Aerodynamics; //0x00D8

    
RaceVehicleChassisConfigData* m_Chassis; //0x00E0

    
__int64 m_Suspension; //0x00E8 RaceVehicleSuspensionConfigData*

    
RaceVehicleBrakesConfigData* m_Breaks; //0x00F0

    
RaceVehicleDriftConfigData* m_Drift; //0x00F8 Alignment Problems

    
RaceVehicleABSConfigData* m_ABS; //0x0100 Alignment Problems

    
__int64 m_ESC; //0x0108 Stability Control

    
RaceVehicleTCSConfigData* m_TCS; //0x0110

    
RaceVehicleTireConfigData* m_Tire; //0x0118

    
__int64 m_Tumble; //0x0120 RaceVehicleTumbleConfigData*

    
RaceVehicleXCarConfigData* m_XCar; //0x0128

    
float m_StaticFrictionBreakCollisionMod; //0x0130

    
float m_StaticFrictionBreakVelocityMod; //0x0134

};


class 
NOSComponentData

{

public:


    class 
RaceVehicleNOSConfigData

    
{

    public:

        
char _0x0000[24];

        
float m_Capacity; //0x0018

        
float m_RechargeRate; //0x001C

        
float m_FlowRate; //0x0020


    
};


    class 
RaceVehicleNOSBuildupConfigData

    
{

    public:

        
char _0x0000[24];

        
float m_DriftBoost; //0x0018

        
float m_DraftBoost; //0x001C

        
float m_NearMissBoost; //0x0020

        
float m_NearMissBoostOncoming; //0x0024

        
float m_WrongLaneBoost; //0x0028

        
float m_OnShortCutBoost; //0x002C

        
float m_AirborneBoost; //0x0030

        
char _0x0034[1036];


    };


    
char _0x0000[112];

    
D3DXVECTOR4 m_NOSPosition; //0x0070

    
RaceVehicleNOSConfigData* m_NOS; //0x0080

    
RaceVehicleNOSBuildupConfigData* m_NOSBuildup; //0x0088

    
char _0x0090[40];

};


class 
ClientNOSComponent

{

public:

    
char _0x0000[16];

    
NOSComponentData* m_NOSData; //0x0010

    
char _0x0018[720];

    
float m_NOSUseTime; //0x02E8 

    
float m_TimeSinceUsed; //0x02EC 

    
float m_NOSLeft; //0x02F0 Make 99.0f

    
float m_NOSFlow; //0x02F4 Make 6.0f

};


class 
RaceVehicleData

{

public:

    
char _0x0000[248];

    
__int32 m_MaxPlayersInVehicle; //0x00F8

    
float m_UpsideDownAngle; //0x00FC

    
float m_FlipCarDelay; //0x0100

    
float m_EffectMinimimumImpactSpeed; //0x0104

    
char _0x0108[40];

    
char* m_RaceVehicleName; //0x0130

    
char* m_RaceVehicleNameId; //0x0138

    
__int32 m_RichPresenceContext; //0x0140

    
float m_FadeInTime; //0x0144

    
float m_FadeOutTime; //0x0148

    
BYTE m_ForegroundRenderCockpitMesh; //0x014C

    
char _0x014D[3];

};


class 
GearBoxConfigData

{

public:

   
char aDataContainer[16]; //+0x00 Inherited

   
__int64 m_ForwardGearRatios; //+0x10

   
__int64 m_ForwardGearSpeeds; //+0x18

   
__int64 m_ReverseGearRatios; //+0x20

   
__int64 m_ReverseGearSpeeds; //+0x28

   
__int32 m_GearboxType; //+0x30

   
__int32 m_GearboxMode; //+0x34

   
float m_GearChangeTime; //+0x38

   
float m_GearDownSpeedFactor; //+0x3C

   
float m_OppositeDirGearChangeMaxSpeed; //+0x40

   
float m_OppositeDirGearChangeTime; //+0x44

   
float m_ClutchSpeedFactor; //+0x48

   
float m_TransmissionEfficiency; //+0x4C

   
BYTE m_UseAutoClutch; //+0x50

   
BYTE m_UseClassicGearBoxAutoClutch; //+0x51

   
BYTE m_UseNeutralGear; //+0x52

};


class 
RaceVehicleComponentData

{

public:

    
char _0x0000[176];

    
RaceVehicleConfigData* m_VehicleConfig; //0x00B0

    
GearBoxConfigData* m_GearBox;

};
//Size=0x04F8


class RaceVehicleDamageMultipliersConfigData

{

public:

    
char _0x0000[24];

    
float m_SpeedScaleForFront; //0x0018

    
float m_FrontDamageScale; //0x001C

    
float m_FrontCornerDamageScale; //0x0020

    
float m_SideDamage; //0x0024

    
float m_RearCornerDamageScale; //0x0028

    
float m_RearDamageScale; //0x002C

    
float m_TopDamageScale; //0x0030

    
float m_BottomDamageScale; //0x0034

};



class 
ClientRaceVehicleHealthComponent

{

public:

    
char _0x0000[16];

    
__int64 m_HealthData; //0x0160 fb::RaceVehicleHealthComponentData

    
char _0x0018[8];

    
float m_CurrentHealth; //0x0020

    
float m_MaxHealth; //0x0024

};


class 
ClientBoneComponent

{

public:

    
char _0x0000[16];   

};


class 
ClientAnimatedDriverComponent

{

public:


    class 
AnimatedDriverComponentData

    
{

    public:

        
char _0x0000[112];

        
D3DXMATRIX m_SteeringWheelInverseTiltTransform; //0x0070

        
D3DXVECTOR4 m_ImpulseNormal; //0x00B0

        
D3DXVECTOR4 m_ImpulsePosition; //0x00C0

        
char _0x00D0[24];

        
float m_SpineScale; //0x00E8

        
float m_SeatHeight; //0x00EC

        
float m_SeatOffsetFromSteeringWheel; //0x00F0

        
float m_SeatPitchOffset; //0x00F4

        
float m_SteeringWheelScale; //0x00F8

        
char _0x00FC[36];

    }; 
//Size=0x0120


    
char _0x0000[16];

    
AnimatedDriverComponentData* m_Data; //0x0010

    
char _0x0018[8];

    
__int64 m_Entry; //0x0020

    
char _0x0028[384];

    
ClientBoneComponent m_Bones[3]; //0x01A8

};


class 
ClientLockOnComponent

{

public:

    
char _0x0000[16];

    
__int64 m_Data; //0x0010 fb::LockOnComponentData

    
char _0x0018[16];

    
__int64 m_Entry; //0x0028

    
char _0x0030[360];

    
__int64 m_LockOnProxy; //0x0198

    
char _0x01A0[8];

    
__int64 m_LockOnProxy2; //0x01A8

    
char _0x01B0[1400];

    
__int64 m_Owner; //0x0728 fb::ClientRaceVehicleEntity

};


class 
RaceVehicleDamageGraphConfigData

{

public:

    
char _0x0000[40];

    
float m_WorldDamageStrength; //0x0028

    
float m_VelocityForFullDamage; //0x002C

    
float m_MinTimeBetweenHitsWithSameEntity; //0x0030

};


class 
RaceVehicleDamageComponentData

{

public:

    
char _0x0000[112];

    
RaceVehicleDamageGraphConfigData* m_damageGraphs; //0x0070

    
__int64 m_StrengthToughnessMaterialPair; //0x0078 MaterialDecl

    
RaceVehicleDamageMultipliersConfigData* m_damageMultipliers; //0x0080

    
char _0x0088[8];

};



class 
ClientRaceVehicleDamageComponent

{

public:

    
char _0x0000[16];

    
__int64 m_DamageComponentData; //0x0010

    
char _0x0018[32];

    
__int64 m_DamageGraphConfigData; //0x0038

};


class 
ClientRaceVehicleCustomizationData

{

public:


    class 
CarCustomizationProperties

    
{

    public:

        
char _0x0000[232];

        
char* m_LicensePlateText; //0x00E8

        
BYTE m_PaintEnable; //0x00F0

        
BYTE m_PaintLock; //0x00F1

        
BYTE m_LiveryEnable; //0x00F2

        
BYTE m_LiveryUniqueUV; //0x00F3

        
BYTE m_LiveryTintEnable; //0x00F4

        
BYTE m_RimEnable; //0x00F5

        
BYTE m_LicensePlateEnable; //0x00F6

    
};


    
char _0x0000[16];

    
__int64 m_Data; //0x0010

    
char _0x0018[56];

    
__int64 m_Customization; //0x0050

    
char _0x0058[8];

    
CarCustomizationProperties* m_CustomizationProperties; //0x0060

};


class 
ClientVehicleWeaponEntity

{

public:


    class 
VehicleWeaponEntityData

    
{

    public:

        
char _0x0000[128];

        
char* m_ShortStringId; //0x0080

        
__int64 m_VehicleWeaponType; //0x0088

        
__int32 m_Classification; //0x0090

        
float m_ExternalPreventFiringCooldownTime; //0x0094

        
float m_UpgradeLevels; //0x0098

        
char _0x009C[4];

        
float m_CollisionNotificationThreshold; //0x00A0

        
BYTE m_HoldAndRelease; //0x00A4

        
BYTE m_ExternalPreventFiring; //0x00A5

        
char _0x00A6[6];

    };


    
char _0x0000[48];

    
VehicleWeaponEntityData* m_Data; //0x0030

    
char _0x0038[800];

    
__int64 m_WeaponTypeAsset; //0x0358

    
char _0x0360[144];

    
char* m_NameId; //0x03F0

};


class 
CopComponentData

{

public:

    
char _0x0000[112];

    
__int32 m_VehicleBaseHeat; //0x0070

    
char _0x0074[12];

};


class 
ClientVehicleSystemsComponent //+0xx2618

{

public:

    
char _0x0000[16];

    
__int64 m_Data; //0x0010 fb::VehicleWeaponSystemComponentData

    
char _0x0018[8];

    
__int64 m_Entry; //0x0020

    
char _0x0028[696];

    
ClientVehicleWeaponEntity* m_Weapon; //0x02E0 fb::ClientVehicleWeaponEntity

    
char _0x02E8[120];

    
CopComponentData* m_CopData; //0x0360 fb::CopComponentData

};


class 
ClientRaceVehicleComponent

{

public:   

    
char _0x0000[16];

    
RaceVehicleComponentData* m_ComponentData; //0x0010

    
char _0x0018[8];

    
__int64 m_EntryComponent; //0x0020 ClientPlayerEntryComponent*

    
char _0x0028[16];

    
__int64 m_DynamicPhysics; //0x0038

    
char _0x0040[320];

    
__int64 m_CarCustomization; //0x0180

    
char _0x0188[168];

    
RaceVehicleDamageMultipliersConfigData* m_DamageMultipliersConfigData; //0x0230

    
char _0x0238[1008];

    
__int64 m_Owner; //0x0628

    
char _0x0630[3496];

};


class 
ClientRaceVehicleEntity

{

public:

    
virtual __int64 GetType( );

    
virtual void Function1( ); //

    
virtual void Function2( ); //

    
virtual void Function3( ); //

    
virtual void Function4( ); //

    
virtual void Function5( ); //

    
virtual void Function6( ); //

    
virtual void Function7( ); //

    
virtual void Function8( ); //

    
virtual void Function9( ); //

    
virtual void Function10( ); //

    
virtual void Function11( ); //

    
virtual void Function12( ); //

    
virtual void Function13( ); //

    
virtual void Function14( ); //

    
virtual void Function15( ); //

    
virtual void Function16( ); //

    
virtual void Function17( ); //

    
virtual void Function18( ); //

    
virtual void Function19( ); //

    
virtual void Function20( ); //

    
virtual void Function21( ); //

    
virtual void Function22( ); //

    
virtual void GetTransform( D3DXMATRIX* mTransform ); // ClientControllableEntity


    
char _0x0008[32]; //0x0008

    
Components* m_Components; //0x0028

    
RaceVehicleData* m_RaceVehicleData; //0x0030

    
char _0x0038[296];

    
ClientRaceVehicleHealthComponent* m_Health; //0x0160

    
__int64 m_Physics; //0x0168

    
char _0x0170[632];

    
__int64 m_DynamicPhysicsEntity; //0x03E8

    
char _0x03F0[16];

    
D3DXMATRIX m_Transform; //0x0400

    
char _0x0440[128];

    
D3DXVECTOR4 m_Velocity; //0x04C0

    
char _0x04D0[328];

    
ClientRaceVehicleComponent* m_RaceVehicleComponent; //0x0618

    
ClientNOSComponent* m_NOS; //0x0620

    
__int64 m_ClientDeformationGridComponent; //0x0628

    
__int64 m_ClientVehicleCamouflageComponent; //0x0630

    
__int64 m_ClientCinebotCameraComponent; //0x0638

    
char _0x0640[6056];

    
__int64 m_ClientBoneComponent1; //0x1DE8

    
char _0x1DF0[8];

    
__int64 m_ClientBoneComponent2; //0x1DF8

    
char _0x1E00[8];

    
__int64 m_ClientBoneComponent3; //0x1E08

    
char _0x1E10[8];

    
__int64 m_ClientAnimatedDriverComponent; //0x1E18

};



class 
ClientPlayer

{

public:

    
virtual __int64 Function0( );


    
char _0x0000[16];

    
char* m_Name; //0x0018

    
char _0x0020[2536];

    
ClientRaceVehicleEntity* m_AttachedControllable;    //0x0A08

    
char _0x0A10[8];

    
ClientRaceVehicleEntity* m_ControlledControllable;    //0x0A18


    
ClientRaceVehicleEntity* GetVehicle( )

    {

        return 
m_ControlledControllable;

    }

};


class 
ClientPlayerManager

{

public:

    
virtual void Function0( );

    
virtual eastl::vector<ClientPlayer*>* GetPlayers( );

    
virtual eastl::vector<ClientPlayer*>* GetSpectators( );


    
BYTE pad00[0x108]; // 0x008

    
ClientPlayer* m_pLocalPlayer; // 0x110

    
ClientPlayer** m_ppPlayers; // 0x118


    
ClientPlayer* GetPlayerById( unsigned int id )

    {

        if ( 
id < 70 )

            return 
this->m_ppPlayers[id];


        return 
NULL;

    }

};



class 
ClientGameContext

{

public:

    
BYTE pad00[0x20];                        // 0x00

    
DWORD_PTR m_GameTime;                    // 0x20

    
__int64 m_PhysicsManager;                // 0x28

    
BYTE pad30[0x30];                        // 0x30

    
ClientPlayerManager* m_PlayerManager;    // 0x60


    // +0x70 GameView


    
static ClientGameContext* GetInstance( )

    {

        return *( 
ClientGameContext** )( OFFSET_CLIENTGAMECONTEXT );

    }

};


class 
Client

{

public:

    
char _0x0000[8];

    
__int64 m_GameSettings; //0x0008 

    
char _0x0010[24];

    
ClientGameContext* m_GameClientContext; //0x0028 

    
__int64 m_ClientSettings; //0x0030 

    
char _0x0038[8];

    
ClientPlayerManager* m_ClientPlayerManager; //0x0040 

    
char _0x0048[8];

    
__int64 m_GameView; //0x0050 

    
__int64 m_GameTime; //0x0058 

    
char _0x0060[8];

    
__int64 m_BorderInputNode; //0x0068 

};


class 
Main

{

public:

    
char _0x0000[88];

    
Client* m_Client; //0x0058 


    
static Main* GetInstance( )

    {

        return *( 
Main** )( OFFSET_MAIN );

    }

};


class 
GameRenderSettings

{

public:

    
char _0x0000[16];

    
__int32 m_InactiveSkipFrameCount; //0x0010

    
__int32 m_DrawFpsMethod; //0x0014

    
float m_ResolutionScale; //0x0018

    
__int32 m_XenonRingBufferSize; //0x001C

    
__int32 m_XenonLinearFrameBufferSize; //0x0020

    
__int32 m_XenonPresentImmediateThreshold; //0x0024

    
__int32 m_XenonGammaRampType; //0x0028

    
float m_Ps3VideoGamma; //0x002C

    
float m_Ps3FrameMainBufferSize; //0x0030

    
float m_Ps3FrameLocalBufferSize; //0x0034

    
float m_Ps3VSyncMethod; //0x0038

    
float m_CameraCutMaxFrameTranslation; //0x003C

    
char _0x0040[76];

    
BYTE m_Enable; //0x008C

    
BYTE m_NullRendererEnable; //0x008D

    
BYTE m_JobEnable; //0x008E

    
BYTE m_BuildJobSyncEnable; //0x008F

    
BYTE m_EarlyGpuSyncEnable; //0x0090

    
BYTE m_DrawInfo; //0x0091

    
BYTE m_DrawFps; //0x0092

    
BYTE m_DrawScreenInfo; //0x0093

    
char _0x0094[16];

    
BYTE m_EmittersEnable; //0x00A4

    
BYTE m_EntityRenderEnable; //0x00A5

    
BYTE m_DebugRendererEnable; //0x00A6

    
BYTE m_DebugRenderServiceEnable; //0x00A7

    
BYTE m_InitialClearEnable; //0x00A8

    
BYTE m_GpuProfilerEnable; //0x00A9

    
BYTE m_ForceOrthoViewEnable; //0x00AA

    
BYTE m_ForceSquareOrthoView; //0x00AB

    
char _0x00AC[28];

    
BYTE m_BlurEnable; //0x00C8

};


class 
GameRenderer

{

public:


    class 
RenderView

    
{

    public:

        
D3DXMATRIX m_Transform; //0x0000

        
char _0x0040[36];

        
float m_FovY; //0x0064

        
float m_DefaultFovY; //0x0068

        
float m_NearPlane; //0x006C

        
float m_FarPlane; //0x0070

        
float m_Aspect; //0x0074

        
float m_OrthoWidth; //0x0078

        
float m_OrthoHeight; //0x007C

    
}; //Size=0x0080


    
char _0x0000[104];

    
RenderView* m_RenderView; //0x0068


    // 0x50 has GameRenderSettings


    
static GameRenderer* GetInstance( )

    {

        return *( 
GameRenderer** )( OFFSET_GAMERENDERER );

    }

};


class 
DxRenderer

{

public:


    class 
ScreenInfo

    
{

    public:

        
char _0x0000[32];

        
__int32 m_Width;                    //0x0020

        
__int32 m_Height;                    //0x0024

        
char _0x0028[136];

        
IDXGISwapChain* m_pSwapChain;        //0x00B0

    
};


    
BYTE pad00[0x38];                        // 0x00

    
ScreenInfo* m_pScreen;                    // 0x38

    
BYTE pad78[0xB0];                        // 0x40

    
ID3D11Device* m_pDevice;                // 0xF0

    
ID3D11DeviceContext* m_pContext;        // 0xF8

public:

    static 
DxRenderer* GetInstance( )

    {

        return *( 
DxRenderer** )( OFFSET_DXRENDERER );

    }

};


#endif 














Aucun commentaire:

Enregistrer un commentaire