L L4D2node

CBasePlayer::SetBodyPitch

0x007b9030 · 118 bytes · __thiscall

_ZN11CBasePlayer12SetBodyPitchEf

Decompiled

undefined (2 params)

/* CBasePlayer::SetBodyPitch(float) */

void __thiscall CBasePlayer::SetBodyPitch(CBasePlayer *this,float param_1)

{
  int iVar1;
  int iVar2;
  CStudioHdr *pCVar3;
  CStudioHdr *pCVar4;
  
  iVar1 = *(int *)(this + 0x2114);
  if (iVar1 < 0) {
    return;
  }
  pCVar3 = *(CStudioHdr **)(this + 0x13e0);
  if (pCVar3 == (CStudioHdr *)0x0) {
    iVar2 = CBaseEntity::GetModel((CBaseEntity *)this);
    if (iVar2 == 0) {
      pCVar3 = *(CStudioHdr **)(this + 0x13e0);
    }
    else {
      CBaseAnimating::LockStudioHdr((CBaseAnimating *)this);
      pCVar3 = *(CStudioHdr **)(this + 0x13e0);
    }
    pCVar4 = (CStudioHdr *)0x0;
    if (pCVar3 == (CStudioHdr *)0x0) goto LAB_007b9058;
  }
  pCVar4 = (CStudioHdr *)0x0;
  if (*(int *)pCVar3 != 0) {
    pCVar4 = pCVar3;
  }
LAB_007b9058:
  CBaseAnimating::SetPoseParameter((CBaseAnimating *)this,pCVar4,iVar1,param_1);
  return;
}

SourceMod gamedata

paste into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)