L L4D2node

CPhysicsPushedEntities::PerformRotatePush

0x00791990 · 670 bytes · __thiscall

_ZN22CPhysicsPushedEntities17PerformRotatePushEP11CBaseEntityf

Decompiled

undefined (3 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CPhysicsPushedEntities::PerformRotatePush(CBaseEntity*, float) */

undefined4 __thiscall
CPhysicsPushedEntities::PerformRotatePush
          (CPhysicsPushedEntities *this,CBaseEntity *param_1,float param_2)

{
  int iVar1;
  char cVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 local_b4;
  undefined4 local_b0;
  undefined4 local_ac;
  undefined4 local_a8;
  int local_a4;
  undefined4 local_a0;
  undefined4 local_9c;
  undefined4 local_98;
  RotatingPushMove_t local_94 [132];
  
  local_b4 = 0;
  local_b0 = 0;
  if (___atan2f_finite == 0) {
    local_a4 = 0;
  }
  else {
    (**(code **)(___atan2f_finite + 0x50))
              (___atan2f_finite,&local_b4,0,0,0,0,"/data/src/game/server/physics_main.cpp",0x38d,
               &PerformRotatePush(CBaseEntity*,float)::tm_fmt,"(%s)%s","Unaccounted",
               "CPhysicsPushedEntities::PerformRotatePush");
    local_a4 = ___atan2f_finite;
  }
  iVar1 = _DAT_0105db00;
  local_ac = local_b4;
  local_a8 = local_b0;
  if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
                    /* try { // try from 00791bb6 to 00791c04 has its CatchHandler @ 00791c67 */
    iVar4 = ThreadGetCurrentId();
    if (iVar1 == iVar4) {
      if ((char *)*_DAT_0105d15c != "CPhysicsPushedEntities::PerformRotatePush") {
        _DAT_0105d15c =
             (int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xcb240c,(char *)0x1,0xbfafa1);
      }
      CVProfNode::EnterScope();
      DAT_0105d158 = '\0';
    }
  }
  uVar3 = *(undefined4 *)(param_1 + 0x150);
  *(undefined4 *)(this + 0x10) = 0;
  this[0x30] = (CPhysicsPushedEntities)((byte)((uint)uVar3 >> 0x1e) & 1);
                    /* try { // try from 00791a7f to 00791b0b has its CatchHandler @ 00791c43 */
  SetupAllInHierarchy(this,param_1);
  local_a0 = *(undefined4 *)(param_1 + 0x3a8);
  local_9c = *(undefined4 *)(param_1 + 0x3ac);
  local_98 = *(undefined4 *)(param_1 + 0x3b0);
  RotateRootEntity(this,param_1,param_2,local_94);
  GenerateBlockingEntityList(this);
  cVar2 = (*(code *)**(undefined4 **)this)(this,local_94,param_1);
  if (cVar2 == '\0') {
    uVar3 = RegisterBlockage(this);
    CBaseEntity::SetLocalAngles(param_1,(QAngle *)&local_a0);
    RestoreEntities(this);
  }
  else {
                    /* try { // try from 00791c27 to 00791c2b has its CatchHandler @ 00791c43 */
    FinishPush(this,true,local_94);
    uVar3 = 0;
  }
  iVar1 = _DAT_0105db00;
  if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
    iVar4 = ThreadGetCurrentId();
    if (iVar1 == iVar4) {
      cVar2 = CVProfNode::ExitScope();
      if (cVar2 != '\0') {
        _DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
      }
      DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
    }
  }
  if (local_a4 != 0) {
    (**(code **)(local_a4 + 0x54))(local_a4,local_ac,local_a8,0,0,0);
  }
  return uVar3;
}

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)