L L4D2node

CPhysicsPushedEntities::LinearlyMoveRootEntity

0x0078d360 · 608 bytes · __thiscall

_ZN22CPhysicsPushedEntities22LinearlyMoveRootEntityEP11CBaseEntityfP6Vector

Decompiled

undefined (4 params)

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

void __thiscall
CPhysicsPushedEntities::LinearlyMoveRootEntity
          (CPhysicsPushedEntities *this,CBaseEntity *param_1,float param_2,Vector *param_3)

{
  float fVar1;
  float fVar2;
  int iVar3;
  char cVar4;
  int iVar5;
  undefined4 local_3c;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  int local_2c;
  float local_28;
  float local_24;
  float local_20;
  
  local_3c = 0;
  local_38 = 0;
  if (___atan2f_finite == 0) {
    local_2c = 0;
  }
  else {
    (**(code **)(___atan2f_finite + 0x50))
              (___atan2f_finite,&local_3c,0,0,0,0,"/data/src/game/server/physics_main.cpp",0x3b5,
               &LinearlyMoveRootEntity(CBaseEntity*,float,Vector*)::tm_fmt,"(%s)%s","Unaccounted",
               "CPhysicsPushedEntities::LinearlyMoveRootEntity");
    local_2c = ___atan2f_finite;
  }
  iVar3 = _DAT_0105db00;
  local_34 = local_3c;
  local_30 = local_38;
  if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
                    /* try { // try from 0078d566 to 0078d5b4 has its CatchHandler @ 0078d5f4 */
    iVar5 = ThreadGetCurrentId();
    if (iVar3 == iVar5) {
      if ((char *)*_DAT_0105d15c != "CPhysicsPushedEntities::LinearlyMoveRootEntity") {
        _DAT_0105d15c =
             (int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xcb2238,(char *)0x1,0xbfafa1);
      }
      CVProfNode::EnterScope();
      DAT_0105d158 = '\0';
    }
  }
  local_28 = param_2 * *(float *)(param_1 + 0x2ec) + *(float *)(param_1 + 0x39c);
  local_24 = param_2 * *(float *)(param_1 + 0x2f0) + *(float *)(param_1 + 0x3a0);
  local_20 = param_2 * *(float *)(param_1 + 0x2f4) + *(float *)(param_1 + 0x3a4);
                    /* try { // try from 0078d481 to 0078d496 has its CatchHandler @ 0078d5d3 */
  CBaseEntity::SetLocalOrigin(param_1,(Vector *)&local_28);
  if (((byte)param_1[0x14d] & 0x10) != 0) {
    CBaseEntity::CalcAbsoluteVelocity(param_1);
  }
  fVar1 = *(float *)(param_1 + 0x27c);
  fVar2 = *(float *)(param_1 + 0x274);
  *(float *)(param_3 + 4) = param_2 * *(float *)(param_1 + 0x278);
  *(float *)(param_3 + 8) = param_2 * fVar1;
  *(float *)param_3 = param_2 * fVar2;
  iVar3 = _DAT_0105db00;
  if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
    iVar5 = ThreadGetCurrentId();
    if (iVar3 == iVar5) {
      cVar4 = CVProfNode::ExitScope();
      if (cVar4 != '\0') {
        _DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
      }
      DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
    }
  }
  if (local_2c != 0) {
    (**(code **)(local_2c + 0x54))(local_2c,local_34,local_30,0,0,0);
  }
  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)