Raised This Month: $168 Target: $400
 42% 

[TF2] Canteen Commands


Post New Thread Reply   
 
Thread Tools Display Modes
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:
16 
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 - 250 views - 5.9 KB)
File Type: smx tf_canteencmds.smx (6.3 KB, 414 views)
__________________
Bread EOTL GunMettle Invasion will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc. (+SaxtonHale)
Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 11-09-2013 at 19:09.
FlaminSarge is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-02-2013 , 23:56   Re: [TF2] Canteen Commands
Reply With Quote #2

Let me know of things that don't work.
__________________
Bread EOTL GunMettle Invasion will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc. (+SaxtonHale)
Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-03-2013 , 02:34   Re: [TF2] Canteen Commands
Reply With Quote #3

Redownload the plugin, there was a small error in formatting a string. Didn't bump version number.
__________________
Bread EOTL GunMettle Invasion will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc. (+SaxtonHale)
Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: Soviet Union
Old 11-03-2013 , 04:57   Re: [TF2] Canteen Commands
Reply With Quote #4

sm_unlimitedcanteen maybe?
__________________
Leonardo is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-06-2013 , 19:14   Re: [TF2] Canteen Commands
Reply With Quote #5

Maybe, though I think AdvancedInfiniteAmmo covers that already.
__________________
Bread EOTL GunMettle Invasion will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc. (+SaxtonHale)
Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
w1200441
Senior Member
Join Date: Dec 2011
Old 11-06-2013 , 23:46   Re: [TF2] Canteen Commands
Reply With Quote #6

Is this works in non-MvM server?
w1200441 is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-09-2013 , 19:09   Re: [TF2] Canteen Commands
Reply With Quote #7

If you have a Canteen equipped, yes.
__________________
Bread EOTL GunMettle Invasion will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc. (+SaxtonHale)
Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 11-10-2013 , 22:00   Re: [TF2] Canteen Commands
Reply With Quote #8

can I use this for saxton hale?

edit: i give my players uber and other powerups but pressing H doesn't activate the powerups?
__________________

Last edited by nergal; 11-12-2013 at 22:16.
nergal is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-13-2013 , 09:31   Re: [TF2] Canteen Commands
Reply With Quote #9

May want to give the upgrades slightly friendlier names, as they aren't consistent (~valve~).
__________________
asherkin is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-19-2013 , 19:39   Re: [TF2] Canteen Commands
Reply With Quote #10

Planned shortcuts include "uber", "crit", "ammo", "upgrade", and "build". Recall is short enough that it doesn't really need one.

*shrug*
__________________
Bread EOTL GunMettle Invasion will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc. (+SaxtonHale)
Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge 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 16:12.


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