Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Syn's "Storm" Cheat
- // Started October 2015
- //
- #pragma once
- #include "Valve/MiscDefinitions.h"
- #include "Valve/ClientRecvProps.h"
- #include "Valve/Vector.h"
- #include "SmallClasses.h"
- #include "VFuncs.h"
- #include "NetVars.h"
- #include "Utilities.h"
- #include "Offsets.h"
- #define TEAM_CS_T 2
- #define TEAM_CS_CT 3
- #define BONE_USED_BY_HITBOX 0x00000100
- class IClientRenderable;
- class IClientNetworkable;
- class IClientUnknown;
- class IClientThinkable;
- class IClientEntity;
- class CSWeaponInfo;
- class CSWeaponInfo
- {
- public:
- virtual void Function0(); //
- virtual void Function1(); //
- virtual void Parse(KeyValues *pKeyValuesData, const char *szWeaponName); //
- virtual void RefreshDynamicParameters(void); //
- virtual void Function4(); //
- virtual void Function5(); //
- virtual void Function6(); //
- virtual void Function7(); //
- virtual void Function8(); //
- char pad_0x0004[0x2]; //0x0004
- char m_pszName[32]; //0x0006
- char pad_0x0026[0x7E]; //0x0026
- __int16 N0000002E; //0x00A4
- char m_pszModelName[32]; //0x00A6
- char pad_0x00C6[0x6DE]; //0x00C6
- BYTE m_IsFullAuto; //0x07A4
- char pad_0x07A5[0x7]; //0x07A5
- __int32 m_iPrice; //0x07AC
- float m_flArmorRatio; //0x07B0
- char pad_0x07B4[0x10]; //0x07B4
- float m_flPenetration; //0x07C4
- __int32 m_iDamage; //0x07C8
- float m_flRange; //0x07CC
- float m_flRangeModifier; //0x07D0
- char pad_0x07D4[0x4]; //0x07D4
- float m_flCycleTime; //0x07D8
- };
- enum class CSGOClassID
- {
- CAK47 = 1,
- CBaseAnimating,
- CBaseAnimatingOverlay,
- CBaseAttributableItem,
- CBaseButton,
- CBaseCombatCharacter,
- CBaseCombatWeapons,
- CBaseCSGrenade,
- CBaseCSGrenadeProjectile,
- CBaseDoor,
- CBaseEntity,
- CBaseFlex,
- CBaseGrenade,
- CBaseParticleEntity,
- CBasePlayer,
- CBasePropDoor,
- CBaseTeamObjectiveResource,
- CBaseTempEntity,
- CBaseToggle,
- CBaseTrigger,
- CBaseViewModels,
- CBaseVPhysicsTrigger,
- CBaseWeaponWorldModel,
- CBeam,
- CBeamSpotlight,
- CBoneFollower,
- CBreakableProp,
- CBreakableSurface,
- CC4,
- CCascadeLight,
- CChicken,
- CColorCorrection,
- CColorCorrectionVolume,
- CCSGameRulesProxy,
- CCSPlayer,
- CCSPlayerResource,
- CCSRagdoll,
- CCSTeam,
- CDEagle,
- CDecoyGrenade,
- CDecoyProjectile,
- CDynamicLight,
- CDynamicProp,
- CEconEntity,
- CEconWearable,
- CEmbers,
- CEntityDissolve,
- CEntityFlame,
- CEntityFreezing,
- CEntityParticleTrail,
- CEnvAmbientLight,
- CEnvDetailController,
- CEnvDOFController,
- CEnvParticleScript,
- CEnvProjectedTexture,
- CEnvQuadraticBeam,
- CEnvScreenEffect,
- CEnvScreenOverlay,
- CEnvTonemapController,
- CEnvWind,
- CFEPlayerDecal,
- CFireCrackerBlast,
- CFireSmoke,
- CFireTrail,
- CFish,
- CFlashbang,
- CFogController,
- CFootstepControl,
- CFunc_Dust,
- CFunc_LOD,
- CFuncAreaPortalWindow,
- CFuncBrush,
- CFuncConveyor,
- CFuncLadder,
- CFuncMonitor,
- CFuncMoveLinear,
- CFuncOccluder,
- CFuncReflectiveGlass,
- CFuncRotating,
- CFuncSmokeVolume,
- CFuncTrackTrain,
- CGameRulesProxy,
- CHandleTest,
- CHEGrenade,
- CHostage,
- CHostageCarriableProp,
- CIncendiaryGrenade,
- CInferno,
- CInfoLadderDismount,
- CInfoOverlayAccessor,
- CItem_Healthshot,
- CKnife,
- CKnifeGG,
- CLightGlow,
- CMaterialModifyControl,
- CMolotovGrenade,
- CMolotovProjectile,
- CMovieDisplay,
- CParticleFire,
- CParticlePerformanceMonitor,
- CParticleSystem,
- CPhysBox,
- CPhysBoxMultiplayer,
- CPhysicsProp,
- CPhysicsPropMultiplayer,
- CPhysMagnet,
- CPlantedC4,
- CPlasma,
- CPlayerResource,
- CPointCamera,
- CPointCommentaryNode,
- CPoseController,
- CPostProcessController,
- CPrecipitation,
- CPrecipitationBlocker,
- CPredictedViewModel,
- CProp_Hallucination,
- CPropDoorRotating,
- CPropJeep,
- CPropVehicleDriveable,
- CRagdollManager,
- CRagdollProp,
- CRagdollPropAttached,
- CRopeKeyframe,
- CSCAR17,
- CSceneEntity,
- CSensorGrenade,
- CSensorGrenadeProjectile,
- CShadowControl,
- CSlideshowDisplay,
- CSmokeGrenade,
- CSmokeGrenadeProjectile,
- CSmokeStack,
- CSpatialEntity,
- CSpotlightEnd,
- CSprite,
- CSpriteOriented,
- CSpriteTrail,
- CStatueProp,
- CSteamJet,
- CSun,
- CSunlightShadowControl,
- CTeam,
- CTeamplayRoundBasedRulesProxy,
- CTEArmorRicochet,
- CTEBaseBeam,
- CTEBeamEntPoint,
- CTEBeamEnts,
- CTEBeamFollow,
- CTEBeamLaser,
- CTEBeamPoints,
- CTEBeamRing,
- CTEBeamRingPoint,
- CTEBeamSpline,
- CTEBloodSprite,
- CTEBloodStream,
- CTEBreakModel,
- CTEBSPDecal,
- CTEBubbles,
- CTEBubbleTrail,
- CTEClientProjectile,
- CTEDecal,
- CTEDust,
- CTEDynamicLight,
- CTEEffectDispatch,
- CTEEnergySplash,
- CTEExplosion,
- CTEFireBullets,
- CTEFizz,
- CTEFootprintDecal,
- CTEFoundryHelpers,
- CTEGaussExplosion,
- CTEGlowSprite,
- CTEImpact,
- CTEKillPlayerAttachments,
- CTELargeFunnel,
- CTEMetalSparks,
- CTEMuzzleFlash,
- CTEParticleSystem,
- CTEPhysicsProp,
- CTEPlantBomb,
- CTEPlayerAnimEvent,
- CTEPlayerDecal,
- CTEProjectedDecal,
- CTERadioIcon,
- CTEShatterSurface,
- CTEShowLine,
- CTesla,
- CTESmoke,
- CTESparks,
- CTESprite,
- CTESpriteSpray,
- CTest_ProxyToggle_Networkabl,
- CTestTraceline,
- CTEWorldDecal,
- CTriggerPlayerMovement,
- CTriggerSoundOperator,
- CVGuiScreen,
- CVoteController,
- CWaterBullet,
- CWaterLODControl,
- CWeaponAug,
- CWeaponAWP,
- CWeaponBaseItem,
- CWeaponBizon,
- CWeaponCSBase,
- CWeaponCSBaseGun,
- CWeaponCycler,
- CWeaponElite,
- CWeaponFamas,
- CWeaponFiveSeven,
- CWeaponG3SG1,
- CWeaponGalil,
- CWeaponGalilAR,
- CWeaponGlock,
- CWeaponHKP2000,
- CWeaponM249,
- CWeaponM3,
- CWeaponM4A1,
- CWeaponMAC10,
- CWeaponMag7,
- CWeaponMP5Navy,
- CWeaponMP7,
- CWeaponMP9,
- CWeaponNegev,
- CWeaponNOVA,
- CWeaponP228,
- CWeaponP250,
- CWeaponP90,
- CWeaponSawedoff,
- CWeaponSCAR20,
- CWeaponScout,
- CWeaponSG550,
- CWeaponSG552,
- CWeaponSG556,
- CWeaponSSG08,
- CWeaponTaser,
- CWeaponTec9,
- CWeaponTMP,
- CWeaponUMP45,
- CWeaponUSP,
- CWeaponXM1014,
- CWorld,
- DustTrail,
- MovieExplosion,
- ParticleSmokeGrenade,
- RocketTrail,
- SmokeTrail,
- SporeExplosion,
- SporeTrail,
- };
- enum class CSGOHitboxID
- {
- Head = 0,
- Neck,
- NeckLower,
- Pelvis,
- Stomach,
- LowerChest,
- Chest,
- UpperChest,
- RightThigh,
- LeftThigh,
- RightShin,
- LeftShin,
- RightFoot,
- LeftFoot,
- RightHand,
- LeftHand,
- RightUpperArm,
- RightLowerArm,
- LeftUpperArm,
- LeftLowerArm
- };
- class ScriptCreatedItem
- {
- public:
- CPNETVAR_FUNC(int*, ItemDefinitionIndex, 0xE67AB3B8); //m_iItemDefinitionIndex
- CPNETVAR_FUNC(int*, AccountID, 0x24abbea8); //m_iAccountID
- CPNETVAR_FUNC(int*, ItemIDHigh, 0x714778A); //m_iItemIDHigh
- CPNETVAR_FUNC(int*, ItemIDLow, 0x3A3DFC74); //m_iItemIDLow
- CPNETVAR_FUNC(char**, szCustomName, 0x13285ad9); //m_szCustomName
- CPNETVAR_FUNC(int*, EntityQuality, 0x110be6fe); //m_iEntityQuality
- };
- class AttributeContainer
- {
- public:
- CPNETVAR_FUNC(ScriptCreatedItem*, m_Item, 0x7E029CE5);
- };
- class CBaseCombatWeapon : public Interface
- {
- public:
- CNETVAR_FUNC(float, GetNextPrimaryAttack, 0xDB7B106E); //m_flNextPrimaryAttack
- CNETVAR_FUNC(int, GetAmmoInClip, 0x97B6F70C); //m_iClip1
- CNETVAR_FUNC(HANDLE, GetOwnerHandle, 0xC32DF98D); //m_hOwner
- CNETVAR_FUNC(Vector, GetOrigin, 0x1231CE10); //m_vecOrigin
- CPNETVAR_FUNC(int*, FallbackPaintKit, 0xADE4C870); // m_nFallbackPaintKit
- CPNETVAR_FUNC(int*, FallbackSeed, 0xC2D0683D); // m_nFallbackSeed
- CPNETVAR_FUNC(float*, FallbackWear, 0xA263576C); //m_flFallbackWear
- CPNETVAR_FUNC(int*, FallbackStatTrak, 0x1ED78768); //m_nFallbackStatTrak
- CPNETVAR_FUNC(int*, OriginalOwnerXuidLow, 0xd7bd6be2); //m_OriginalOwnerXuidLow
- CPNETVAR_FUNC(int*, OriginalOwnerXuidHigh, 0x1e95c16c); //m_OriginalOwnerXuidHigh
- CPNETVAR_FUNC(AttributeContainer*, m_AttributeManager, 0xCFFCE089);
- float GetInaccuracy()
- {
- typedef float(__thiscall* oGetSpread)(PVOID);
- return VFunc< oGetSpread>(Offsets::SigScans::dwSpreadVmt)(this);
- }
- float GetSpread()
- {
- typedef float(__thiscall* oGetInac)(PVOID);
- return VFunc< oGetInac>(Offsets::SigScans::dwSpreadVmt + 1)(this);
- }
- void UpdateAccuracyPenalty()
- {
- typedef void(__thiscall* oUpdateAccuracyPenalty)(PVOID);
- return VFunc< oUpdateAccuracyPenalty>(Offsets::SigScans::dwSpreadVmt + 2)(this);
- }
- CSWeaponInfo* GetCSWpnData()
- {
- DWORD GetCSWpnDataAddr = Offsets::SigScans::dwGetCSWpnData;
- if (GetCSWpnDataAddr)
- {
- CSWeaponInfo* retData;
- __asm
- {
- mov ecx, this
- call GetCSWpnDataAddr
- mov retData, eax
- }
- return retData;
- }
- else
- {
- return nullptr;
- }
- }
- };
- class CCSBomb
- {
- public:
- CNETVAR_FUNC(HANDLE, GetOwnerHandle, 0xC32DF98D); //m_hOwner
- CNETVAR_FUNC(float, GetC4BlowTime, 0xB5E0CA1C); //m_flC4Blow
- CNETVAR_FUNC(float, GetC4DefuseCountDown, 0xB959B4A6); //m_flDefuseCountDown
- };
- class CLocalPlayerExclusive
- {
- public:
- CNETVAR_FUNC(Vector, GetViewPunchAngle, 0x68F014C0);//m_viewPunchAngle
- CNETVAR_FUNC(Vector, GetAimPunchAngle, 0xBF25C290);//m_aimPunchAngle
- CNETVAR_FUNC(Vector, GetAimPunchAngleVel, 0x8425E045);//m_aimPunchAngleVel
- };
- class CollisionProperty
- {
- public:
- CNETVAR_FUNC(Vector, GetMins, 0xF6F78BAB);//m_vecMins
- CNETVAR_FUNC(Vector, GetMaxs, 0xE47C6FC4);//m_vecMaxs
- CNETVAR_FUNC(unsigned char, GetSolidType, 0xB86722A1);//m_nSolidType
- CNETVAR_FUNC(unsigned short, GetSolidFlags, 0x63BB24C1);//m_usSolidFlags
- CNETVAR_FUNC(int, GetSurroundsType, 0xB677A0BB); //m_nSurroundType
- bool IsSolid()
- {
- return (GetSolidType() != SOLID_NONE) && ((GetSolidFlags() & FSOLID_NOT_SOLID) == 0);
- }
- };
- class IClientRenderable
- {
- public:
- //virtual void* GetIClientUnknown() = 0;
- virtual Vector const& GetRenderOrigin(void) = 0;
- virtual Vector const& GetRenderAngles(void) = 0;
- virtual bool ShouldDraw(void) = 0;
- virtual bool IsTransparent(void) = 0;
- virtual bool UsesPowerOfTwoFrameBufferTexture() = 0;
- virtual bool UsesFullFrameBufferTexture() = 0;
- virtual void GetShadowHandle() const = 0;
- virtual void* RenderHandle() = 0;
- virtual const model_t* GetModel() const = 0;
- virtual int DrawModel(int flags) = 0;
- virtual int GetBody() = 0;
- virtual void ComputeFxBlend() = 0;
- bool SetupBones(matrix3x4 *pBoneToWorldOut, int nMaxBones, int boneMask, float currentTime)
- {
- typedef bool(__thiscall* oSetupBones)(PVOID, matrix3x4*, int, int, float);
- return call_vfunc< oSetupBones>(this, 13)(this, pBoneToWorldOut, nMaxBones, boneMask, currentTime);
- }
- };
- class IClientNetworkable
- {
- public:
- virtual IClientUnknown* GetIClientUnknown() = 0;
- virtual void Release() = 0;
- virtual ClientClass* GetClientClass() = 0;// FOR NETVARS FIND YOURSELF ClientClass* stuffs
- virtual void NotifyShouldTransmit( /* ShouldTransmitState_t state*/) = 0;
- virtual void OnPreDataChanged( /*DataUpdateType_t updateType*/) = 0;
- virtual void OnDataChanged( /*DataUpdateType_t updateType*/) = 0;
- virtual void PreDataUpdate( /*DataUpdateType_t updateType*/) = 0;
- virtual void PostDataUpdate( /*DataUpdateType_t updateType*/) = 0;
- virtual void unknown() = 0;
- virtual bool IsDormant(void) = 0;
- virtual int GetIndex(void) const = 0;
- virtual void ReceiveMessage(int classID /*, bf_read &msg*/) = 0;
- virtual void* GetDataTableBasePtr() = 0;
- virtual void SetDestroyedOnRecreateEntities(void) = 0;
- };
- class IClientUnknown
- {
- public:
- virtual void* GetCollideable() = 0;
- virtual IClientNetworkable* GetClientNetworkable() = 0;
- virtual IClientRenderable* GetClientRenderable() = 0;
- virtual IClientEntity* GetIClientEntity() = 0;
- virtual IClientEntity* GetBaseEntity() = 0;
- virtual IClientThinkable* GetClientThinkable() = 0;
- };
- class IClientThinkable
- {
- public:
- virtual IClientUnknown* GetIClientUnknown() = 0;
- virtual void ClientThink() = 0;
- virtual void* GetThinkHandle() = 0;
- virtual void SetThinkHandle(void* hThink) = 0;
- virtual void Release() = 0;
- };
- class __declspec (novtable)IClientEntity : public IClientUnknown, public IClientRenderable, public IClientNetworkable, public IClientThinkable
- {
- public:
- public:
- virtual void Release(void) = 0;
- virtual void blahblahpad(void) = 0;
- virtual Vector& GetAbsOrigin(void) const = 0;//in broken place use GetOrigin Below
- virtual const Vector& GetAbsAngles(void) const = 0;
- //--- NetVars ---//
- CPNETVAR_FUNC(CLocalPlayerExclusive*, localPlayerExclusive, 0x7177BC3E);// m_Local
- CPNETVAR_FUNC(CollisionProperty*, collisionProperty, 0xE477CBD0);//m_Collision
- CNETVAR_FUNC(int, GetFlags, 0xE456D580); //m_fFlags
- CPNETVAR_FUNC(int*, GetPointerFlags, 0xE456D580); //m_fFlags
- CNETVAR_FUNC(Vector, GetOrigin, 0x1231CE10); //m_vecOrigin
- CNETVAR_FUNC(Vector, GetRotation, 0x6BEA197A); //m_angRotation
- CNETVAR_FUNC(int, GetTeamNum, 0xC08B6C6E); //m_iTeamNum
- CNETVAR_FUNC(int, GetMaxHealth, 0xC52E1C28); //m_iMaxHealth
- CNETVAR_FUNC(int, GetHealth, 0xA93054E3); //m_iHealth
- CNETVAR_FUNC(unsigned char, GetLifeState, 0xD795CCFC); //m_lifeState
- CNETVAR_FUNC(HANDLE, GetActiveWeaponHandle, 0xB4FECDA3); //m_hActiveWeapon
- CNETVAR_FUNC(int, GetTickBase, 0xD472B079); //m_nTickBase
- CNETVAR_FUNC(Vector, GetViewOffset, 0xA9F74931); //m_vecViewOffset[0]
- CNETVAR_FUNC(Vector, GetVelocity, 0x40C1CA24); //m_vecVelocity[0]
- CNETVAR_FUNC(bool, HasGunGameImmunity, 0x6AD6FA0D); //m_bGunGameImmunity
- CNETVAR_FUNC(bool, IsDefusing, 0xA2C14106); //m_bIsDefusing
- CNETVAR_FUNC(int, ArmorValue, 0x3898634); //m_ArmorValue
- CNETVAR_FUNC(bool, HasHelmet, 0x7B97F18A); //m_bHasHelmet
- CNETVAR_FUNC(bool, IsScoped, 0x61B9C22C); //m_bIsScoped
- CNETVAR_FUNC(int, GetMoney, 0xF4B3E183); //m_iAccount
- CNETVAR_FUNC(HANDLE, GetObserverTargetHandle, 0x8660FD83); //m_hObserverTarget
- CPNETVAR_FUNC(char*, GetLastPlaceName, 0x9911c2d7);
- CNETVAR_FUNC(DWORD, LowerBodyYaw, 0xe6996ccf);
- CNETVAR_FUNC(DWORD, EyeAnglesX, 0xa6f17f3a);
- CNETVAR_FUNC(DWORD, EyeAnglesY, 0xbfea4e7b);
- CNETVAR_FUNC(Vector, GetEyeAngles, 0xbfea4e7b);
- // ----------------------------------------------//
- bool IsAlive()
- {
- return (GetLifeState() == LIFE_ALIVE && GetHealth() > 0);
- }
- Vector GetBonePos(int i)
- {
- matrix3x4 boneMatrix[128];
- if (SetupBones(boneMatrix, 128, BONE_USED_BY_HITBOX, GetTickCount64()))
- {
- return Vector(boneMatrix[i][0][3], boneMatrix[i][1][3], boneMatrix[i][2][3]);
- }
- return Vector(0, 0, 0);
- }
- Vector GetHeadPos()
- {
- return this->GetBonePos(6);
- }
- bool IsPlayer()
- {
- return GetClientClass()->m_ClassID == (int)CSGOClassID::CCSPlayer;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement