Add auto-bunnyhop to CreateMove hook.

* TODO: Store NetVar offsets statically.

Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
aixxe
2016-12-21 15:23:43 +00:00
parent d53dbcabfd
commit 8287f60778
6 changed files with 37 additions and 6 deletions

11
src/Game/Entity.h Normal file
View File

@@ -0,0 +1,11 @@
#pragma once
class C_BaseEntity: public IClientEntity {
};
class C_BasePlayer: public C_BaseEntity {
public:
int GetFlags() {
return *reinterpret_cast<int*>(uintptr_t(this) + NetVars::GetOffset("CBasePlayer", "m_fFlags"));
}
};