L L4D2node

EventList_RegisterSharedEvents

0x0044c6e0 · 2668 bytes · unknown

_Z30EventList_RegisterSharedEventsv

Decompiled

undefined (0 params)

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* EventList_RegisterSharedEvents() */

void EventList_RegisterSharedEvents(void)

{
  EventList_RegisterSharedEvent("AE_EMPTY",0,1);
  EventList_RegisterSharedEvent("AE_NPC_LEFTFOOT",1,1);
  EventList_RegisterSharedEvent("AE_NPC_RIGHTFOOT",2,1);
  EventList_RegisterSharedEvent("AE_NPC_BODYDROP_LIGHT",3,1);
  EventList_RegisterSharedEvent("AE_NPC_BODYDROP_HEAVY",4,1);
  EventList_RegisterSharedEvent("AE_NPC_SWISHSOUND",5,1);
  EventList_RegisterSharedEvent("AE_NPC_180TURN",6,1);
  EventList_RegisterSharedEvent("AE_NPC_ITEM_PICKUP",7,1);
  EventList_RegisterSharedEvent("AE_NPC_WEAPON_DROP",8,1);
  EventList_RegisterSharedEvent("AE_NPC_WEAPON_SET_SEQUENCE_NAME",9,1);
  EventList_RegisterSharedEvent("AE_NPC_WEAPON_SET_SEQUENCE_NUMBER",10,1);
  EventList_RegisterSharedEvent("AE_NPC_WEAPON_SET_ACTIVITY",0xb,1);
  EventList_RegisterSharedEvent("AE_NPC_HOLSTER",0xc,1);
  EventList_RegisterSharedEvent("AE_NPC_DRAW",0xd,1);
  EventList_RegisterSharedEvent("AE_NPC_WEAPON_FIRE",0xe,9);
  EventList_RegisterSharedEvent("AE_CL_PLAYSOUND",0xf,0x10);
  EventList_RegisterSharedEvent("AE_SV_PLAYSOUND",0x10,1);
  EventList_RegisterSharedEvent("AE_CL_STOPSOUND",0x11,0x10);
  EventList_RegisterSharedEvent("AE_START_SCRIPTED_EFFECT",0x12,1);
  EventList_RegisterSharedEvent("AE_STOP_SCRIPTED_EFFECT",0x13,1);
  EventList_RegisterSharedEvent("AE_CLIENT_EFFECT_ATTACH",0x14,0x10);
  EventList_RegisterSharedEvent("AE_MUZZLEFLASH",0x15,0x10);
  EventList_RegisterSharedEvent("AE_NPC_MUZZLEFLASH",0x16,0x10);
  EventList_RegisterSharedEvent("AE_THUMPER_THUMP",0x17,1);
  EventList_RegisterSharedEvent("AE_AMMOCRATE_PICKUP_AMMO",0x18,1);
  EventList_RegisterSharedEvent("AE_NPC_RAGDOLL",0x19,1);
  EventList_RegisterSharedEvent("AE_NPC_ADDGESTURE",0x1a,1);
  EventList_RegisterSharedEvent("AE_NPC_RESTARTGESTURE",0x1b,1);
  EventList_RegisterSharedEvent("AE_NPC_ATTACK_BROADCAST",0x1c,1);
  EventList_RegisterSharedEvent("AE_NPC_HURT_INTERACTION_PARTNER",0x1d,1);
  EventList_RegisterSharedEvent("AE_NPC_SET_INTERACTION_CANTDIE",0x1e,1);
  EventList_RegisterSharedEvent("AE_SV_DUSTTRAIL",0x1f,1);
  EventList_RegisterSharedEvent("AE_CL_CREATE_PARTICLE_EFFECT",0x20,0x10);
  EventList_RegisterSharedEvent("AE_CL_CREATE_PARTICLE_BRASS",0x21,0x10);
  EventList_RegisterSharedEvent("AE_RAGDOLL",0x22,1);
  EventList_RegisterSharedEvent("AE_CL_ENABLE_BODYGROUP",0x23,0x10);
  EventList_RegisterSharedEvent("AE_CL_DISABLE_BODYGROUP",0x24,0x10);
  EventList_RegisterSharedEvent("AE_CL_BODYGROUP_SET_VALUE",0x25,0x10);
  EventList_RegisterSharedEvent("AE_CL_BODYGROUP_SET_VALUE_CMODEL_WPN",0x26,0x10);
  EventList_RegisterSharedEvent("AE_WPN_PRIMARYATTACK",0x27,0x11);
  EventList_RegisterSharedEvent("AE_WPN_INCREMENTAMMO",0x28,0x11);
  EventList_RegisterSharedEvent("AE_WPN_HIDE",0x29,0x11);
  EventList_RegisterSharedEvent("AE_WPN_UNHIDE",0x2a,0x11);
  EventList_RegisterSharedEvent("AE_MARINE_FOOTSTEP",0x2d,0x10);
  EventList_RegisterSharedEvent("AE_MARINE_RELOAD_SOUND_A",0x2e,0x10);
  EventList_RegisterSharedEvent("AE_MARINE_RELOAD_SOUND_B",0x2f,0x10);
  EventList_RegisterSharedEvent("AE_MARINE_RELOAD_SOUND_C",0x30,0x10);
  EventList_RegisterSharedEvent("AE_REMOVE_CLIENT_AIM",0x31,0x10);
  EventList_RegisterSharedEvent("AE_WPN_PLAYWPNSOUND",0x2b,0x11);
  EventList_RegisterSharedEvent("AE_FOOTSTEP_LEFT",0x32,0x11);
  EventList_RegisterSharedEvent("AE_FOOTSTEP_RIGHT",0x33,0x11);
  EventList_RegisterSharedEvent("AE_ATTACK_START",0x34,0x11);
  EventList_RegisterSharedEvent("AE_ATTACK_HIT",0x35,0x19);
  EventList_RegisterSharedEvent("AE_ATTACK_END",0x36,0x19);
  EventList_RegisterSharedEvent("AE_OPTIONAL_END",0x37,0x11);
  EventList_RegisterSharedEvent("AE_HIDE_WEAPON",0x38,0x11);
  EventList_RegisterSharedEvent("AE_SHOW_WEAPON",0x39,0x10);
  EventList_RegisterSharedEvent("AE_PICKUP_CLIPIN",0x3a,0x19);
  EventList_RegisterSharedEvent("AE_PICKUP_CHARGING",0x3b,0x19);
  EventList_RegisterSharedEvent("AE_PICKUP_FASSIST",0x3c,0x19);
  EventList_RegisterSharedEvent("AE_RELOAD_CLIPOUT",0x3d,0x19);
  EventList_RegisterSharedEvent("AE_RELOAD_CLIPIN",0x3e,0x19);
  EventList_RegisterSharedEvent("AE_RELOAD_EMPTY_CLIPOUT",0x3f,0x19);
  EventList_RegisterSharedEvent("AE_RELOAD_EMPTY_CLIPIN",0x40,0x19);
  EventList_RegisterSharedEvent("AE_RELOAD_EMPTY_CLIPIN2",0x41,0x19);
  EventList_RegisterSharedEvent("AE_RELOAD_SHELL_INSERT",0x42,9);
  EventList_RegisterSharedEvent("AE_RELOAD_PUMPEND",0x43,0x19);
  EventList_RegisterSharedEvent("AE_LOCK_STATE_CHANGED",0x44,1);
  EventList_RegisterSharedEvent("AE_TUG_INCAP",0x45,1);
  EventList_RegisterSharedEvent("AE_CHARGER_POUND_IMPACT",0x46,1);
  EventList_RegisterSharedEvent("AE_CHARGER_POUND_VOCALIZE",0x47,1);
  EventList_RegisterSharedEvent("AE_CHARGER_POUND_SOUND",0x48,1);
  EventList_RegisterSharedEvent("AE_DEFIBRILLATOR_SHOCK",0x49,9);
  EventList_RegisterSharedEvent("AE_HIT_HEAD_FRONT",0x4a,0x11);
  EventList_RegisterSharedEvent("AE_HIT_HEAD_BACK",0x4b,0x11);
  EventList_RegisterSharedEvent("AE_HIT_STOMACH",0x4c,0x11);
  EventList_RegisterSharedEvent("AE_HIT_CHEST",0x4d,0x11);
  EventList_RegisterSharedEvent("AE_HIT_BACK_UPPER",0x4e,0x11);
  EventList_RegisterSharedEvent("AE_HIT_BACK_LOWER",0x4f,0x11);
  EventList_RegisterSharedEvent("AE_HIT_SHOULDER_RIGHT_FRONT",0x50,0x11);
  EventList_RegisterSharedEvent("AE_HIT_SHOULDER_RIGHT_BACK",0x51,0x11);
  EventList_RegisterSharedEvent("AE_HIT_SHOULDER_LEFT_FRONT",0x52,0x11);
  EventList_RegisterSharedEvent("AE_HIT_SHOULDER_LEFT_BACK",0x53,0x11);
  EventList_RegisterSharedEvent("AE_HIT_LEG_RIGHT_FRONT",0x54,0x11);
  EventList_RegisterSharedEvent("AE_HIT_LEG_RIGHT_BACK",0x55,0x11);
  EventList_RegisterSharedEvent("AE_HIT_LEG_LEFT_FRONT",0x56,0x11);
  EventList_RegisterSharedEvent("AE_HIT_LEG_LEFT_BACK",0x57,0x11);
  EventList_RegisterSharedEvent("AE_HIT_ARM_RIGHT_SEVERED",0x58,0x11);
  EventList_RegisterSharedEvent("AE_HIT_ARM_LEFT_SEVERED",0x59,0x11);
  EventList_RegisterSharedEvent("AE_HIT_LEG_RIGHT_SEVERED",0x5a,0x11);
  EventList_RegisterSharedEvent("AE_HIT_LEG_LEFT_SEVERED",0x5b,0x11);
  EventList_RegisterSharedEvent("AE_HIT_FRONT",0x5c,0x11);
  EventList_RegisterSharedEvent("AE_HIT_BACK",0x5d,0x11);
  EventList_RegisterSharedEvent("AE_HIT_LEFT",0x5e,0x11);
  EventList_RegisterSharedEvent("AE_HIT_RIGHT",0x5f,0x11);
  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)