Raised This Month: $32 Target: $400
 8% 

[TF2] MvM - Make players 'ready' (v1.3, 9/6/2012)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
elfenlied ftw
Member
Join Date: Aug 2012
Plugin ID:
3218
Plugin Version:
1.3
Plugin Category:
Admin Commands
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Forces client(s) to become 'ready' to start the round. Same as a client pressing F4.
    Old 09-05-2012 , 20:22   [TF2] MvM - Make players 'ready' (v1.3, 9/6/2012)
    Reply With Quote #1

    This is a very simple plugin I wrote for Mann. vs Machine mode in TF2. If you play MvM, you'll probably find yourself sitting there waiting for someone to press F4 to start the round. And of course, they either don't know to press F4, don't care to, or the button doesn't work.

    This plugin allows you to force a player to 'ready up', or the entire team if desired. Though do be careful, as engineers obviously take longer to get ready. [img]http://img685.**************/img685/908/leave.gif[/img]




    CVARs
    mvmready_version - Plugin version.



    COMMANDs
    note: these commands can be used without the sm_* prefix
    sm_mvmready <#userid|name> <1=ready, 0=not> - Sets the target(s) to become ready. Requires GENERIC ADMIN flag. Used '@red' for targeting the entire team.
    sm_ready - Same as above, easier to type. Requested by "Vastrix"



    INSTALLATION INSTRUCTIONS
    Copy the mvmready.smx to the sourcemod plugins folder.



    CHANGELOG
    Quote:
    v1.1 - 1.3 9/6/2012
    • Replaced ClientCommand() with FakeClientCommand() <thanks Dr. McKay & ReFlexPoison >
    • Some code optimizations (bool cast with StringToInt())
    • Implemented ReplyToTargetError() < thanks again Dr.McKay >
    • Added "sm_ready" command by request. See details above.
    • removed COMMAND_FILTER_CONNECTED, shortened some buffers


    v1.0 9/5/2012
    • Initial Release


    CREDITS
    • Afro Priest - For making me write the plugin to begin with.
    • Dr. McKay - Info on FakeClientCommand(), and ReplyToTargetError().. and more.
    • ReFlexPoison - Info on FakeClientCommand()


    PLANS
    I have no future plans for this plugin, nor do I intend to take requests. May be some exceptions..



    NOTES/MISC
    1. This has been tested working with sourcemod v1.4.5-dev / metamod 1.8.7. Though it should work with earlier versions as well as its a very simple plugin.
    2. This is my first plugin for sourcemod. If there's anything that needs improving please let me know so I can learn.
    Attached Files
    File Type: sp Get Plugin or Get Source (mvmready.sp - 6678 views - 2.8 KB)

    Last edited by elfenlied ftw; 09-06-2012 at 19:12.
    elfenlied ftw is offline
     



    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 06:43.


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