CTerrorGameMovement::GetPlayerViewOffset
0x004f8310 · 122 bytes · __thiscall
_ZNK19CTerrorGameMovement19GetPlayerViewOffsetEb
Decompiled
undefined (2 params)
/* CTerrorGameMovement::GetPlayerViewOffset(bool) const */
undefined1 * __thiscall
CTerrorGameMovement::GetPlayerViewOffset(CTerrorGameMovement *this,bool param_1)
{
undefined4 *puVar1;
int iVar2;
if (GetPlayerViewOffset(bool)::vecView == '\0') {
iVar2 = __cxa_guard_acquire(&GetPlayerViewOffset(bool)::vecView);
if (iVar2 != 0) {
__cxa_guard_release(&GetPlayerViewOffset(bool)::vecView);
}
}
puVar1 = (undefined4 *)::GetPlayerViewOffset(*(CTerrorPlayer **)(this + 0x810),param_1);
GetPlayerViewOffset(bool)::vecView._0_4_ = *puVar1;
GetPlayerViewOffset(bool)::vecView._4_4_ = puVar1[1];
GetPlayerViewOffset(bool)::vecView._8_4_ = puVar1[2];
return GetPlayerViewOffset(bool)::vecView;
}
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.