Created
June 9, 2017 01:56
-
-
Save hjhee/1887f9911dd4a5b4df562cffe7d5b5f1 to your computer and use it in GitHub Desktop.
allow changing sb_force_max_intensity without cheat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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