L L4D2node

InfectedBurn::Update

0x00a30e50 · 591 bytes · __cdecl

_ZN12InfectedBurn6UpdateEP8Infectedf

Decompiled

undefined (2 params)

/* InfectedBurn::Update(Infected*, float) */

Infected * InfectedBurn::Update(Infected *param_1,float param_2)

{
  float fVar1;
  char cVar2;
  int *piVar3;
  longdouble lVar4;
  CBaseEntity *in_stack_0000000c;
  float in_stack_00000010;
  undefined4 local_7c;
  float local_78;
  undefined4 local_74;
  
  piVar3 = (int *)(**(code **)(*(int *)in_stack_0000000c + 0x594))();
  if (piVar3 != (int *)0x0) {
    cVar2 = (**(code **)(*piVar3 + 0xe4))(piVar3,0x264);
    if (cVar2 == '\0') {
      cVar2 = (**(code **)(*piVar3 + 0xe4))(piVar3,0x2cd);
      if (cVar2 == '\0') {
        (**(code **)(*piVar3 + 0xd8))(piVar3,0x264,1);
      }
    }
  }
  lVar4 = (longdouble)CountdownTimer::Now();
  if (*(float *)((int)param_2 + 0x58) <= (float)lVar4) {
    local_7c = *(undefined4 *)(in_stack_0000000c + 0x3a8);
    local_78 = in_stack_00000010 * *(float *)((int)param_2 + 0x34) +
               *(float *)(in_stack_0000000c + 0x3ac);
    local_74 = *(undefined4 *)(in_stack_0000000c + 0x3b0);
    CBaseEntity::SetLocalAngles(in_stack_0000000c,(QAngle *)&local_7c);
  }
  lVar4 = (longdouble)CountdownTimer::Now();
  if (*(float *)((int)param_2 + 0x40) <= (float)lVar4) {
    cVar2 = UTIL_IsLowViolence();
    if (cVar2 == '\0') {
      Infected::Vocalize((Infected *)in_stack_0000000c,"Zombie.IgniteScream",true);
    }
    lVar4 = (longdouble)RandomFloat(0x3f800000,0x40400000);
    fVar1 = (float)lVar4;
    lVar4 = (longdouble)CountdownTimer::Now();
    if ((float)lVar4 + fVar1 != *(float *)((int)param_2 + 0x40)) {
      (**(code **)(*(int *)((int)param_2 + 0x38) + 4))((int)param_2 + 0x38,(int)param_2 + 0x40);
      *(float *)((int)param_2 + 0x40) = (float)lVar4 + fVar1;
    }
    if (fVar1 != *(float *)((int)param_2 + 0x3c)) {
      (**(code **)(*(int *)((int)param_2 + 0x38) + 4))((int)param_2 + 0x38,(int)param_2 + 0x3c);
      *(float *)((int)param_2 + 0x3c) = fVar1;
    }
  }
  lVar4 = (longdouble)CountdownTimer::Now();
  if ((float)lVar4 < *(float *)((int)param_2 + 0x4c)) {
    *(undefined4 *)param_1 = 0;
    *(undefined4 *)(param_1 + 4) = 0;
    *(undefined4 *)(param_1 + 8) = 0;
    return param_1;
  }
  CTakeDamageInfo::CTakeDamageInfo((CTakeDamageInfo *)&local_7c);
  (**(code **)(*(int *)in_stack_0000000c + 0x4dc))();
  *(undefined4 *)param_1 = 3;
  *(undefined4 *)(param_1 + 4) = 0;
  *(undefined4 *)(param_1 + 8) = 0;
  return param_1;
}

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)