L L4D2node

Hermite_SplineBasis

0x000a5e90 · 104 bytes · __cdecl

_Z19Hermite_SplineBasisfPf

Decompiled

undefined (2 params)

/* Hermite_SplineBasis(float, float*) */

void Hermite_SplineBasis(float param_1,float *param_2)

{
  float fVar1;
  float fVar2;
  float fVar3;
  
  fVar2 = param_1 * param_1;
  fVar3 = fVar2 * param_1;
  param_2[3] = fVar3 - fVar2;
  fVar1 = ((fVar3 + fVar3) - fVar2 * 3.0) + 1.0;
  *param_2 = fVar1;
  param_2[1] = 1.0 - fVar1;
  param_2[2] = (param_1 + fVar3) - (fVar2 + fVar2);
  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)