L L4D2node

CHLTVDirector::StartChaseCameraShot

0x006d9810 · 280 bytes · __thiscall

_ZN13CHLTVDirector20StartChaseCameraShotEiiiiib

Decompiled

undefined (7 params)

/* CHLTVDirector::StartChaseCameraShot(int, int, int, int, int, bool) */

void __thiscall
CHLTVDirector::StartChaseCameraShot
          (CHLTVDirector *this,int param_1,int param_2,int param_3,int param_4,int param_5,
          bool param_6)

{
  int *piVar1;
  
  piVar1 = (int *)(**(code **)(*gameeventmanager + 0x1c))(gameeventmanager,"hltv_chase",1,0);
  if (piVar1 != (int *)0x0) {
    (**(code **)(*piVar1 + 0x30))(piVar1,"target1",param_1);
    (**(code **)(*piVar1 + 0x30))(piVar1,"target2",param_2);
    (**(code **)(*piVar1 + 0x30))(piVar1,"distance",param_3);
    (**(code **)(*piVar1 + 0x30))(piVar1,&DAT_00c93914,param_4);
    (**(code **)(*piVar1 + 0x30))(piVar1,"theta",param_5);
    (**(code **)(*piVar1 + 0x30))(piVar1,"ineye",param_6);
    *(int *)(this + 0x20) = param_1;
    (**(code **)(**(int **)(this + 0x14) + 0x2c))(*(int **)(this + 0x14),piVar1);
                    /* WARNING: Could not recover jumptable at 0x006d991e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*gameeventmanager + 0x2c))();
    return;
  }
  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)