Skip to content

Commit

Permalink
Add AutoExecConfig support (#302)
Browse files Browse the repository at this point in the history
By default all new convars will not added to already exist config files. This custom include fix this pretty annoying and confusing "bug".
  • Loading branch information
Bara authored Sep 15, 2021
1 parent 76fae79 commit eaedb05
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 100 deletions.
1 change: 1 addition & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
wget https://raw.githubusercontent.com/KyleSanderson/SteamWorks/master/Pawn/includes/SteamWorks.inc -P $INCLUDE_PATH
wget https://raw.githubusercontent.com/JoinedSenses/SourceMod-IncludeLibrary/master/include/smjansson.inc -P $INCLUDE_PATH
wget https://raw.githubusercontent.com/peace-maker/DHooks2/dynhooks/sourcemod_files/scripting/include/dhooks.inc -P $INCLUDE_PATH
wget https://github.com/Impact123/AutoExecConfig/raw/development/autoexecconfig.inc -P $INCLUDE_PATH
git clone -b transitional_syntax https://github.com/bcserv/smlib.git
mv smlib/scripting/include/* $INCLUDE_PATH
Expand Down
4 changes: 1 addition & 3 deletions addons/sourcemod/scripting/SurfTimer.sp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <geoip>
#include <basecomm>
#include <colorvariables>
#include <autoexecconfig>
#undef REQUIRE_EXTENSIONS
#include <clientprefs>
#undef REQUIRE_PLUGIN
Expand Down Expand Up @@ -2629,9 +2630,6 @@ public void OnPluginStart()
db_setupDatabase();
CreateCommandsNewMap();

// exec surftimer.cfg
AutoExecConfig(true, "surftimer");

// mic
g_ownerOffset = FindSendPropInfo("CBaseCombatWeapon", "m_hOwnerEntity");
g_ragdolls = FindSendPropInfo("CCSPlayer", "m_hRagdoll");
Expand Down
Loading

0 comments on commit eaedb05

Please sign in to comment.