fix: update sigs, vtable indices and schema vfunc for 2026-07-08 CS2 update

This commit is contained in:
Michal Přikryl 2026-07-10 12:46:44 +02:00
parent e136f9af2d
commit a3ccf7f44a
3 changed files with 5 additions and 16 deletions

View file

@ -102,13 +102,13 @@ inline CEntityInstance* UTIL_FindEntityByEHandle(CEntityInstance* pFind)
typedef void (*CEntityInstance_AcceptInput_t)(CEntityInstance* pThis, const char* pInputName,
CEntityInstance* pActivator, CEntityInstance* pCaller,
const variant_t& pValue, int nOutputID, void* pUnk1);
const variant_t& pValue);
inline CEntityInstance_AcceptInput_t g_CEntityInstance_AcceptInput = nullptr;
typedef void (*CEntitySystem_AddEntityIOEvent_t)(CEntitySystem* pEntitySystem, CEntityInstance* pThis,
const char* pInputName, CEntityInstance* pActivator,
CEntityInstance* pCaller, const variant_t& pValue, float delay,
int nOutputID, void* pUnk1, void* pUnk2);
void* pUnk1, void* pUnk2);
inline CEntitySystem_AddEntityIOEvent_t g_CEntitySystem_AddEntityIOEvent = nullptr;
@ -429,7 +429,7 @@ public:
return;
}
g_CEntityInstance_AcceptInput(this, pInputName, pActivator, pCaller, variant_t(value), 0, 0LL);
g_CEntityInstance_AcceptInput(this, pInputName, pActivator, pCaller, variant_t(value));
}
void AddEntityIOEvent(const char* pInputName, CEntityInstance* pActivator = nullptr,
@ -447,8 +447,7 @@ public:
}
g_CEntitySystem_AddEntityIOEvent(shared::g_pEntitySystem, this, pInputName, pActivator, pCaller,
variant_t(value), flDelay, 0,
0LL, 0LL);
variant_t(value), flDelay, 0LL, 0LL);
}
};

View file

@ -290,10 +290,6 @@ namespace RayTracePlugin {
[[nodiscard]] static gear_slot_t GetItemGearSlot(const char *item) noexcept;
CBasePlayerWeapon *GiveNamedItemAws(const char *item) noexcept;
void RemoveWeapons() {
CALL_VIRTUAL(void, shared::g_pGameConfig->GetOffset("CCSPlayer_ItemServices_RemoveWeapons"), this);
}
};
// We need an exactly sized class to be able to iterate the vector, our schema system implementation can't do this