CBaseClientState::RememberIPAddressForLobby
0x001016a0 · 172 bytes · __cdecl
_ZN16CBaseClientState25RememberIPAddressForLobbyEyRK8netadr_s
Decompiled
undefined (2 params)
/* CBaseClientState::RememberIPAddressForLobby(unsigned long long, netadr_s const&) */
void CBaseClientState::RememberIPAddressForLobby(ulonglong param_1,netadr_s *param_2)
{
undefined2 uVar1;
undefined4 uVar2;
int in_GS_OFFSET;
float fVar3;
netadr_s *in_stack_00000010;
Color local_24;
undefined1 local_23;
undefined1 local_22;
undefined1 local_21;
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
uVar2 = netadr_s::ToString(in_stack_00000010,false);
local_24 = (Color)0x0;
local_23 = 0xff;
local_22 = 0;
local_21 = 0xff;
ConColorMsg(&local_24,"RememberIPAddressForLobby: lobby %llx from address %s\n",param_1._4_4_,
param_2,uVar2);
*(undefined4 *)((int)param_1 + 0x50) = param_1._4_4_;
*(netadr_s **)((int)param_1 + 0x54) = param_2;
fVar3 = realtime + 60.0;
*(undefined4 *)((int)param_1 + 0x44) = *(undefined4 *)in_stack_00000010;
*(undefined4 *)((int)param_1 + 0x48) = *(undefined4 *)(in_stack_00000010 + 4);
uVar1 = *(undefined2 *)(in_stack_00000010 + 8);
*(float *)((int)param_1 + 0x40) = fVar3;
*(undefined2 *)((int)param_1 + 0x4c) = uVar1;
if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
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.