L L4D2node

_GLOBAL__sub_I_TongueAllowVoluntaryRelease

0x003b2e40 · 2411 bytes · unknown

Decompiled

undefined (0 params)

void _GLOBAL__sub_I_TongueAllowVoluntaryRelease(void)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  
  UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
  vec2_origin._0_4_ = 0;
  vec2_origin._4_4_ = 0;
  vec2_invalid._0_4_ = 0x7f7fffff;
  vec2_invalid._4_4_ = 0x7f7fffff;
  vec4_origin._0_4_ = 0;
  vec4_origin._4_4_ = 0;
  vec4_origin._8_4_ = 0;
  vec4_origin._12_4_ = 0;
  vec4_invalid._0_4_ = 0x7f7fffff;
  vec4_invalid._4_4_ = 0x7f7fffff;
  vec4_invalid._8_4_ = 0x7f7fffff;
  vec4_invalid._12_4_ = 0x7f7fffff;
  ConVar::ConVar((ConVar *)TongueAllowVoluntaryRelease,"tongue_allow_voluntary_release","0",0x4000,
                 "Can a Smoker let go with his tongue by clicking or turning away?");
  __cxa_atexit(ConVar::~ConVar,TongueAllowVoluntaryRelease,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueBendPointDeflection,"tongue_bend_point_deflection","5",0x4000,
                 "How far off the first obstacle the tongue bends.");
  __cxa_atexit(ConVar::~ConVar,TongueBendPointDeflection,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueBreakFromDamageAmount,"tongue_break_from_damage_amount","50",0x4000
                 ,"How much damage to the smoker makes him let go of his victim.");
  __cxa_atexit(ConVar::~ConVar,TongueBreakFromDamageAmount,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueConeStartTolerance,"tongue_cone_start_tolerance",".1",0x4000,
                 "How wide the cone is for a tongue hit.");
  __cxa_atexit(ConVar::~ConVar,TongueConeStartTolerance,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueVersusConeStartTolerance,"tongue_vs_cone_start_tolerance","0.015",
                 0x4000,"How wide the cone is for a tongue hit in versus.");
  __cxa_atexit(ConVar::~ConVar,TongueVersusConeStartTolerance,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueDebug,"tongue_debug","0",0x4000,"Print debug info for tongue");
  __cxa_atexit(ConVar::~ConVar,TongueDebug,&__dso_handle);
  ConVar::ConVar((ConVar *)TonguePlayerDroppingToGroundTime,"tongue_player_dropping_to_ground_time",
                 "1",0x4000,"How long after the tongue disconnects will a player need to wait.");
  __cxa_atexit(ConVar::~ConVar,TonguePlayerDroppingToGroundTime,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueDroppingToGroundTime,"tongue_dropping_to_ground_time","2",0x4000,
                 "A miss or a wall hit will wait this long before pulling back.");
  __cxa_atexit(ConVar::~ConVar,TongueDroppingToGroundTime,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueFlySpeed,"tongue_fly_speed","1000",0x4000,
                 "How fast a tongue flies through the air.");
  __cxa_atexit(ConVar::~ConVar,TongueFlySpeed,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueHealth,"tongue_health","100",0x4000,"Tongue health");
  __cxa_atexit(ConVar::~ConVar,TongueHealth,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueLOSForgivenessTime,"tongue_los_forgiveness_time","1.0",0x4000,
                 "A traveling tongue can lose LOS for this amount of time and still hit.");
  __cxa_atexit(ConVar::~ConVar,TongueLOSForgivenessTime,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueNoProgressChokeEarlyDelay,"tongue_no_progress_choke_early_delay",
                 "1.5",0x4000,
                 "We won\'t think about ground choking for this long after the hit. So this plus TongueNoProgressChokeTime equals the earliest start of a ground choke."
                );
  __cxa_atexit(ConVar::~ConVar,TongueNoProgressChokeEarlyDelay,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueNoProgressChokeEarlyAmbushDelay,
                 "tongue_no_progress_choke_early_ambush_delay","0.5",0x4000,
                 "Use a smaller delay if the smoker started choking us from behind. So this plus TongueNoProgressChokeTime equals the earliest start of a ground choke in the event of an ambush."
                );
  __cxa_atexit(ConVar::~ConVar,TongueNoProgressChokeEarlyAmbushDelay,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueNoProgressChokeTime,"tongue_no_progress_choke_time",".5",0x4000,
                 "If our victim doesn\'t make tongue_no_progress_tolerance progress towards in this time, start to hurt him."
                );
  __cxa_atexit(ConVar::~ConVar,TongueNoProgressChokeTime,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueNoProgressDamageInterval,"tongue_no_progress_damage_interval",".5",
                 0x4000,"How long of the victim making no progress until we start choking him.");
  __cxa_atexit(ConVar::~ConVar,TongueNoProgressDamageInterval,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueNoProgressBreakInterval,"tongue_no_progress_break_interval","10",
                 0x4000,"How long of the victim making no progress until we break the tongue.");
  __cxa_atexit(ConVar::~ConVar,TongueNoProgressBreakInterval,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueNoProgressTolerance,"tongue_no_progress_tolerance","25",0x4000,
                 "If our victim doesn\'t make this much progress in tongue_no_progress_release_time, start to hurt him."
                );
  __cxa_atexit(ConVar::~ConVar,TongueNoProgressTolerance,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueRange,"tongue_range","750",0x4000,
                 "How far a smoker can shoot his tongue.");
  __cxa_atexit(ConVar::~ConVar,TongueRange,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueUnbend,"tongue_unbend","1",0x4000,"Can the smoker tongue unbend?");
  __cxa_atexit(ConVar::~ConVar,TongueUnbend,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueVerticalChokeDot,"tongue_vertical_choke_dot","0",0x4000,
                 "DotProduct between tongue and vertical required to start choking.");
  __cxa_atexit(ConVar::~ConVar,TongueVerticalChokeDot,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueVerticalChokeHeight,"tongue_vertical_choke_height","40",0x4000,
                 "Need to have victim this high off ground to choke him.");
  __cxa_atexit(ConVar::~ConVar,TongueVerticalChokeHeight,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueVerticalChokeTimeOffGround,"tongue_vertical_choke_time_off_ground",
                 ".5",0x4000,"Need to have victim off ground for this long to choke him.");
  __cxa_atexit(ConVar::~ConVar,TongueVerticalChokeTimeOffGround,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueChokeDamageInterval,"tongue_choke_damage_interval","1",0x4000,
                 "How often the choke does damage.");
  __cxa_atexit(ConVar::~ConVar,TongueChokeDamageInterval,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueChokeDamageAmount,"tongue_choke_damage_amount","10",0x4000,
                 "How much damage the choke does.");
  __cxa_atexit(ConVar::~ConVar,TongueChokeDamageAmount,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueDragDamageAmount,"tongue_drag_damage_amount","3",0x4000,
                 "How much damage the tongue drag does.");
  __cxa_atexit(ConVar::~ConVar,TongueDragDamageAmount,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueReleaseFatiguePenalty,"tongue_release_fatigue_penalty","2500",
                 0x4000,"How much fatigue the victim gets when released, to slow him down.");
  __cxa_atexit(ConVar::~ConVar,TongueReleaseFatiguePenalty,&__dso_handle);
  ConVar::ConVar((ConVar *)TongueForceBreak,"tongue_force_break","0",0x4000,
                 "Force an existing attached tongue to break, for debugging");
  __cxa_atexit(ConVar::~ConVar,TongueForceBreak,&__dso_handle);
  puVar2 = (undefined4 *)g_pServerClassHead;
  g_CTongue_ClassReg._0_4_ = s_CTongue_00cd6aae;
  g_CTongue_ClassReg._4_4_ = DT_AbilityTongue::g_SendTable;
  g_CTongue_ClassReg._16_4_ = 0xffff;
  if ((undefined4 *)g_pServerClassHead == (undefined4 *)0x0) {
    g_pServerClassHead = g_CTongue_ClassReg;
    g_CTongue_ClassReg._8_4_ = 0;
  }
  else {
    puVar4 = *(undefined4 **)((int)g_pServerClassHead + 8);
    iVar1 = _V_stricmp(*(char **)g_pServerClassHead,"CTongue");
    puVar3 = (undefined4 *)g_pServerClassHead;
    if (iVar1 < 1) {
      if (puVar4 != (undefined4 *)0x0) {
        do {
          puVar3 = puVar4;
          iVar1 = _V_stricmp((char *)*puVar3,"CTongue");
          puVar4 = puVar3;
          if (0 < iVar1) goto LAB_003b3786;
          puVar4 = (undefined4 *)puVar3[2];
          puVar2 = puVar3;
        } while ((undefined4 *)puVar3[2] != (undefined4 *)0x0);
        puVar4 = (undefined4 *)0x0;
      }
LAB_003b3786:
      g_CTongue_ClassReg._8_4_ = puVar4;
      puVar2[2] = g_CTongue_ClassReg;
    }
    else {
      g_pServerClassHead = g_CTongue_ClassReg;
      g_CTongue_ClassReg._8_4_ = puVar3;
    }
  }
  SendTable::SendTable((SendTable *)DT_AbilityTongue::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_AbilityTongue::g_SendTable,&__dso_handle);
  DT_AbilityTongue::g_SendTableInit = ServerClassInit<DT_AbilityTongue::ignored>((ignored *)0x0);
  ability_tongue = &PTR_Create_00cd7ff0;
  puVar2 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar2)(puVar2,&ability_tongue,"ability_tongue");
  CTongue_DataDescInit::g_DataMapHolder = DataMapInit<CTongue>((CTongue *)0x0);
  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.



        
        

⚠ This function has no mangled symbol — it may be internal/static. The Linux gamedata field uses @-prefix symbol resolution which requires an exported mangled name. You'll need a Linux byte signature for this one (extract via extract_signature.java).


          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)