View Single Post
Author Message
FlaminSarge
Veteran Member
Join Date: Jul 2010
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 - 832 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