Skip to content

Instantly share code, notes, and snippets.

@hjhee
Created June 9, 2017 01:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hjhee/1887f9911dd4a5b4df562cffe7d5b5f1 to your computer and use it in GitHub Desktop.
Save hjhee/1887f9911dd4a5b4df562cffe7d5b5f1 to your computer and use it in GitHub Desktop.
allow changing sb_force_max_intensity without cheat
#include <sourcemod>
#define PLUGIN_VERSION "0.0.1"
public Plugin myinfo={
name="L4D2 force_max_intensity",
author="hjhee",
description="Allow changing sb_force_max_intensity without cheat",
version=PLUGIN_VERSION,
url="None"
}
public OnPluginStart(){
int flags=GetCommandFlags("sb_force_max_intensity");
SetCommandFlags("sb_force_max_intensity", flags & ~FCVAR_CHEAT);
// PrintToServer("flags: %d", flags);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment