Merge pull request #21 from rtldg/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

bump to 1.3.1 with sm 1.11 fix
This commit is contained in:
Herman Simensen 2022-10-01 15:30:15 +02:00 committed by GitHub
commit 1c844d8a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 2 deletions

View File

@ -1,5 +1,16 @@
"Games"
{
"#default"
{
"Offsets"
{
"LINUX"
{
"linux" "1"
}
}
}
"csgo"
{
"Signatures"

View File

@ -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 <sourcemod>
@ -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);