AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] [Engineer] Teleporter Filter (https://forums.alliedmods.net/showthread.php?t=285036)

nergal 07-09-2016 20:50

[TF2] [Engineer] Teleporter Filter
 
1 Attachment(s)
Sometimes we're playing Engineer and that damn Scout takes the Teleporter over the Medic or Heavy.

I was playing on a pub and I had 4 bad snipers on my team and I really wished they could switch classes. Another man overheard me bitching about said 4 sniper and blurted out "if only you could filter teleporters..."

Little did he know that I code plugins for tf2 :twisted:

Thus, I present the Teleporter Filter!

this plugin allows Engineers to filter who can take their teleporters whether by name or by class.

Commands list
PHP Code:

sm_admin_telefilterresetan Admin commandforcefully resets player's Teleporter Filter.
sm_telefilter: let'
s you filter players by name or class from using your teleporters.
sm_resettelefilterLet's you reset your Teleporter Filter. 

For the sake of preventing trolling or griefing, I'd added some precautions to the plugin.

One precaution is that Engineers cannot block over 50% (by default, is a cvar) of their team

Another precaution is that Admins can forcefully reset any or all Engineer tele filters back to nothing.

Example usage: "!telefilter scouts" - this command will block all the scouts on your team from using your teleporter
another one: "!telefilter asshole" - this will block the player named asshole from using your teleporter

Cvars
PHP Code:

telefilter_enabled "1.0"
telefilter_blockpercentage "0.5" 



All times are GMT -4. The time now is 22:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.