Skip to content

Commit

Permalink
Disable sm_override_pipe_size on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ldesgoui committed Dec 2, 2022
1 parent a45833a commit a550a5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripting/tf2-comp-fixes/override-pipe-size.sp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ static Handle g_call_CBaseEntity_SetCollisionBounds;
static Handle g_detour_CTFWeaponBaseGun_FirePipeBomb;

void OverridePipeSize_Setup(Handle game_config) {
if (GetOs(game_config) == Windows) {
CreateConVar("sm_override_pipe_size", "0", "NOT SUPPORTED ON WINDOWS", FCVAR_NOTIFY,
true, 0.0, true, 0.0);
return;
}

StartPrepSDKCall(SDKCall_Entity);

if (!PrepSDKCall_SetFromConf(game_config, SDKConf_Signature,
Expand Down

0 comments on commit a550a5e

Please sign in to comment.