SV_Pure_f
0x001fb7e0 · 227 bytes · __cdecl
_ZL9SV_Pure_fRK8CCommand
Decompiled
undefined (1 param)
/* SV_Pure_f(CCommand const&) */
void SV_Pure_f(CCommand *param_1)
{
uint uVar1;
if (*(int *)param_1 == 2) {
uVar1 = strtol(*(char **)(param_1 + 0x40c),(char **)0x0,10);
Msg("--------------------------------------------------------\n");
if (uVar1 < 3) {
if (g_sv_pure_mode == uVar1) {
Msg("sv_pure value unchanged (current value is %d).\n",g_sv_pure_mode);
}
else {
g_sv_pure_mode = uVar1;
Msg("sv_pure set to %d.\n",uVar1);
if (1 < DAT_003b7f64) {
Msg("Note: Changes to sv_pure take effect when the next map is loaded.\n",uVar1);
}
}
goto LAB_001fb81c;
}
Msg(
"sv_pure:\n\nIf set to 1, the server will force all client files except the whitelisted ones (in pure_server_whitelist.txt) to match the server\'s files. \n\nIf set to 2, the server will force all client files to come from Steam (and it will not load pure_server_whitelist.txt).\n"
);
if (uVar1 != 0xffffffff) goto LAB_001fb81c;
}
else {
Msg("--------------------------------------------------------\n");
Msg(
"sv_pure:\n\nIf set to 1, the server will force all client files except the whitelisted ones (in pure_server_whitelist.txt) to match the server\'s files. \n\nIf set to 2, the server will force all client files to come from Steam (and it will not load pure_server_whitelist.txt).\n"
);
}
Msg("\nCurrent sv_pure value is %d.\n",g_sv_pure_mode);
LAB_001fb81c:
Msg();
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.