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

@ -17,7 +17,7 @@
"signatures": {
"library": "server",
"windows": "48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 49 8B F0 48 8B D9 48 8B 0D",
"linux": "55 48 89 F0 48 89 E5 41 57 49 89 FF 41 56 48 8D 7D C0"
"linux": "55 48 89 E5 41 56 49 89 FE 41 55 48 8D 7D"
}
},
"CEntitySystem_AddEntityIOEvent": {
@ -33,12 +33,6 @@
"linux": 5
}
},
"CCSPlayer_ItemServices_RemoveWeapons": {
"offsets": {
"windows": 24,
"linux": 25
}
},
"CBaseEntity_CollisionRulesChanged": {
"offsets": {
"windows": 186,

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