Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Crossout Info 8/29/2017
- enum eFlags
- {
- SHOOTING = 2
- };
- enum eState
- {
- IDLE = 5
- };
- #define MEMBER( x ) public: x; private:
- class CBaseEntity;
- class CEntityList
- {
- public:
- bool InUpdate ()
- {
- return *( bool* )( ( DWORD )this + 0x50 );
- }
- int GetEntityCount ()
- {
- return *( DWORD* )( ( DWORD )this + 0x1000C );
- }
- /*
- * 55 8B EC 56 FF 75 08 8B F1 FF 86
- */
- const char* FindEntityByName ( const char* pszName );
- CBaseEntity* GetEntityFromIdx ( unsigned int idx )
- {
- ++*( DWORD* )( ( DWORD )this + 0x3404C );
- auto v4 = ( reinterpret_cast< DWORD >( this + 12 * ( ( idx & 0xFFF ) + 1 ) ) );
- auto result = idx == *reinterpret_cast< DWORD* >( v4 + 8 );
- auto v5 = *reinterpret_cast< DWORD* >( v4 ) & ( ( ( result ) | -result ) >> 31 );
- return ( CBaseEntity* )v5 != NULL ? ( CBaseEntity* )v5 : NULL;
- }
- CBaseEntity* GetNetworkedEntityFromIdx ( unsigned int idx )
- {
- auto v4 = ( reinterpret_cast< DWORD >( this + 12 * ( ( idx & 0xFFF ) + 0x2AAD ) ) );
- auto result = idx == *reinterpret_cast< DWORD* >( v4 + 8 );
- auto v5 = *reinterpret_cast< DWORD* >( v4 ) & ( ( ( result ) | -result ) >> 31 );
- return ( CBaseEntity* )v5 != nullptr ? ( CBaseEntity* )v5 : nullptr;
- }
- };
- //////////////////////////////////////////
- class CModelInfo;
- class CBaseEntity_VTABLE;
- class CTransform;
- class CModel;
- class CPlayerCoordinates;
- class CGameLogic;
- class CD3DDevice;
- class CD3DDevice_VTABLE;
- class CBone;
- class CCarInfo;
- class CBaseEntityTypeInfo;
- class CVelocity;
- class CGameLogic_VTABLE;
- class CBaseCamera;
- class CEntityDef;
- class CEntityDefInfo;
- class CCarPhysics;
- class CEntityChildren;
- class CTransform
- {
- public:
- D3DXMATRIX m_Matrix; //0x0000
- D3DXMATRIX m_Frame2; //0x0040
- char pad_0x0080[ 0x20 ]; //0x0080
- CVector m_vec; //0x00A0
- char pad_0x00AC[ 0x4 ]; //0x00AC
- CVector m_vec2; //0x00B0
- char pad_0x00BC[ 0xB48 ]; //0x00BC
- }; //Size=0x0C04
- class CBaseEntityTypeInfo
- {
- public:
- char pad_0x0000[ 0x18 ]; //0x0000
- __int32 m_flag; //0x0018
- char pad_0x001C[ 0xBE8 ]; //0x001C
- }; //Size=0x0C04
- class CEntityInfo
- {
- public:
- CVector m_vecUnk; //0x0000
- char pad_0x000C[ 0x10 ]; //0x000C
- __int32 m_playerIdx; //0x001C
- char pad_0x0020[ 0x30 ]; //0x0020
- CVector m_vecPosition; //0x0050
- char pad_0x005C[ 0x18 ]; //0x005C
- float m_fUnk; //0x0074
- char pad_0x0078[ 0x38C ]; //0x0078
- }; //Size=0x0404
- class CBaseEntity
- {
- public:
- class CBaseEntity_VTABLE* vfptr; //0x0000
- class CBaseEntityTypeInfo* m_pEntityTypeInfo; //0x0004
- char pad_0008[ 4 ]; //0x0008
- int32_t m_Flags; //0x000C
- char pad_0010[ 32 ]; //0x0010
- int32_t m_ID; //0x0030
- int32_t m_NetworkID; //0x0034
- int32_t m_unk_; //0x0038
- int32_t m_parent; //0x003C
- char pad_0040[ 16 ]; //0x0040
- int32_t m_unk_2; //0x0050
- int32_t m_MovementFlags; //0x0054
- class CEntityDef* m_pEntityDef; //0x0058
- char pad_005C[ 4 ]; //0x005C
- char m_szName[ 16 ]; //0x0060
- char pad_0070[ 64 ]; //0x0070
- class CModel* m_pModel; //0x00B0
- char pad_00B4[ 4 ]; //0x00B4
- float m_flHealth; //0x00B8
- float m_flMaxHealth; //0x00BC
- class CCarInfo* m_pCarInfo; //0x00C0
- char pad_00C4[ 36 ]; //0x00C4
- uint32_t m_dwRelationshipGroup; //0x00E8
- char pad_00EC[ 36 ]; //0x00EC
- CVector m_vecMins; //0x0110
- char pad_011C[ 4 ]; //0x011C
- CVector m_vecMaxes; //0x0120
- char pad_012C[ 4 ]; //0x012C
- class CTransform* m_pTransform; //0x0130
- char pad_0134[ 68 ]; //0x0134
- int32_t m_NumBones; //0x0178
- char pad_017C[ 148 ]; //0x017C
- float m_flMaxViewDist; //0x0210
- char pad_0214[ 172 ]; //0x0214
- class CEntityDef* m_pEntityDef2; //0x02C0
- char pad_02C4[ 4 ]; //0x02C4
- int32_t m_PlayerIdx; //0x02C8
- char pad_02CC[ 568 ]; //0x02CC
- float m_flWeaponDmgScale; //0x0504
- float m_flHealthScale; //0x0508
- float m_flInitialHealth; //0x050C
- char pad_0510[ 628 ]; //0x0510
- class CCarPhysics* m_pCarPhysics; //0x0784
- char pad_0788[ 20 ]; //0x0788
- uint32_t m_NumChildren; //0x079C
- class CEntityChildren* m_children; //0x07A0
- char pad_07A4[ 76 ]; //0x07A4
- CVector m_vecViewDirection; //0x07F0
- char pad_07FC[ 4 ]; //0x07FC
- float m_flAccelerating; //0x0800
- int32_t m_nTargetEntity; //0x0804 -> Crosshair target
- char pad_0808[ 4 ]; //0x0808
- int32_t m_FlagsEx; //0x080C
- CVector m_vecCrossOnTarget; //0x0810
- char pad_081C[ 28 ]; //0x081C
- float m_flPitch; //0x0838
- char pad_083C[ 188 ]; //0x083C
- uint32_t m_nWeaponType; //0x08F8
- char pad_08FC[ 5904 ]; //0x08FC
- public:
- inline bool IsDead () const
- {
- return ( m_Flags & 1 );
- }
- CVector GetCenterPos ( void );
- const char* GetName ( );
- void Suicide ( void );
- void Revive ( void );
- void MovePos ( float vecNewPos );
- CBone* GetBone ( unsigned int boneIdx );
- signed int GetBoneIdxFromName ( const char* szBoneName );
- CVector GetLinearVelocity ( void );
- void SetLinearVelocity ( CVector vecVelocity );
- void SetTransparency ( float flTransparency );
- CBaseEntity* GetParent ( void );
- CEntityInfo* Info ( void );
- bool IsHostile ( CBaseEntity* pPlayer );
- bool IsFriendly ( CBaseEntity* pPlayer );
- bool IsVisibleForPlayers ( void );
- bool IsCar ( void );
- bool IsCarPart ( void );
- bool IsEffectEntity ( void );
- bool IsBaseEntity ( void );
- bool IsWeapon ( void );
- bool IsProjectile ( void );
- bool IsLandMine ( void );
- bool IsTurret ( void ) ;
- bool IsHomingMissle ( void );
- bool IsServerObject ( void );
- bool IsRelatedToMe ( CBaseEntity* pEntity );
- CBaseEntity* GetChild ( unsigned int idx );
- int GetChildId ( unsigned int idx );
- bool CanHaveChildren ( void );
- int GetNumWeapons ( void );
- bool EntityDefContains ( const char* szText, bool bCaseSensitive = true );
- void* GetEntityInfo ( void* a2, const char* pszInfoName );
- const char* GetClassName ( void );
- CVector GetDirection ( void );
- private:
- bool IsType ( char* szType );
- bool IsTypeEx ( char* szType );
- }; //Size=0x1C04
- class CModelInfo
- {
- public:
- char pad_0x0000[ 0x16C ]; //0x0000
- char m_szDefName[ 16 ]; //0x10E7888
- char pad_0x017C[ 0x688 ]; //0x017C
- }; //Size=0x0804
- class CBaseEntity_VTABLE
- {
- public:
- char pad_0x0000[ 0x4 ]; //0x0000
- char pad_0x0008[ 0x28A ]; //0x0008
- }; //Size=0x0292
- class CModel
- {
- public:
- char pad_0x0000[ 0x18 ]; //0x0000
- __int32 m_SkinIdx; //0x0018
- char pad_0x001C[ 0x128 ]; //0x001C
- __int32 m_NumSkins; //0x0144
- char pad_0x0148[ 0x2BC ]; //0x0148
- }; //Size=0x0404
- class CPlayerCoordinates
- {
- public:
- char pad_0x0000[ 0x10 ]; //0x0000
- CVector m_vecPosition; //0x0010
- char pad_0x001C[ 0x3E8 ]; //0x001C
- }; //Size=0x0404
- class CGameLogic
- {
- public:
- CGameLogic_VTABLE* vfptr; //0x0000
- char pad_0x0004[ 0x14 ]; //0x0004
- __int32 localClientNum; //0x0018
- char pad_0x001C[ 0x464 ]; //0x001C
- }; //Size=0x0480
- class CD3DDevice
- {
- public:
- CD3DDevice_VTABLE* vfptr; //0x0000
- char pad_0x0004[ 0x54 ]; //0x0004
- __int32 m_ResolutionX; //0x0058
- __int32 m_ResolutionY; //0x005C
- char pad_0x0060[ 0x3E0 ]; //0x0060
- }; //Size=0x0440
- class CD3DDevice_VTABLE
- {
- public:
- char pad_0x0000[ 0x4 ]; //0x0000
- }; //Size=0x0004
- class CBone
- {
- public:
- char pad_0x0000[ 0x10 ]; //0x0000
- CVector m_vecMax; //0x0010
- char pad_0x001C[ 0x4 ]; //0x001C
- CVector m_vecMin; //0x0020
- char pad_0x002C[ 0x4 ]; //0x002C
- CVector m_vecPosition; //0x0030
- char pad_0x003C[ 0x7C8 ]; //0x003C
- }; //Size=0x0804
- class CCarInfo
- {
- public:
- char pad_0x0000[ 0x14 ]; //0x0000
- CVelocity* m_pVelocityInfo; //0x0014
- char pad_0x0018[ 0x18 ]; //0x0018
- D3DXMATRIX m_trans; //0x0030
- char pad_0x0070[ 0x40 ]; //0x0070
- D3DXMATRIX N00001468; //0x00B0
- D3DXMATRIX m_Frame; //0x00F0
- D3DXMATRIX N00001488; //0x0130
- char pad_0x0170[ 0x120 ]; //0x0170
- D3DXMATRIX N000014E0; //0x0290
- char pad_0x02D0[ 0xD34 ]; //0x02D0
- }; //Size=0x1004
- class CVelocity
- {
- public:
- char pad_0x0000[ 0x10 ]; //0x0000
- D3DXMATRIX m1; //0x0010
- D3DXMATRIX m2; //0x0050
- char pad_0x0090[ 0xD0 ]; //0x0090
- CVector m_vecSpeed; //0x0160
- char pad_0x016C[ 0x4 ]; //0x016C
- CVector m_vecSpeed2; //0x0170
- char pad_0x017C[ 0x288 ]; //0x017C
- }; //Size=0x0404
- class CGameLogic_VTABLE
- {
- public:
- char pad_0x0000[ 0x404 ]; //0x0000
- }; //Size=0x0404
- class CBaseCamera
- {
- public:
- char pad_0x0000[ 0x10 ]; //0x0000
- float m_flFovX; //0x0010
- float m_flFovY; //0x0014
- float m_flFovZ; //0x0018
- char pad_0x001C[ 0x14 ]; //0x001C
- CVector m_vecCameraPosition; //0x0030
- char pad_0x003C[ 0x4 ]; //0x003C
- CVector m_vecCameraAimPosition; //0x0040
- char pad_0x004C[ 0x4 ]; //0x004C
- CVector m_vecDirection; //0x0050
- char pad_0x005C[ 0x4 ]; //0x005C
- float m_flResolutionX; //0x0060
- float m_flResolutionY; //0x0064
- char pad_0x0068[ 0x18 ]; //0x0068
- D3DXMATRIX m_ViewMatrix; //0x0080
- D3DXMATRIX m2; //0x00C0
- D3DXMATRIX m_Projection; //0x0100
- D3DXMATRIX m4; //0x0140
- CVector m_vecUnk; //0x0180
- char pad_0x018C[ 0x518 ]; //0x018C
- float m_flYaw; //0x06A4
- float m_flPitch; //0x06A8
- char pad_0x06AC[ 0x558 ]; //0x06AC
- public:
- //CVector2D GetCameraProjScales ( void );
- bool ProjectToScreen ( CVector& vecWorld, CVector* vecScreen );
- CVector GetCameraPos ( void );
- CVector GetCameraDirection ( void );
- bool SetAimPosition ( CVector vecPosition );
- bool SetCameraPosition ( CVector vecPosition );
- void SetUpPosition ( CVector vecPosition );
- void AimAt ( const CVector& vecPosition );
- bool IsRayIntersectEntity ( const CVector& vecStart, const CVector& vecDirection, float flDistance, CBaseEntity* pEntity, CVector* pvecReturn = nullptr );
- inline float GetYaw ( void ) const
- { return m_flYaw; }
- inline float GetPitch ( void ) const
- { return m_flPitch; }
- inline void SetYaw ( float flYaw )
- { m_flYaw = flYaw; }
- inline void SetPitch ( float flPitch )
- { m_flPitch = flPitch; }
- };
- class CEntityDef
- {
- public:
- CEntityDefInfo* m_pEntityInfo; //0x0000
- char m_szModelInfo[ 59 ]; //0x10E7888
- char pad_0x003F[ 0x131 ]; //0x003F
- char m_szEntityDefName[ 59 ]; //0x10E7888
- char pad_0x01AB[ 0x19 ]; //0x01AB
- char N000015E5[ 59 ]; //0x10E7888
- char pad_0x01FF[ 0x131 ]; //0x01FF
- char N00001640[ 20 ]; //0x10E7888
- char pad_0x0344[ 0x40 ]; //0x0344
- char N00001655[ 59 ]; //0x10E7888
- char pad_0x03BF[ 0x481 ]; //0x03BF
- }; //Size=0x0840
- class CEntityDefInfo
- {
- public:
- char pad_0x0000[ 0x404 ]; //0x0000
- }; //Size=0x0404
- class CCarPhysics
- {
- public:
- char pad_0x0000[ 0xAC ]; //0x0000
- CVector m_vecAcceleration; //0x00AC
- char pad_0x00B8[ 0x34C ]; //0x00B8
- }; //Size=0x0404
- template < typename T = int >
- class CVar
- {
- public:
- T Value; //0x0000
- char *String_Value; //0x0004
- int SizeOfString; //0x0008
- int SizeOfStringInCvarClass; //0x000C always 14h
- char string[ 20 ]; //0x0010
- CVar* Next; //0x0024
- int Type; //0x0028 0 - int ,1 - float,2 - string ,3 - unsigned char [4]
- char *Name; //0x002C
- char *StringValue2; //0x0030
- char _0x0034[ 4 ];
- int Min; //0x0038
- int Max; //0x003C
- int Protect; //0x0040
- char _0x0044[ 12 ];// idk
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement