L L4D2node

server_game_time

0x006d6890 · 39 bytes · __cdecl

_ZL16server_game_timeRK8CCommand

Decompiled

undefined (1 param)

/* server_game_time(CCommand const&) */

void server_game_time(CCommand *param_1)

{
  Msg("Server game time: %f\n",(double)*(float *)(gpGlobals + 0xc));
  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)