SelectedSetColorChaged
0x006f8fd0 · 187 bytes · __cdecl
_ZL22SelectedSetColorChagedP7IConVarPKcf
Decompiled
undefined (3 params)
/* SelectedSetColorChaged(IConVar*, char const*, float) */
void SelectedSetColorChaged(IConVar *param_1,char *param_2,float param_3)
{
char *pcVar1;
int iVar2;
byte *pbVar3;
uint local_24;
uint local_20;
uint local_1c;
uint local_18;
ConVarRef local_14 [4];
int local_10;
pcVar1 = (char *)(**(code **)(*(int *)param_1 + 0x10))(param_1);
ConVarRef::ConVarRef(local_14,pcVar1);
pcVar1 = (char *)(**(code **)(*(int *)param_1 + 0x10))(param_1);
if (pcVar1 != "nav_selected_set_border_color") {
iVar2 = _V_stricmp(pcVar1,"nav_selected_set_border_color");
if (iVar2 != 0) {
pbVar3 = &s_selectedSetColor;
goto LAB_006f9019;
}
}
pbVar3 = &s_selectedSetBorderColor;
LAB_006f9019:
local_24 = (uint)*pbVar3;
local_1c = (uint)pbVar3[2];
local_18 = (uint)pbVar3[3];
local_20 = local_24;
iVar2 = sscanf(*(char **)(local_10 + 0x24),"%d %d %d %d",&local_24,&local_20,&local_1c,&local_18);
*pbVar3 = (byte)local_24;
pbVar3[1] = (byte)local_20;
pbVar3[2] = (byte)local_1c;
if (3 < iVar2) {
pbVar3[3] = (byte)local_18;
}
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.