Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (ClientClass* pClass = g_BaseClient->GetAllClasses(); pClass; pClass = pClass->m_pNext) {
- if (!strcmp(pClass->m_pNetworkName, "CBaseEntity")) {
- // Search for the 'm_vecOrigin' property.
- RecvTable* pClassTable = pClass->m_pRecvTable;
- for (int nIndex = 0; nIndex < pClassTable->m_nProps; nIndex++) {
- RecvProp* pProp = &pClassTable->m_pProps[nIndex];
- if (!pProp || strcmp(pProp->m_pVarName, "m_vecOrigin"))
- continue;
- // Store the original proxy function.
- oVecOrigin = pProp->m_ProxyFn; // original vecOrigin pointer
- // Replace the proxy function with our sequence changer.
- pProp->m_ProxyFn = (RecvVarProxyFn)YourPerfectFunction; // ok_hand
- break;
- }
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement