FormatMusicParameters
0x004f07a0 · 489 bytes · __cdecl
_Z21FormatMusicParametersif
Decompiled
undefined (2 params)
/* FormatMusicParameters(int, float) */
undefined1 * FormatMusicParameters(int param_1,float param_2)
{
FormatMusicParameters(int,float)::str[0] = 0;
V_snprintf(FormatMusicParameters(int,float)::str,0x100,"pri: %.1f",(double)param_2);
if ((param_1 & 1U) != 0) {
V_strncat(FormatMusicParameters(int,float)::str," ",0x100,-1);
V_strncat(FormatMusicParameters(int,float)::str,"NO_INTENSITY_TRACK",0x100,-1);
}
if ((param_1 & 2U) != 0) {
V_strncat(FormatMusicParameters(int,float)::str," ",0x100,-1);
V_strncat(FormatMusicParameters(int,float)::str,"INTENSITY_CEILING",0x100,-1);
}
if ((param_1 & 4U) != 0) {
V_strncat(FormatMusicParameters(int,float)::str," ",0x100,-1);
V_strncat(FormatMusicParameters(int,float)::str,"INTENSITY_FLOOR",0x100,-1);
}
if ((param_1 & 8U) != 0) {
V_strncat(FormatMusicParameters(int,float)::str," ",0x100,-1);
V_strncat(FormatMusicParameters(int,float)::str,"AFTER_DEATH",0x100,-1);
}
if ((param_1 & 0x10U) != 0) {
V_strncat(FormatMusicParameters(int,float)::str," ",0x100,-1);
V_strncat(FormatMusicParameters(int,float)::str,"AFTER_MISSION_END",0x100,-1);
}
return FormatMusicParameters(int,float)::str;
}
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.