CEngineSoundServer::SetRoomType
0x00157fa0 · 163 bytes · __thiscall
_ZN18CEngineSoundServer11SetRoomTypeER16IRecipientFilteri
Decompiled
undefined (3 params)
/* CEngineSoundServer::SetRoomType(IRecipientFilter&, int) */
void __thiscall
CEngineSoundServer::SetRoomType(CEngineSoundServer *this,IRecipientFilter *param_1,int param_2)
{
int iVar1;
int local_30 [8];
local_30[0] = 0;
local_30[1] = 0;
local_30[2] = 0;
local_30[3] = 0;
local_30[4] = 0;
/* try { // try from 00157fdc to 00158015 has its CatchHandler @ 00158043 */
BuildRecipientList((CUtlVector *)local_30,param_1);
iVar1 = 0;
if (0 < local_30[3]) {
do {
(**(code **)(*(int *)g_pVEngineServer + 0x9c))
(g_pVEngineServer,*(undefined4 *)(local_30[0] + iVar1 * 4),"room_type %i\n",param_2)
;
iVar1 = iVar1 + 1;
} while (iVar1 < local_30[3]);
}
local_30[3] = 0;
CUtlMemory<edict_t*,int>::Purge((CUtlMemory<edict_t*,int> *)local_30);
local_30[4] = local_30[0];
CUtlMemory<edict_t*,int>::Purge((CUtlMemory<edict_t*,int> *)local_30);
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.