L L4D2node

Tutor::GiveBossInfectedLesson

0x00a07be0 · 127 bytes · __cdecl

_ZN5Tutor22GiveBossInfectedLessonE15ZombieClassTypeP11CBaseEntity

Decompiled

undefined (2 params)

/* Tutor::GiveBossInfectedLesson(ZombieClassType, CBaseEntity*) */

undefined4 Tutor::GiveBossInfectedLesson(undefined4 param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  switch(param_2) {
  default:
    return 0;
  case 1:
    uVar1 = GiveLesson();
    return uVar1;
  case 2:
    uVar1 = GiveLesson();
    return uVar1;
  case 3:
    uVar1 = GiveLesson();
    return uVar1;
  case 7:
    uVar1 = GiveLesson();
    return uVar1;
  case 8:
    uVar1 = GiveLesson();
    return uVar1;
  }
}

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)