diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a80009..57dda74 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,5 +31,5 @@ jobs: - name: Deploy to GitHub Releases uses: AButler/upload-release-assets@v2.0.2 with: - files: "TF100.smx;TF100.txt;whitelist.txt" + files: "TF100.smx;tf2.100.txt;whitelist.txt" repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index c269dbc..a4dc41e 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ Requires [SourceScramble](https://github.com/nosoop/SMExt-SourceScramble) +Requires [SourceMod](https://www.sourcemod.net/) 1.12 or higher + +Start using `srcds.exe -console -game tf +randommap -unrestricted_maxplayers 100 +maxplayers 100 -nocrashdialog -timeout 0 -refreshrate 30` + [![Creative Commons License](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-nc-sa/4.0/) Licensed under [CC BY-NC-SA 4.0](https://github.com/KatsuteTF/TF100/blob/main/LICENSE) \ No newline at end of file diff --git a/TF100.sp b/TF100.sp index 62f92c4..5cd1244 100644 --- a/TF100.sp +++ b/TF100.sp @@ -48,6 +48,9 @@ public void OnPluginStart(){ FindConVar("net_maxfragments").SetInt(1260); FindConVar("net_maxroutable").SetInt(1260); + FindConVar("mp_ik").SetBool(false); + FindConVar("sv_lagflushbonecache").SetBool(false); + // Edicts FindConVar("sv_lowedict_action").SetInt(4); FindConVar("sv_lowedict_threshold").SetInt(32); @@ -97,7 +100,7 @@ public void OnPluginStart(){ DeleteEntities("point_spotlight"); // Whitelist Patch https://github.com/sapphonie/tf2rue - GameData gamedata = LoadGameConfigFile("TF100"); // https://github.com/sapphonie/tf2rue/blob/main/gamedata/tf2.rue.txt + GameData gamedata = LoadGameConfigFile("tf2.100"); // https://github.com/sapphonie/tf2rue/blob/main/gamedata/tf2.rue.txt if(gamedata == null){ SetFailState("Failed to load TF100 gamedata"); }else{ @@ -133,7 +136,7 @@ public void DeleteEntity(const int entity){ } public void DeleteEntities(const char[] classname){ - int entity; - while((entity = FindEntityByClassname(entity, "classname")) != -1) + int entity = -1; + while((entity = FindEntityByClassname(entity, classname)) != -1) DeleteEntity(entity); } \ No newline at end of file diff --git a/whitelist.txt b/item_whitelist.txt similarity index 100% rename from whitelist.txt rename to item_whitelist.txt diff --git a/TF100.txt b/tf2.100.txt similarity index 100% rename from TF100.txt rename to tf2.100.txt