Skip to content

Commit 5454ef5

Browse files
authored
Remove hardcoded kill list, suggest Stripper (#40)
1 parent 7e4fc25 commit 5454ef5

File tree

4 files changed

+17
-25
lines changed

4 files changed

+17
-25
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Yes, but not any more than other projects currently and for past years.
3737

3838
**Recommended:**
3939
* [Cleaner Extension](https://github.com/Accelerator74/Cleaner) (Suppresses console warnings)
40+
* [Stripper:Source](https://forums.alliedmods.net/showthread.php?t=39439) (Allows you to add/modify/removes entities from maps, recommended filter file included)
4041

4142
## Issue Rules
4243

addons/sourcemod/scripting/SurfTimer.sp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,15 +1564,6 @@ char g_szStyleAcronyms[][] =
15641564
"fs"
15651565
};
15661566

1567-
char EntityList[][] = // Disable entities that often break maps
1568-
{
1569-
"logic_timer",
1570-
"team_round_timer",
1571-
"logic_relay",
1572-
"player_weapon_strip",
1573-
"player_weaponstrip",
1574-
};
1575-
15761567
char RadioCMDS[][] = // Disable radio commands
15771568
{
15781569
"coverme", "takepoint", "holdpos", "regroup", "followme", "takingfire", "go", "fallback", "sticktog",
@@ -1769,14 +1760,6 @@ public void OnMapStart()
17691760
CreateTimer(180.0, AdvertTimer, INVALID_HANDLE, TIMER_FLAG_NO_MAPCHANGE | TIMER_REPEAT);
17701761

17711762
int iEnt;
1772-
for (int i = 0; i < sizeof(EntityList); i++)
1773-
{
1774-
while ((iEnt = FindEntityByClassname(iEnt, EntityList[i])) != -1)
1775-
{
1776-
AcceptEntityInput(iEnt, "Disable");
1777-
AcceptEntityInput(iEnt, "Kill");
1778-
}
1779-
}
17801763

17811764
// PushFix by Mev, George, & Blacky
17821765
// https://forums.alliedmods.net/showthread.php?t=267131

addons/sourcemod/scripting/surftimer/hooks.sp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -667,14 +667,6 @@ public void OnPlayerThink(int entity)
667667
public Action Event_OnRoundStart(Handle event, const char[] name, bool dontBroadcast)
668668
{
669669
int iEnt;
670-
for (int i = 0; i < sizeof(EntityList); i++)
671-
{
672-
while ((iEnt = FindEntityByClassname(iEnt, EntityList[i])) != -1)
673-
{
674-
AcceptEntityInput(iEnt, "Disable");
675-
AcceptEntityInput(iEnt, "Kill");
676-
}
677-
}
678670

679671
db_viewMapSettings();
680672

addons/stripper/global_filters.cfg

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
remove:
2+
{
3+
"classname" "logic_timer"
4+
}
5+
{
6+
"classname" "team_round_timer"
7+
}
8+
{
9+
"classname" "logic_relay"
10+
}
11+
{
12+
"classname" "player_weapon_strip"
13+
}
14+
{
15+
"classname" "player_weaponstrip"
16+
}

0 commit comments

Comments
 (0)