Raised This Month: $ Target: $400
 0% 

[TF2] Auto backstab


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thediode
Junior Member
Join Date: Apr 2012
Plugin ID:
3118
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Any administrator with the kick flag can force specific players to automatically backstab enemies
    Old 07-27-2012 , 23:14   [TF2] Auto backstab
    Reply With Quote #1

    Auto backstab

    Description:
    Any administrator with the kick flag can force specific players to automatically backstab enemies.


    Admin commands:
    -autobackstab_set <#userid|name> [on|off]: Toggles automatic backstabs for a specific client.


    ConVars:
    -autobackstab_enabled (Default 1): Enable/disable autobackstab completely.
    -autobackstab_allowwhiletaunting (Default 0): Enable/disable getting autobackstabs while taunting or stunned.


    Installation:
    Place autobackstab.smx into the addons/sourcemod/plugins folder, and start your server. Use the autobackstab_set to give players automatic backstabs.


    Changelog:
    Quote:
    Version 1.0 (7/27/2012):
    -Initial release.
    Version 1.1 (7/28/2012):
    -Administrators with the kick flag can now enable/disable automatic backstabs for specific players.
    -Players who have been given a Knife using TF2Items will now properly autobackstab players.
    Attached Files
    File Type: sp Get Plugin or Get Source (autobackstab.sp - 3662 views - 2.7 KB)

    Last edited by DarthNinja; 12-31-2012 at 04:50. Reason: Status -> reviewed
    thediode is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 07-27-2012 , 23:31   Re: [TF2] Auto backstab for admins
    Reply With Quote #2

    Would you possibly make so you can just toggle this on/off per player rather than it just always being on for admins please? Otherwise cool plugin though.

    Last edited by Sreaper; 07-27-2012 at 23:31.
    Sreaper is offline
    thediode
    Junior Member
    Join Date: Apr 2012
    Old 07-27-2012 , 23:48   Re: [TF2] Auto backstab for admins
    Reply With Quote #3

    Quote:
    Originally Posted by Sreaper View Post
    Would you possibly make so you can just toggle this on/off per player rather than it just always being on for admins please? Otherwise cool plugin though.
    Thanks for the idea, I'll get on that tomorrow morning
    thediode is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 07-28-2012 , 00:21   Re: [TF2] Auto backstab for admins
    Reply With Quote #4

    Quote:
    Originally Posted by thediode View Post
    Thanks for the idea, I'll get on that tomorrow morning :P
    Thanks! I look forward to it! :D
    Sreaper is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 12-31-2012 , 04:50   Re: [TF2] Auto backstab
    Reply With Quote #5

    You should cache
    PHP Code:
    new ReadyOffset FindSendPropOffs("CTFKnife""m_bReadyToBackstab"); 
    and your cvars.

    PHP Code:
    EnabledPlayers[MAXPLAYERS
    Should be
    PHP Code:
    EnabledPlayers[MAXPLAYERS+1
    It might be good to do more caching or otherwise eliminate some of the resource usage in OnPlayerRunCmd. Eg, cache each player's class and ignore non-spies.
    __________________
    DarthNinja 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 04:02.


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