L L4D2node

CDirectorScriptedEventManager::InitScriptsNonVirtual

0x008b7e10 · 1463 bytes · __cdecl

_ZN29CDirectorScriptedEventManager21InitScriptsNonVirtualEv

Decompiled

undefined (0 params)

/* CDirectorScriptedEventManager::InitScriptsNonVirtual() */

undefined4 CDirectorScriptedEventManager::InitScriptsNonVirtual(void)

{
  void *local_18 [2];
  undefined2 local_10;
  ushort local_e;
  
  local_10 = 5;
  local_e = 0;
  local_18[0] = (void *)0x0;
                    /* try { // try from 008b7e57 to 008b7e59 has its CatchHandler @ 008b8426 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_GAUNTLET_1",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_18[0] = (void *)0x1;
  local_10 = 5;
  local_e = 0;
                    /* try { // try from 008b7ea7 to 008b7ea9 has its CatchHandler @ 008b8424 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_HORDE_ATTACK_1",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_e = 0;
  local_10 = 5;
  local_18[0] = (void *)0x2;
                    /* try { // try from 008b7ef7 to 008b7ef9 has its CatchHandler @ 008b8422 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_HALFTIME_BOSS",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_e = 0;
  local_10 = 5;
  local_18[0] = (void *)0x3;
                    /* try { // try from 008b7f47 to 008b7f49 has its CatchHandler @ 008b8416 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_GAUNTLET_2",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_18[0] = (void *)0x4;
  local_10 = 5;
  local_e = 0;
                    /* try { // try from 008b7f97 to 008b7f99 has its CatchHandler @ 008b8414 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_HORDE_ATTACK_2",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_18[0] = (void *)0x5;
  local_10 = 5;
  local_e = 0;
                    /* try { // try from 008b7fe7 to 008b7fe9 has its CatchHandler @ 008b8412 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_FINAL_BOSS",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_18[0] = (void *)0x6;
  local_10 = 5;
  local_e = 0;
                    /* try { // try from 008b8037 to 008b8039 has its CatchHandler @ 008b8406 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_HORDE_ESCAPE",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_10 = 5;
  local_e = 0;
  local_18[0] = (void *)0x7;
                    /* try { // try from 008b8087 to 008b8089 has its CatchHandler @ 008b8404 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_CUSTOM_PANIC",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_10 = 5;
  local_e = 0;
  local_18[0] = (void *)0x8;
                    /* try { // try from 008b80d7 to 008b80d9 has its CatchHandler @ 008b8402 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_CUSTOM_TANK",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_18[0] = (void *)0x9;
  local_10 = 5;
  local_e = 0;
                    /* try { // try from 008b8127 to 008b8129 has its CatchHandler @ 008b83f6 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_CUSTOM_SCRIPTED",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_18[0] = (void *)0xa;
  local_10 = 5;
  local_e = 0;
                    /* try { // try from 008b8177 to 008b8179 has its CatchHandler @ 008b83f4 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_CUSTOM_DELAY",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_e = 0;
  local_10 = 5;
  local_18[0] = (void *)0xb;
                    /* try { // try from 008b81c7 to 008b81c9 has its CatchHandler @ 008b83f2 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_CUSTOM_CLEAROUT",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_e = 0;
  local_10 = 5;
  local_18[0] = (void *)0xc;
                    /* try { // try from 008b8217 to 008b8219 has its CatchHandler @ 008b83e6 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_GAUNTLET_START",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_18[0] = (void *)0xd;
  local_10 = 5;
  local_e = 0;
                    /* try { // try from 008b8267 to 008b8269 has its CatchHandler @ 008b83e4 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_GAUNTLET_HORDE",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_18[0] = (void *)0xe;
  local_10 = 5;
  local_e = 0;
                    /* try { // try from 008b82b7 to 008b82b9 has its CatchHandler @ 008b83e2 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_GAUNTLET_HORDE_BONUSTIME",
             local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_18[0] = (void *)0xf;
  local_10 = 5;
  local_e = 0;
                    /* try { // try from 008b8307 to 008b8309 has its CatchHandler @ 008b83db */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_GAUNTLET_BOSS_INCOMING",
             local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_10 = 5;
  local_e = 0;
  local_18[0] = (void *)0x10;
                    /* try { // try from 008b8357 to 008b8359 has its CatchHandler @ 008b83d9 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_GAUNTLET_BOSS",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  local_10 = 5;
  local_e = 0;
  local_18[0] = (void *)0x11;
                    /* try { // try from 008b83a7 to 008b83a9 has its CatchHandler @ 008b83c7 */
  (**(code **)(*g_pScriptVM + 0x78))
            (g_pScriptVM,*(undefined4 *)(TheDirector + 0x488),"FINALE_GAUNTLET_ESCAPE",local_18);
  if ((local_e & 1) != 0) {
    free(local_18[0]);
  }
  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)