Merge pull request #24 from rtldg/youlosethegame

Handle Color32 variants
This commit is contained in:
Herman Simensen 2025-01-10 20:33:19 +01:00 committed by GitHub
commit 7744bf4b81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@
#define PLUGIN_NAME "EventQueue fix"
#define PLUGIN_AUTHOR "carnifex"
#define PLUGIN_DESCRIPTION ""
#define PLUGIN_VERSION "1.3.2"
#define PLUGIN_VERSION "1.3.3"
#define PLUGIN_URL ""
#include <sourcemod>
@ -249,6 +249,13 @@ public void ResolveVariantValue(Handle &params, event_t event)
IntToString(iVar, event.variantValue, sizeof(event.variantValue));
}
//Color32
case 9:
{
int iVar = DHookGetParamObjectPtrVar(params, 3, 0, ObjectValueType_Int);
FormatEx(event.variantValue, sizeof(event.variantValue), "%d %d %d", (iVar&0xFF), (iVar&0xFF00) >> 8, (iVar&0xFF0000) >> 16);
}
default:
{
DHookGetParamObjectPtrString(params, 3, 0, ObjectValueType_String, event.variantValue, sizeof(event.variantValue));