//int __cdecl AimTarget_GetTagPos(int localClientNum, centity_s *cent, unsigned int tagName, float *pos)
unsigned short tagpos[8];
float storeOutPos[3];
AimTarget_GetTagPos(0,(cEntity*)getCentityPtr(0),tagpos[0],storeOutPos);
//void __cdecl AimTarget_GetTagPos_0(centity_s *ent, unsigned int tagName, float *pos)
unsigned short tagpos[8];
float storeOutPos[3];
AimTarget_GetTagPos_0((cEntity*)getCentityPtr(0),tagpos[0],storeOutPos);
//int __cdecl AimTarget_GetTagPos(int localClientNum, centity_s *cent, unsigned int tagName, float *pos)
unsigned short tagpos[8];
float storeOutPos[3];
AimTarget_GetTagPos(0,(cEntity*)getCentityPtr(0),tagpos[0],storeOutPos);
//void __cdecl AimTarget_GetTagPos_0(centity_s *ent, unsigned int tagName, float *pos)
unsigned short tagpos[8];
float storeOutPos[3];
AimTarget_GetTagPos_0((cEntity*)getCentityPtr(0),tagpos[0],storeOutPos);
centity_s* CentityPtr(int clientNum) {
return (centity_s*)((*(int*)0xC3DFC0) + 0x31C * clientNum);
}
opd_s AimTarget_GetTagPos_t = { 0x54C88, TOC };
opd_s SL_GetString_t = { 0x5B99C8, TOC };
int(*SL_GetString)(const char* string, unsigned int user, scriptInstance_t inst) = (int(*)(const char*, unsigned int, scriptInstance_t))&SL_GetString_t;
int(*AimTarget_GetTagPos)(int localClientNum, centity_s* cent, unsigned int tagName, float pos[3]) = (int(*)(int, centity_s*, unsigned int, float[3]))&AimTarget_GetTagPos_t;
void test(int clientNum) {
float pos[3];
unsigned int tagIndex = SL_GetString("j_head", 0, SC
TINSTANCE_SERVER);
if(AimTarget_GetTagPos(0, CentityPtr(clientNum), tagIndex, pos))
printf("pos: %f, %f, %f\n", pos[0], pos[1], pos[2]);
}
//int __cdecl AimTarget_GetTagPos(int localClientNum, centity_s *cent, unsigned int tagName, float *pos)
unsigned short tagpos[8];
float storeOutPos[3];
AimTarget_GetTagPos(0,(cEntity*)getCentityPtr(0),tagpos[0],storeOutPos);
//void __cdecl AimTarget_GetTagPos_0(centity_s *ent, unsigned int tagName, float *pos)
unsigned short tagpos[8];
float storeOutPos[3];
AimTarget_GetTagPos_0((cEntity*)getCentityPtr(0),tagpos[0],storeOutPos);
centity_s* CentityPtr(int clientNum) {
return (centity_s*)((*(int*)0xC3DFC0) + 0x31C * clientNum);
}
opd_s AimTarget_GetTagPos_t = { 0x54C88, TOC };
opd_s SL_GetString_t = { 0x5B99C8, TOC };
int(*SL_GetString)(const char* string, unsigned int user, scriptInstance_t inst) = (int(*)(const char*, unsigned int, scriptInstance_t))&SL_GetString_t;
int(*AimTarget_GetTagPos)(int localClientNum, centity_s* cent, unsigned int tagName, float pos[3]) = (int(*)(int, centity_s*, unsigned int, float[3]))&AimTarget_GetTagPos_t;
void test(int clientNum) {
float pos[3];
unsigned int tagIndex = SL_GetString("j_head", 0, SC
TINSTANCE_SERVER);
if(AimTarget_GetTagPos(0, CentityPtr(clientNum), tagIndex, pos))
printf("pos: %f, %f, %f\n", pos[0], pos[1], pos[2]);
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.