L L4D2node

CPropMinigun::GetStandPosition

0x0054b630 · 244 bytes · __thiscall

_ZNK12CPropMinigun16GetStandPositionEP6Vector

Decompiled

undefined (2 params)

/* CPropMinigun::GetStandPosition(Vector*) const */

void __thiscall CPropMinigun::GetStandPosition(CPropMinigun *this,Vector *param_1)

{
  float fVar1;
  float fVar2;
  float fVar3;
  float local_24;
  float local_20;
  float local_1c;
  undefined4 local_18;
  undefined4 local_14;
  undefined4 local_10;
  
  if (param_1 != (Vector *)0x0) {
    local_18 = vec3_angle;
    local_14 = DAT_01053d40;
    local_10 = DAT_01053d44;
    if (((byte)this[0x14d] & 8) != 0) {
      CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
    }
    local_14 = *(undefined4 *)(this + 0x380);
    AngleVectors((QAngle *)&local_18,(Vector *)&local_24);
    fVar1 = *(float *)(MinigunStandDistance._28_4_ + 0x2c);
    if (((byte)this[0x14d] & 8) != 0) {
      CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
    }
    fVar2 = *(float *)(this + 0x2e4);
    fVar3 = *(float *)(this + 0x2e0);
    *(float *)(param_1 + 8) = *(float *)(this + 0x2e8) - local_1c * fVar1;
    *(float *)(param_1 + 4) = fVar2 - local_20 * fVar1;
    *(float *)param_1 = fVar3 - local_24 * fVar1;
  }
  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)