L L4D2node

Interpolator_GetKochanekBartelsParams

0x00591970 · 115 bytes · __cdecl

_Z37Interpolator_GetKochanekBartelsParamsiRfS_S_

Decompiled

undefined (4 params)

/* Interpolator_GetKochanekBartelsParams(int, float&, float&, float&) */

void Interpolator_GetKochanekBartelsParams(int param_1,float *param_2,float *param_3,float *param_4)

{
  if (param_1 == 8) {
    *param_2 = 0.77;
    *param_3 = -1.0;
    *param_4 = 0.77;
    return;
  }
  if (param_1 != 9) {
    if (param_1 != 7) {
      *param_2 = 0.0;
      *param_3 = 0.0;
      *param_4 = 0.0;
      return;
    }
    *param_2 = 0.77;
    *param_3 = 0.0;
    *param_4 = 0.77;
    return;
  }
  *param_2 = 0.77;
  *param_3 = 1.0;
  *param_4 = 0.77;
  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)