Raised This Month: $51 Target: $400
 12% 

[TF2] No Teleporters for Undisguised Enemies


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Plugin ID:
4345
Plugin Version:
14.0910.3
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Prevents undisguised players from using teleporters on the opposite team.
    Old 09-10-2014 , 06:21   [TF2] No Teleporters for Undisguised Enemies
    Reply With Quote #1

    As it says on the tin, this plugin simply stops undisguised players (presumably Spies) from using enemy teleporters. After all, dispensers are smart enough to not assist enemy spies who aren't disguised, or who are cloaked. Why shouldn't your teleporters be that smart as well?

    This plugin can be disabled by setting sm_notelesfordumbspies to "0". Enable it by setting the cvar to "1". Set it to "2" to additionally prevent cloaked spies from using enemy teleporters.

    This plugin supports automatic updating through Updater. Please consider installing Updater, if you haven't already. Automatic updating can be disabled by setting sm_notelesfordumbspies_update to "0". The plugin does NOT require Updater to function.

    Compiling the .sp requires these includes:As such, it does not compile here on the forums. Please download the SMX, or compile the SP yourself.

    If you like what you see here, please consider donating~
    Attached Files
    File Type: sp Get Plugin or Get Source (noTelesForDumbSpies.sp - 273 views - 1.7 KB)
    File Type: smx noTelesForDumbSpies.smx (5.3 KB, 288 views)
    __________________

    Last edited by ddhoward; 09-11-2014 at 00:38.
    ddhoward is offline
    WildCard65
    Veteran Member
    Join Date: Aug 2013
    Location: Canada
    Old 09-10-2014 , 10:25   Re: [TF2] No Teleporters for Undisguised Enemies
    Reply With Quote #2

    Quote:
    Originally Posted by ddhoward View Post
    dispensers are smart enough to not assist enemy spies who aren't disguised, or who are cloaked.
    That isn't entirely true. Dispensers don't help undisguised spies period, cloaked + disguised spies are still helped by enemy dispensers(Deadringer activate invis + disguise + standing on enemy dispenser = infinite deadringer cloaking)
    __________________
    WildCard65 is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 09-10-2014 , 10:39   Re: [TF2] No Teleporters for Undisguised Enemies
    Reply With Quote #3

    Just a comment: Wouldn't it be quicker to check the teleporter's team rather than getting the owner of the teleporter then getting their team? That'd also make it work on teleporters that are part of a map.

    Incidentally, as Wildcard65 already pointed out, dispensers DO work while cloaked (friendly regardless of disguise, enemy only when you're disguised as their team*), so you might want to not block cloaked players.

    * This is noted because Payload carts act differently and won't help friendly players disguised as enemies. As least I don't think the cartdispenser does, I know the trigger_capture_area doesn't.

    Edit:
    Pedantic note: Plugin_Changed would convey more meaning than Plugin_Handled in this plugin.
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 09-10-2014 at 10:47.
    Powerlord is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 09-11-2014 , 00:38   Re: [TF2] No Teleporters for Undisguised Enemies
    Reply With Quote #4

    Updated.
    __________________
    ddhoward is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 01:16.


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