Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Oct 31, 2023
1 parent bdeba2c commit 324a6c5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
- name: Deploy to GitHub Releases
uses: AButler/[email protected]
with:
files: "TF100.smx;TF100.txt;whitelist.txt"
files: "TF100.smx;tf2.100.txt;whitelist.txt"
repo-token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
9 changes: 6 additions & 3 deletions TF100.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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);
}
File renamed without changes.
File renamed without changes.

0 comments on commit 324a6c5

Please sign in to comment.