L L4D2node

CChoreoEvent::CChoreoEvent

0x00badab0 · 622 bytes · __thiscall

_ZN12CChoreoEventC2EP12CChoreoSceneNS_9EVENTTYPEEPKcS4_

Decompiled

undefined (5 params)

/* CChoreoEvent::CChoreoEvent(CChoreoScene*, CChoreoEvent::EVENTTYPE, char const*, char const*) */

void __thiscall
CChoreoEvent::CChoreoEvent
          (CChoreoEvent *this,CChoreoScene *param_1,CChoreoEvent param_3,char *param_4,char *param_5
          )

{
  *(undefined ***)this = &PTR_GetDuration_00d54990;
  CUtlString::CUtlString((CUtlString *)(this + 8));
                    /* try { // try from 00badad3 to 00badad7 has its CatchHandler @ 00badd21 */
  CUtlString::CUtlString((CUtlString *)(this + 0x18));
                    /* try { // try from 00badae1 to 00badae5 has its CatchHandler @ 00bade22 */
  CUtlString::CUtlString((CUtlString *)(this + 0x28));
                    /* try { // try from 00badaef to 00badaf3 has its CatchHandler @ 00bade15 */
  CUtlString::CUtlString((CUtlString *)(this + 0x38));
  *(undefined4 *)(this + 0x5c) = 0;
  *(undefined2 *)(this + 0x71) = 0;
  *(undefined4 *)(this + 0x60) = 0;
  *(undefined4 *)(this + 100) = 0;
  *(undefined4 *)(this + 0x68) = 0;
  *(undefined4 *)(this + 0x6c) = 0;
  this[0x70] = (CChoreoEvent)0x0;
  *(undefined4 *)(this + 0x73) = 0;
  this[0x77] = (CChoreoEvent)0x0;
  *(undefined2 *)(this + 0x78) = 0;
  *(undefined4 *)(this + 0x7a) = 0;
  *(undefined4 *)(this + 0x80) = 0;
  *(undefined4 *)(this + 0x84) = 0;
  *(undefined4 *)(this + 0x88) = 0;
  *(undefined4 *)(this + 0x8c) = 0;
  *(undefined4 *)(this + 0x90) = 0;
                    /* try { // try from 00badb77 to 00badb7b has its CatchHandler @ 00bade13 */
  CUtlString::CUtlString((CUtlString *)(this + 0x94));
                    /* try { // try from 00badb88 to 00badb8c has its CatchHandler @ 00bade11 */
  CUtlString::CUtlString((CUtlString *)(this + 0xa4));
  *(undefined4 *)(this + 0xbc) = 0;
  *(undefined4 *)(this + 0xc0) = 0;
  *(undefined4 *)(this + 0xc4) = 0;
  *(undefined4 *)(this + 200) = 0;
  *(undefined4 *)(this + 0xcc) = 0;
  *(undefined4 *)(this + 0xd0) = 0;
  *(undefined4 *)(this + 0xd4) = 0;
  *(undefined4 *)(this + 0xd8) = 0;
  *(undefined4 *)(this + 0xdc) = 0;
  *(undefined4 *)(this + 0xe0) = 0;
  *(undefined4 *)(this + 0xe4) = 0;
  *(undefined4 *)(this + 0xe8) = 0;
  *(undefined4 *)(this + 0xec) = 0;
  *(undefined4 *)(this + 0xf0) = 0;
  *(undefined4 *)(this + 0xf4) = 0;
  *(undefined4 *)(this + 0xf8) = 0;
  *(undefined4 *)(this + 0xfc) = 0;
  *(undefined4 *)(this + 0x100) = 0;
  *(undefined4 *)(this + 0x104) = 0;
  *(undefined4 *)(this + 0x108) = 0;
  *(undefined4 *)(this + 0x10c) = 0;
  *(undefined4 *)(this + 0x110) = 0;
  *(undefined4 *)(this + 0x114) = 0;
  *(undefined4 *)(this + 0x118) = 0;
  *(undefined4 *)(this + 0x11c) = 0;
                    /* try { // try from 00badc93 to 00badc97 has its CatchHandler @ 00badd8a */
  CUtlString::CUtlString((CUtlString *)(this + 0x13c));
  *(undefined4 *)(this + 0x158) = 0;
  *(undefined4 *)(this + 0x15c) = 0;
  *(undefined4 *)(this + 0x160) = 0;
  *(undefined4 *)(this + 0x164) = 0;
  *(undefined4 *)(this + 0x168) = 0;
                    /* try { // try from 00badcd4 to 00badd0c has its CatchHandler @ 00badd33 */
  Init(this,param_1);
  this[4] = param_3;
  if ((param_3 == (CChoreoEvent)0xb) || (param_3 == (CChoreoEvent)0x5)) {
    this[0x178] = (CChoreoEvent)((byte)this[0x178] | 1);
  }
  else {
    this[0x178] = (CChoreoEvent)((byte)this[0x178] & 0xfe);
  }
  CUtlString::operator=((CUtlString *)(this + 8),param_4);
  CUtlString::operator=((CUtlString *)(this + 0x18),param_5);
  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)