L L4D2node

CPhysicsPushedEntities::PerformLinearPush

0x00791ef0 · 628 bytes · __thiscall

_ZN22CPhysicsPushedEntities17PerformLinearPushEP11CBaseEntityf

Decompiled

undefined (3 params)

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

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

{
  int iVar1;
  char cVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 local_4c;
  undefined4 local_48;
  undefined4 local_40;
  undefined4 local_3c;
  int local_38;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  Vector local_28 [24];
  
  local_4c = 0;
  local_48 = 0;
  if (___atan2f_finite == 0) {
    local_38 = 0;
  }
  else {
    (**(code **)(___atan2f_finite + 0x50))
              (___atan2f_finite,&local_4c,0,0,0,0,"/data/src/game/server/physics_main.cpp",0x3c7,
               &PerformLinearPush(CBaseEntity*,float)::tm_fmt,"(%s)%s","Unaccounted",
               "CPhysicsPushedEntities::PerformLinearPush");
    local_38 = ___atan2f_finite;
  }
  iVar1 = _DAT_0105db00;
  local_40 = local_4c;
  local_3c = local_48;
  if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
                    /* try { // try from 007920e6 to 00792134 has its CatchHandler @ 0079219c */
    iVar4 = ThreadGetCurrentId();
    if (iVar1 == iVar4) {
      if ((char *)*_DAT_0105d15c != "CPhysicsPushedEntities::PerformLinearPush") {
        _DAT_0105d15c =
             (int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xcb2458,(char *)0x1,0xbfafa1);
      }
      CVProfNode::EnterScope();
      DAT_0105d158 = '\0';
    }
  }
  *(float *)(this + 0x50) = param_2;
  uVar3 = *(undefined4 *)(param_1 + 0x150);
  *(undefined4 *)(this + 0x10) = 0;
  this[0x30] = (CPhysicsPushedEntities)((byte)((uint)uVar3 >> 0x1e) & 1);
                    /* try { // try from 00791fce to 0079204c has its CatchHandler @ 0079217b */
  SetupAllInHierarchy(this,param_1);
  local_34 = *(undefined4 *)(param_1 + 0x39c);
  local_30 = *(undefined4 *)(param_1 + 0x3a0);
  local_2c = *(undefined4 *)(param_1 + 0x3a4);
  LinearlyMoveRootEntity(this,param_1,param_2,local_28);
  GenerateBlockingEntityListAddBox(this,local_28);
  cVar2 = (**(code **)(*(int *)this + 4))(this,local_28);
  if (cVar2 == '\0') {
    uVar3 = RegisterBlockage(this);
    CBaseEntity::SetLocalOrigin(param_1,(Vector *)&local_34);
    RestoreEntities(this);
  }
  else {
                    /* try { // try from 0079215b to 0079215f has its CatchHandler @ 0079217b */
    FinishPush(this,false,(RotatingPushMove_t *)0x0);
    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_38 != 0) {
    (**(code **)(local_38 + 0x54))(local_38,local_40,local_3c,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)