This is a little plugin I made for my server and finally polished up a bit to upload to here. The goal of this plugin is to let you just have some fun while playing a non serious match of TF2. It allows you to change the value of a few locked cvars in TF2. With this plugin you can enable or disable friendly fire, alter the gravity, change the respawn timer, and enable or disable alltalk. (Alltalk isnt a locked cvar, but its useful to allow an admin to turn it on or off for fun games without giving them access to alter other cvars)
All of the commands are added to the admin menu under the Server Commands menu. (If your looking at the sourcecode and wondering why I call it fun_commands, thats because its under a custom menu on my server and I just changed the line that defines fun_commands) You can enable or disable friendly fire and alltalk, as well as select from 5 values for gravity or respawn times.
The commands added with this plugin are below. They all have an access flag of custom 1:
sm_svgrav <gravity>
Sets the gravity in the game to <gravity>. 800 is the default value, lower gravity allows you to jump much higher.
sm_svff <1/0>
Turns friendly fire on or off. Now you can shoot your team! Some things to note, you cant shoot engy buildings, pyro flames wont hurt team mates, and spys still wont show blood when you shoot them while disguised (but your team mates will
)
sm_svalltalk <1/0>
Turns alltalk on or off. Can be fun to turn it on when your having a fun match.
sm_mprst <time>
Alters the respawn times. Setting this to 0 will give an instant respawn. A value lower than 10 will respawn faster than normal, a value above 10 will respawn slower than normal. The map your playing will also effect how fast you spawn if this is set to anything other than 0. So dont set this to 6 thinking that everybody will allways spawn after 6 seconds, they wont. This seems to also reset to the default value of 10 after a map change.
Hope somebody finds this useful. Let me know if there are any other commands you would like added. Also, please let me know if you find any problems with it.