Add auto-bunnyhop to CreateMove hook.
* TODO: Store NetVar offsets statically. Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
11
src/Game/Entity.h
Normal file
11
src/Game/Entity.h
Normal 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"));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user