L L4D2node

_GLOBAL__sub_I_sv_gravity

0x0037c440 · 2151 bytes · unknown

Decompiled

undefined (0 params)

void _GLOBAL__sub_I_sv_gravity(void)

{
  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;
  UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
  ConVar::ConVar((ConVar *)sv_gravity,"sv_gravity","800",0x2100,"World gravity.");
  __cxa_atexit(ConVar::~ConVar,sv_gravity,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_stopspeed,"sv_stopspeed","75",0x2102,
                 "Minimum stopping speed when on ground.");
  __cxa_atexit(ConVar::~ConVar,sv_stopspeed,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_noclipaccelerate,"sv_noclipaccelerate","5",0x2180);
  __cxa_atexit(ConVar::~ConVar,sv_noclipaccelerate,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_noclipspeed,"sv_noclipspeed","5",0x2180);
  __cxa_atexit(ConVar::~ConVar,sv_noclipspeed,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_noclipfriction,"sv_noclipfriction","4",0x2100,
                 "Friction during noclip move.");
  __cxa_atexit(ConVar::~ConVar,sv_noclipfriction,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_specaccelerate,"sv_specaccelerate","5",0x2180);
  __cxa_atexit(ConVar::~ConVar,sv_specaccelerate,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_specspeed,"sv_specspeed","3",0x2180);
  __cxa_atexit(ConVar::~ConVar,sv_specspeed,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_specnoclip,"sv_specnoclip","1",0x2180);
  __cxa_atexit(ConVar::~ConVar,sv_specnoclip,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_maxspeed,"sv_maxspeed","320",0x2102);
  __cxa_atexit(ConVar::~ConVar,sv_maxspeed,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_accelerate,"sv_accelerate","5",0x2102);
  __cxa_atexit(ConVar::~ConVar,sv_accelerate,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_airaccelerate,"sv_airaccelerate","10",0x2102);
  __cxa_atexit(ConVar::~ConVar,sv_airaccelerate,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_wateraccelerate,"sv_wateraccelerate","10",0x2102);
  __cxa_atexit(ConVar::~ConVar,sv_wateraccelerate,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_waterfriction,"sv_waterfriction","1",0x2102);
  __cxa_atexit(ConVar::~ConVar,sv_waterfriction,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_footsteps,"sv_footsteps","1",0x2102,"Play footstep sound for players")
  ;
  __cxa_atexit(ConVar::~ConVar,sv_footsteps,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_rollspeed,"sv_rollspeed","200",0x2102);
  __cxa_atexit(ConVar::~ConVar,sv_rollspeed,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_rollangle,"sv_rollangle","0",0x2102,"Max view roll angle");
  __cxa_atexit(ConVar::~ConVar,sv_rollangle,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_friction,"sv_friction","4",0x2102,"World friction.");
  __cxa_atexit(ConVar::~ConVar,sv_friction,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_bounce,"sv_bounce","0",0x2102,
                 "Bounce multiplier for when physically simulated objects collide with other objects."
                );
  __cxa_atexit(ConVar::~ConVar,sv_bounce,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_maxvelocity,"sv_maxvelocity","3500",0x2002,
                 "Maximum speed any ballistically moving object is allowed to attain per axis.");
  __cxa_atexit(ConVar::~ConVar,sv_maxvelocity,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_stepsize,"sv_stepsize","18",0x2102);
  __cxa_atexit(ConVar::~ConVar,sv_stepsize,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_skyname,"sv_skyname","sky_urb01",0x2080,
                 "Current name of the skybox texture");
  __cxa_atexit(ConVar::~ConVar,sv_skyname,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_backspeed,"sv_backspeed","0.6",0x2002,
                 "How much to slow down backwards motion");
  __cxa_atexit(ConVar::~ConVar,sv_backspeed,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_waterdist,"sv_waterdist","12",0x2002,
                 "Vertical view fixup when eyes are near water plane.");
  __cxa_atexit(ConVar::~ConVar,sv_waterdist,&__dso_handle);
  ConVar::ConVar((ConVar *)r_VehicleViewDampen,"r_VehicleViewDampen","1",0x6100);
  __cxa_atexit(ConVar::~ConVar,r_VehicleViewDampen,&__dso_handle);
  ConVar::ConVar((ConVar *)r_JeepViewDampenFreq,"r_JeepViewDampenFreq","7.0",0x6100);
  __cxa_atexit(ConVar::~ConVar,r_JeepViewDampenFreq,&__dso_handle);
  ConVar::ConVar((ConVar *)r_JeepViewDampenDamp,"r_JeepViewDampenDamp","1.0",0x6100);
  __cxa_atexit(ConVar::~ConVar,r_JeepViewDampenDamp,&__dso_handle);
  ConVar::ConVar((ConVar *)r_JeepViewZHeight,"r_JeepViewZHeight","10.0",0x6100);
  __cxa_atexit(ConVar::~ConVar,r_JeepViewZHeight,&__dso_handle);
  ConVar::ConVar((ConVar *)r_AirboatViewDampenFreq,"r_AirboatViewDampenFreq","7.0",0x6100);
  __cxa_atexit(ConVar::~ConVar,r_AirboatViewDampenFreq,&__dso_handle);
  ConVar::ConVar((ConVar *)r_AirboatViewDampenDamp,"r_AirboatViewDampenDamp","1.0",0x6100);
  __cxa_atexit(ConVar::~ConVar,r_AirboatViewDampenDamp,&__dso_handle);
  ConVar::ConVar((ConVar *)r_AirboatViewZHeight,"r_AirboatViewZHeight","0.0",0x6100);
  __cxa_atexit(ConVar::~ConVar,r_AirboatViewZHeight,&__dso_handle);
  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)