View Single Post
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 09-20-2016 , 08:37   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #10

GetClientEyeAngles:
PHP Code:
int m_angEyeAngles = -1;
QAngle *GetEyeAngles(CBaseEntity *pEntity)
{    
    return (
QAngle *)(((unsigned char *)pEntity) + m_angEyeAngles);    
}
bool Extension::SDK_OnLoad(char *errorsize_t maxlengthbool late)
{
    
gamehelpers->FindSendPropInfo("CCSPlayer""m_angEyeAngles[0]", &info); //uncomment SMEXT_ENABLE_GAMEHELPERS in the smsdk_config.h
    
m_angEyeAngles info.actual_offset;

PHP Code:
#include <itoolentity.h>
IServerTools *servertools NULL;

bool Extension::SDK_OnMetamodLoad(ISmmAPI *ismmchar *errorsize_t maxlenbool late)
{
    
GET_V_IFACE_ANY(GetServerFactoryservertoolsIServerToolsVSERVERTOOLS_INTERFACE_VERSION);

servertools::SetKeyValue is the equal to DispatchKey*

Quote:
// entity query
virtual bool GetKeyValue( CBaseEntity *pEntity, const char *szField, char *szValue, int iMaxLen ) = 0;
virtual bool SetKeyValue( CBaseEntity *pEntity, const char *szField, const char *szValue ) = 0;
virtual bool SetKeyValue( CBaseEntity *pEntity, const char *szField, float flValue ) = 0;
virtual bool SetKeyValue( CBaseEntity *pEntity, const char *szField, const Vector &vecValue ) = 0;
As to the other functions, I'm pretty sure they are member functions, but to find their offsets first we need to know their base classes.

Last edited by kadet.89; 09-20-2016 at 12:08.
kadet.89 is offline
Send a message via Skype™ to kadet.89