Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ConVar;
- typedef void ( *FnChangeCallback_t )( ConVar *var, const char *pOldValue, float flOldValue );
- class ConVar
- {
- public:
- void SetValue( const char* pValue )
- {
- typedef void ( __thiscall* SetValueFn )( PVOID, const char* );
- GetMethod< SetValueFn >( this, 0 )( this, pValue );
- }
- char __pad0[ 0xC5 ];
- FnChangeCallback_t m_fnChangeCallback;
- };
- class ICvar
- {
- public:
- ConVar* FindVar( const char* var_name )
- {
- typedef ConVar* ( __thiscall* FindVarFn )( PVOID, const char* );
- return GetMethod< FindVarFn >( this, 12 )( this, var_name );
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment