This commit is contained in:
Oscar
2025-07-18 15:14:02 +03:00
parent 4d216b662b
commit d3c189f949
87 changed files with 945 additions and 175 deletions

View File

@@ -6,7 +6,7 @@
C_CSPlayerPawn::C_CSPlayerPawn(uintptr_t address) : address(address) {}
Vector_t C_CSPlayerPawn::getPosition() const {
return *(Vector_t*)(address + SchemaFinder::Get(hash_32_fnv1a_const("C_BasePlayerPawn->m_vOldOrigin")));
return *(Vector_t*)(this->address + SchemaFinder::Get(hash_32_fnv1a_const("C_BasePlayerPawn->m_vOldOrigin")));
}
Vector_t C_CSPlayerPawn::getEyePosition() const {
@@ -48,3 +48,7 @@ uint8_t C_CSPlayerPawn::getTeam() const {
Vector_t C_CSPlayerPawn::getViewOffset() const {
return *reinterpret_cast<Vector_t*>((uintptr_t)this + SchemaFinder::Get(hash_32_fnv1a_const("C_BaseModelEntity->m_vecViewOffset")));
}
int C_CSPlayerPawn::getShotsFired() const {
return *reinterpret_cast<int*>((uintptr_t)this + SchemaFinder::Get(hash_32_fnv1a_const("C_CSPlayerPawn->m_iShotsFired")));
} //{ return *reinterpret_cast<int*>(address + SchemaFinder::Get(hash_32_fnv1a_const("C_CSPlayerPawn->m_iShotsFired"))); }

View File

@@ -23,6 +23,7 @@ public:
int getHealth() const;
uint8_t getTeam() const;
Vector_t getViewOffset() const;
int getShotsFired() const;
private:
uintptr_t address;
};