L L4D2node

PlaneIntersection

0x00bc6840 · 314 bytes · __cdecl

_Z17PlaneIntersectionRK6VPlaneS1_S1_R6Vector

Decompiled

undefined (4 params)

/* PlaneIntersection(VPlane const&, VPlane const&, VPlane const&, Vector&) */

void PlaneIntersection(VPlane *param_1,VPlane *param_2,VPlane *param_3,Vector *param_4)

{
  char cVar1;
  undefined4 local_88;
  undefined4 local_84;
  undefined4 local_80;
  uint local_7c;
  undefined4 local_78;
  undefined4 local_74;
  undefined4 local_70;
  uint local_6c;
  undefined4 local_68;
  undefined4 local_64;
  undefined4 local_60;
  uint local_5c;
  undefined4 local_58;
  undefined4 local_54;
  undefined4 local_50;
  undefined4 local_4c;
  VMatrix local_48 [12];
  undefined4 local_3c;
  undefined4 local_2c;
  undefined4 local_1c;
  
  local_70 = *(undefined4 *)(param_2 + 8);
  local_68 = *(undefined4 *)param_3;
  local_60 = *(undefined4 *)(param_3 + 8);
  local_64 = *(undefined4 *)(param_3 + 4);
  local_88 = *(undefined4 *)param_1;
  local_84 = *(undefined4 *)(param_1 + 4);
  local_5c = *(uint *)(param_3 + 0xc) ^ 0x80000000;
  local_74 = *(undefined4 *)(param_2 + 4);
  local_6c = *(uint *)(param_2 + 0xc) ^ 0x80000000;
  local_78 = *(undefined4 *)param_2;
  local_7c = *(uint *)(param_1 + 0xc) ^ 0x80000000;
  local_80 = *(undefined4 *)(param_1 + 8);
  local_58 = 0;
  local_54 = 0;
  local_50 = 0;
  local_4c = 0x3f800000;
  cVar1 = MatrixInverseGeneral((VMatrix *)&local_88,local_48);
  if (cVar1 != '\0') {
    *(undefined4 *)param_4 = local_3c;
    *(undefined4 *)(param_4 + 4) = local_2c;
    *(undefined4 *)(param_4 + 8) = local_1c;
  }
  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)