diff options
| author | navewindre <nw@moneybot.cc> | 2024-07-12 00:55:39 +0200 |
|---|---|---|
| committer | navewindre <nw@moneybot.cc> | 2024-07-12 00:55:39 +0200 |
| commit | 2ebf959ec02048c15323e1bbfc63faedcf5067b6 (patch) | |
| tree | 18862ba5d3b4be44294c0a81317d31eace7ee150 /src/csgo/csgoplayer.h | |
| parent | ecca2728f1a583ea484f8bdcda390a30e4906f1d (diff) | |
ha haaa
Diffstat (limited to 'src/csgo/csgoplayer.h')
| -rw-r--r-- | src/csgo/csgoplayer.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/csgo/csgoplayer.h b/src/csgo/csgoplayer.h new file mode 100644 index 0000000..ecf84c3 --- /dev/null +++ b/src/csgo/csgoplayer.h @@ -0,0 +1,36 @@ +//|_ _ _. _ ._ |_ _. _ | +//| | (/_ (_| \/ (/_ | | | | (_| (_ |< + +#pragma once +#include "csgoentity.h" + +class CSGOPLAYER : public CSGOENTITY { +public: + CSGOPLAYER( U32 base ) : CSGOENTITY( base ) {} + CSGOPLAYER( const CSGOENTITY& other ) : CSGOENTITY( other.base ) {} + CSGOPLAYER() = default; + + // this doesnt need to be a part of the aimbot. + VEC3 get_bone_pos( I32 bone_id ) { + return VEC3{ + csgop->read<F32>( m_dwBoneMatrix( ) + 0x30 * bone_id + 0x0c ), + csgop->read<F32>( m_dwBoneMatrix( ) + 0x30 * bone_id + 0x1c ), + csgop->read<F32>( m_dwBoneMatrix( ) + 0x30 * bone_id + 0x2c ) + }; + } + + NETVAR( m_bSpottedByMask , "DT_BaseEntity", I32 ); + + NETVAR( m_aimPunchAngle , "DT_BasePlayer", VEC3 ); + NETVAR( m_hActiveWeapon , "DT_BasePlayer", U32 ); + NETVAR( m_iHealth , "DT_BasePlayer", I32 ); + NETVAR( m_vecOrigin , "DT_BasePlayer", VEC3 ); + + NETVAR( m_clrRender , "DT_CSPlayer" , BYTECOLOR ); + NETVAR( m_flFlashMaxAlpha, "DT_CSPlayer" , F32 ); + NETVAR( m_iShotsFired , "DT_CSPlayer" , I32 ); + NETVAR( m_iTeamNum , "DT_CSPlayer" , I32 ); + NETVAR( m_lifeState , "DT_CSPlayer" , I32 ); + + OFFSET( m_vecViewOffset , "m_vecViewOffset[0]", "DT_CSPlayer", VEC3, 0 ); +};
\ No newline at end of file |
