upd
This commit is contained in:
@@ -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"))); }
|
||||
|
||||
@@ -23,6 +23,7 @@ public:
|
||||
int getHealth() const;
|
||||
uint8_t getTeam() const;
|
||||
Vector_t getViewOffset() const;
|
||||
int getShotsFired() const;
|
||||
private:
|
||||
uintptr_t address;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user