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

TF2 Weapons Locker OnTheGo (Updated 9/26/2008)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
the_reverend
Junior Member
Join Date: Aug 2008
Plugin ID:
542
Plugin Version:
1.1.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    55 
    Plugin Description:
    Provides ammo, health, metal, & uber commands for both players & admins
    Old 09-09-2008 , 00:09   TF2 Weapons Locker OnTheGo (Updated 9/26/2008)
    Reply With Quote #1

    Description

    This plugin gives both admins & players to ability to reload ammo, recharge health, recharge metal, and give instant Ubers. There are other plugins out there that perform similar functions, but they either lack some of the included functions or they include more features than desired. I just wanted to make one that was all inclusive without any speciality. This plugin will probably best serve achievement & fun servers, but can also be used on normal pub boxes if one is mischievous.

    Convars


    sm_weaponslocker_enable 0/1 - Enables/Disables players abilities to use console or chat commands. Default: 0


    Commands

    ** Player commands to be used in chat with a ! or / **
    sm_ammo - Fully reloads ammo and clip on a per class basis
    sm_health - Restores 100 percent health on a per class basis
    sm_metal - Gives Engineers 200 metal
    sm_uber - Gives Medics an immediate ubercharge

    ** Admin commands to be used console - Requires SLAY privledges**
    sm_giveammo <target> - Fully reloads the targets ammo & clip
    sm_givehealth <target> <amount> - Sets the targets health to the specified amount. (1-500)
    sm_givemetal <target> <amount> - Sets the targeted Engi's metal to the specified amount. (1-200)
    sm_giveuber <target> <amount> - Sets the targeted Medic's ubercharge meter to the specified amount. (1-100)


    Installation

    Put weaponslocker.smx in addons\sourcemod\plugins\


    Changelog

    Version 1.1.0 - 09.26.2008
    - Cleaned up plugin error handling
    - Fixed a bug that sets sniper SMG ammo to zero on sm_giveammo
    - Added the requirement for SLAY access to admin commands
    - Added logging of admin commands
    - Added Convar to disable user console & chat commands

    Version 1.0.0 - 09.08.2008
    - Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (weaponslocker.sp - 4095 views - 10.0 KB)

    Last edited by the_reverend; 09-29-2008 at 14:36. Reason: Version 1.1.0 Release
    the_reverend is offline
    MaKTaiL
    Senior Member
    Join Date: Jul 2008
    Location: Brazil
    Old 09-09-2008 , 00:18   Re: TF2 Weapons Locker OnTheGo
    Reply With Quote #2

    There is a plugin that does the same thing and more called TF2 Jump Mode made by The JCS: http://forums.alliedmods.net/showthread.php?t=76080. In this plugin you can disable each function depending of your needs. This plugin doesn't have instant uber thow.

    The Jump Mode plugin has too many commands. Thats is why there will be some people that will want your plugin because it is easy to manage.

    And a question: Why this plugin is called Weapons Locker? The plugin doesn't lock weapons and it provides instant uber! Completly different things.

    Last edited by MaKTaiL; 09-09-2008 at 07:56.
    MaKTaiL is offline
    OziOn
    Senior Member
    Join Date: Jan 2008
    Old 09-09-2008 , 05:02   Re: TF2 Weapons Locker OnTheGo
    Reply With Quote #3

    I think by "Weapon Locker" he is referring to the medicine/ammo cabinets that are found in the spawn rooms.
    Nice plugin. Useful for when you need some achievements ;)
    __________________

    OziOn is offline
    MaKTaiL
    Senior Member
    Join Date: Jul 2008
    Location: Brazil
    Old 09-09-2008 , 07:53   Re: TF2 Weapons Locker OnTheGo
    Reply With Quote #4

    Quote:
    Originally Posted by OziOn View Post
    I think by "Weapon Locker" he is referring to the medicine/ammo cabinets that are found in the spawn rooms.
    Nice plugin. Useful for when you need some achievements ;)
    Hmmm... Yeah, you are right!

    The plugin is very good actually.
    MaKTaiL is offline
    JazzCP
    Member
    Join Date: Aug 2008
    Old 09-09-2008 , 15:14   Re: TF2 Weapons Locker OnTheGo
    Reply With Quote #5

    Can you make some kind of CVAR like:

    sm_locker_admin

    0 for 'anyone can use these commands' and
    1 for 'admins only (or only admins with the flag for kicking)'
    JazzCP is offline
    the_reverend
    Junior Member
    Join Date: Aug 2008
    Old 09-09-2008 , 17:23   Re: TF2 Weapons Locker OnTheGo
    Reply With Quote #6

    Quote:
    Originally Posted by JazzCP View Post
    Can you make some kind of CVAR like:

    sm_locker_admin

    0 for 'anyone can use these commands' and
    1 for 'admins only (or only admins with the flag for kicking)'
    Absolutely, I'll put that on my ToDo list and try to get it done this week. My real job is eating up time right now.
    the_reverend is offline
    Arg!
    Veteran Member
    Join Date: Jul 2008
    Location: Australia
    Old 09-09-2008 , 20:42   Re: TF2 Weapons Locker OnTheGo
    Reply With Quote #7

    Quote:
    Originally Posted by the_reverend View Post
    ** Admin commands to be used console **
    sm_giveammo <target> - Fully reloads the targets ammo & clip
    sm_givehealth <target> <amount> - Sets the targets health to the specified amount. (1-500)
    sm_givemetal <target> <amount> - Sets the targeted Engi's metal to the specified amount. (1-200)
    sm_giveuber <target> <amount> - Sets the targeted Medic's ubercharge meter to the specified amount. (1-100)
    From reading the code, these commands are normal console cmds and theres no admin check so any player can run them.

    Also, there are no ReplyToCommands when a command 'errors' eg returns Plugin_Handled on bad command parameters or invalid states and nothing appears to be logged to the sourcemod logs.

    Also again, the sm_givehealth command does not use the class specific max health function you already have in there.
    __________________

    Last edited by Arg!; 09-09-2008 at 20:50.
    Arg! is offline
    the_reverend
    Junior Member
    Join Date: Aug 2008
    Old 09-10-2008 , 16:48   Re: TF2 Weapons Locker OnTheGo
    Reply With Quote #8

    Quote:
    Originally Posted by Arg! View Post
    From reading the code, these commands are normal console cmds and theres no admin check so any player can run them.

    Also, there are no ReplyToCommands when a command 'errors' eg returns Plugin_Handled on bad command parameters or invalid states and nothing appears to be logged to the sourcemod logs.

    Also again, the sm_givehealth command does not use the class specific max health function you already have in there.

    Thanks for the help Arg! I've found a couple of bugs aside from the above and hope to have them all fixed in the next version.
    the_reverend is offline
    dotISO
    Member
    Join Date: May 2008
    Old 09-12-2008 , 15:45   Re: TF2 Weapons Locker OnTheGo
    Reply With Quote #9

    Instead of making them RegConsoleCmd, can't you make them AdminConsoleCmd (I think). This way, only admins can use it.
    dotISO is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 09-12-2008 , 15:58   Re: TF2 Weapons Locker OnTheGo
    Reply With Quote #10

    Quote:
    Originally Posted by dotISO View Post
    Instead of making them RegConsoleCmd, can't you make them AdminConsoleCmd (I think). This way, only admins can use it.
    RegAdminCmd
    bl4nk is offline
    Reply


    Thread Tools
    Display Modes

    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 13:57.


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