L L4D2node

GCSDK::CreateJob_CGCSOCreateJob

0x0005e810 · 84 bytes · __cdecl

_ZN5GCSDK24CreateJob_CGCSOCreateJobEPNS_9CGCClientEPv

Decompiled

undefined (2 params)

/* GCSDK::CreateJob_CGCSOCreateJob(GCSDK::CGCClient*, void*) */

CJob * GCSDK::CreateJob_CGCSOCreateJob(CGCClient *param_1,void *param_2)

{
  CJob *this;
  
  this = operator_new(0x74);
                    /* try { // try from 0005e837 to 0005e83b has its CatchHandler @ 0005e864 */
  CJob::CJob(this,(CJobMgr *)(param_1 + 0x28));
  *(CGCClient **)(this + 0x6c) = param_1;
  *(undefined4 *)(this + 0x70) = 2;
  *(undefined ***)this = &PTR__CGCSOCreateJob_000b5568;
  *(undefined1 **)(this + 0x68) = g_JobType_CGCSOCreateJob;
  if (param_2 != (void *)0x0) {
    *(void **)(this + 0x14) = param_2;
  }
  return this;
}

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)