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

[TF2] Canteen Commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
FlaminSarge
Veteran Member
Join Date: Jul 2010
Plugin ID:
3957
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
Servers with this Plugin:
1 
Plugin Description:
A set of commands for messing with TF2's Powerup Canteens
Old 11-02-2013 , 23:55   [TF2] Canteen Commands
Reply With Quote #1

Allows you to set the type of canteen and the number of charges on the canteen, for any player's canteen. Works in any gamemode, as long as the player has a canteen equipped.

Requires TF2Attributes.

Commands
sm_setcanteen <target> <charges> [powerup] - Default "cheats" access. Sets the number of charges on <target>'s canteen to <charges>. The optional [powerup] parameter will remove all powerups from the canteen, then apply the specified powerup to the canteen.
sm_addcanteen <target> <powerup> - Default "cheats" access. Adds a powerup to a canteen without removing any of the other powerups on it. Yes, you can make a "critboost + ubercharge" canteen, by first using setcanteen for one powerup then using addcanteen for another powerup.

Valid powerups are 'recall', 'ubercharge', 'critboost', 'building instant upgrade', and 'refill_ammo'.

ConVars
tf_canteencommands_version - Ignore this, and don't touch it. Version cvar.

Changelog
Code:
1.0 - 11/02/2013
*Initial release
To-Do
*More flexible access stuff (e.g. @me override, or something)

Previous plugin views: 3 + 5 .sp
Attached Files
File Type: sp Get Plugin or Get Source (tf_canteencmds.sp - 833 views - 5.9 KB)
File Type: smx tf_canteencmds.smx (6.3 KB, 1064 views)
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 11-09-2013 at 19:09.
FlaminSarge 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 14:09.


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