From e61e46d672a718b6ddf07f73eb035527fff502da Mon Sep 17 00:00:00 2001 From: Katsute <58778985+Katsute@users.noreply.github.com> Date: Wed, 29 May 2024 21:41:03 -0400 Subject: [PATCH] cleanup --- .github/workflows/release.yml | 13 ------------ TF100.sp | 40 +---------------------------------- 2 files changed, 1 insertion(+), 52 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f7faec5..1a5bd43 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,19 +22,6 @@ jobs: - name: Compile Plugin run: spcomp -i addons/sourcemod/include TF100.sp - # - name: Prepare Files - # run: |- - # mkdir addons/sourcemod/scripting - # mv TF100.smx addons/sourcemod/scripting - # mkdir addons/sourcemod/gamedata - # mv tf2.100.txt addons/sourcemod/gamedata - - # - name: Deploy to GitHub Releases - # uses: AButler/upload-release-assets@v2.0.2 - # with: - # files: "addons/*;item_whitelist.txt" - # repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Deploy to GitHub Releases uses: AButler/upload-release-assets@v2.0.2 with: diff --git a/TF100.sp b/TF100.sp index 2166519..607bc5c 100644 --- a/TF100.sp +++ b/TF100.sp @@ -6,8 +6,6 @@ #include #include -// ConVar mp_tournament; - static const int len = 32; static const char entities[32][] = { @@ -37,7 +35,6 @@ static const char entities[32][] = { "move_rope", "point_spotlight", "prop_physics_multiplayer", - // "prop_physics_override", // payload "prop_physics_respawnable", "prop_physics", "prop_ragdoll", @@ -134,23 +131,6 @@ public void OnPluginStart(){ // Map Entities for(int i = 0; i < len; i++) DeleteEntities(entities[i]); - - // // Whitelist Patch https://forums.alliedmods.net/showthread.php?t=346702 - - // mp_tournament = FindConVar("mp_tournament"); - // mp_tournament.Flags &= ~FCVAR_NOTIFY; - - // Handle gamedata = LoadGameConfigFile("tf2.100"); - - // // broken ↓ - // Handle hookReload = DHookCreateFromConf(gamedata, "ReloadWhitelist"); - // DHookEnableDetour(hookReload, false, TournamentEnable); - // DHookEnableDetour(hookReload, true, TournamentDisable); - - // // broken ↓ - // Handle hookLoadout = DHookCreateFromConf(gamedata, "GetLoadoutItem"); - // DHookEnableDetour(hookLoadout, false, TournamentEnable); - // DHookEnableDetour(hookLoadout, true, TournamentDisable); } public void OnEntityCreated(int entity, const char[] classname){ @@ -159,14 +139,6 @@ public void OnEntityCreated(int entity, const char[] classname){ DeleteEntity(entity); return; } - - // doesn't work b/c model hasn't been set yet - // if(StrEqual(classname, "item_healthkit_small") || StrEqual(classname, "item_healthkit_medium")){ - // char model[256]; - // GetEntPropString(entity, Prop_Data, "m_ModelName", model, 256); - // if(!StrContains(model, "plate")) - // DeleteEntity(entity); - // } } public void DeleteEntity(const int entity){ @@ -178,14 +150,4 @@ public void DeleteEntities(const char[] classname){ int entity = -1; while((entity = FindEntityByClassname(entity, classname)) != -1) DeleteEntity(entity); -} - -// MRESReturn TournamentEnable(int entity, DHookReturn hReturn) { -// mp_tournament.SetBool(true, true, false); -// return MRES_Ignored; -// } - -// MRESReturn TournamentDisable(int entity, DHookReturn hReturn) { -// mp_tournament.SetBool(false, true, false); -// return MRES_Ignored; -// } \ No newline at end of file +} \ No newline at end of file