CChoreoEvent::CChoreoEvent
0x00bad750 · 607 bytes · __thiscall
_ZN12CChoreoEventC2EP12CChoreoSceneNS_9EVENTTYPEEPKc
Decompiled
undefined (4 params)
/* CChoreoEvent::CChoreoEvent(CChoreoScene*, CChoreoEvent::EVENTTYPE, char const*) */
void __thiscall
CChoreoEvent::CChoreoEvent
(CChoreoEvent *this,CChoreoScene *param_1,CChoreoEvent param_3,char *param_4)
{
*(undefined ***)this = &PTR_GetDuration_00d54990;
CUtlString::CUtlString((CUtlString *)(this + 8));
/* try { // try from 00bad776 to 00bad77a has its CatchHandler @ 00bad9b9 */
CUtlString::CUtlString((CUtlString *)(this + 0x18));
/* try { // try from 00bad784 to 00bad788 has its CatchHandler @ 00badaa6 */
CUtlString::CUtlString((CUtlString *)(this + 0x28));
/* try { // try from 00bad792 to 00bad796 has its CatchHandler @ 00badaa2 */
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 00bad81a to 00bad81e has its CatchHandler @ 00bada9c */
CUtlString::CUtlString((CUtlString *)(this + 0x94));
/* try { // try from 00bad82b to 00bad82f has its CatchHandler @ 00bada98 */
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 00bad933 to 00bad937 has its CatchHandler @ 00bada1e */
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 00bad974 to 00bad99d has its CatchHandler @ 00bad9cb */
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);
return;
}
SourceMod gamedata
paste intoaddons/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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.