L L4D2node

Motion_CalculateModifiedTime

0x00592910 · 48 bytes · __cdecl

_Z28Motion_CalculateModifiedTimefiPf

Decompiled

undefined (3 params)

/* Motion_CalculateModifiedTime(float, int, float*) */

undefined4 Motion_CalculateModifiedTime(float param_1,int param_2,float *param_3)

{
  longdouble lVar1;
  
  lVar1 = (longdouble)(*(code *)(&PTR_TimeModifierFunc_Linear_00f21188)[param_2 * 2])(param_1);
  *param_3 = (float)lVar1;
  return 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)