mirror of
https://github.com/hermansimensen/eventqueue-fix.git
synced 2025-12-07 18:38:25 +00:00
Merge pull request #24 from rtldg/youlosethegame
Handle Color32 variants
This commit is contained in:
commit
7744bf4b81
@ -4,7 +4,7 @@
|
|||||||
#define PLUGIN_NAME "EventQueue fix"
|
#define PLUGIN_NAME "EventQueue fix"
|
||||||
#define PLUGIN_AUTHOR "carnifex"
|
#define PLUGIN_AUTHOR "carnifex"
|
||||||
#define PLUGIN_DESCRIPTION ""
|
#define PLUGIN_DESCRIPTION ""
|
||||||
#define PLUGIN_VERSION "1.3.2"
|
#define PLUGIN_VERSION "1.3.3"
|
||||||
#define PLUGIN_URL ""
|
#define PLUGIN_URL ""
|
||||||
|
|
||||||
#include <sourcemod>
|
#include <sourcemod>
|
||||||
@ -249,6 +249,13 @@ public void ResolveVariantValue(Handle ¶ms, event_t event)
|
|||||||
IntToString(iVar, event.variantValue, sizeof(event.variantValue));
|
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:
|
default:
|
||||||
{
|
{
|
||||||
DHookGetParamObjectPtrString(params, 3, 0, ObjectValueType_String, event.variantValue, sizeof(event.variantValue));
|
DHookGetParamObjectPtrString(params, 3, 0, ObjectValueType_String, event.variantValue, sizeof(event.variantValue));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user