From a5e312c8c119e2ba9a5b2f08545025acd699e149 Mon Sep 17 00:00:00 2001 From: rtldg Date: Fri, 30 Sep 2022 16:46:44 +0000 Subject: [PATCH] bump to 1.3.1 with sm 1.11 fix --- gamedata/eventfix.games.txt | 11 +++++++++++ scripting/eventqueuefix.sp | 7 +++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gamedata/eventfix.games.txt b/gamedata/eventfix.games.txt index 13ad6ed..3125908 100644 --- a/gamedata/eventfix.games.txt +++ b/gamedata/eventfix.games.txt @@ -1,5 +1,16 @@ "Games" { + "#default" + { + "Offsets" + { + "LINUX" + { + "linux" "1" + } + } + } + "csgo" { "Signatures" diff --git a/scripting/eventqueuefix.sp b/scripting/eventqueuefix.sp index 509adab..5309251 100644 --- a/scripting/eventqueuefix.sp +++ b/scripting/eventqueuefix.sp @@ -4,7 +4,7 @@ #define PLUGIN_NAME "EventQueue fix" #define PLUGIN_AUTHOR "carnifex" #define PLUGIN_DESCRIPTION "" -#define PLUGIN_VERSION "1.3.0" +#define PLUGIN_VERSION "1.3.1" #define PLUGIN_URL "" #include @@ -152,7 +152,10 @@ void LoadDHooks() SetFailState("Faild to find AddEventThree signature."); DHookAddParam(addEventThree, HookParamType_CharPtr); DHookAddParam(addEventThree, HookParamType_CharPtr); - DHookAddParam(addEventThree, HookParamType_Object, 20, DHookPass_ByVal|DHookPass_ODTOR|DHookPass_OCTOR|DHookPass_OASSIGNOP); + if (gamedataConf.GetOffset("LINUX") == 1) + DHookAddParam(addEventThree, HookParamType_ObjectPtr); + else + DHookAddParam(addEventThree, HookParamType_Object, 20); DHookAddParam(addEventThree, HookParamType_Float); DHookAddParam(addEventThree, HookParamType_Int); DHookAddParam(addEventThree, HookParamType_Int);