L L4D2node

CChangeDifficultyIssue::ListIssueDetails

0x00a04bd0 · 427 bytes · __thiscall

_ZN22CChangeDifficultyIssue16ListIssueDetailsEP11CBasePlayer

Decompiled

undefined (2 params)

/* CChangeDifficultyIssue::ListIssueDetails(CBasePlayer*) */

void __thiscall
CChangeDifficultyIssue::ListIssueDetails(CChangeDifficultyIssue *this,CBasePlayer *param_1)

{
  undefined4 uVar1;
  int in_GS_OFFSET;
  char local_60 [64];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(sv_vote_issue_change_difficulty_allowed._28_4_ + 0x30) != 0) {
    uVar1 = CBaseIssue::GetTypeString((CBaseIssue *)this);
    V_snprintf(local_60,0x40,"callvote %s Impossible\n",uVar1);
    ClientPrint(param_1,2,local_60,(char *)0x0,(char *)0x0,(char *)0x0,(char *)0x0);
    uVar1 = CBaseIssue::GetTypeString((CBaseIssue *)this);
    V_snprintf(local_60,0x40,"callvote %s Expert\n",uVar1);
    ClientPrint(param_1,2,local_60,(char *)0x0,(char *)0x0,(char *)0x0,(char *)0x0);
    uVar1 = CBaseIssue::GetTypeString((CBaseIssue *)this);
    V_snprintf(local_60,0x40,"callvote %s Hard\n",uVar1);
    ClientPrint(param_1,2,local_60,(char *)0x0,(char *)0x0,(char *)0x0,(char *)0x0);
    uVar1 = CBaseIssue::GetTypeString((CBaseIssue *)this);
    V_snprintf(local_60,0x40,"callvote %s Normal\n",uVar1);
    ClientPrint(param_1,2,local_60,(char *)0x0,(char *)0x0,(char *)0x0,(char *)0x0);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

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)