View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-29-2011 , 04:13   [TF2] Set Player Class
Reply With Quote #1

[TF2] Set Player Class
Version 1.0.1




Description:
This will force a client to instantly switch to another class. They will not die and their items will remain the same for their previous class.
This as you may expect allows for some pretty funny screenshots.

For Example...




Commands:
  • sm_setplayerclass <client> [class]
    • Class can be left blank for a random choice

Cvars:
  • sm_setplayerclass_version
    • Plugin Version
Install Instructions:
  1. Place SetClass.smx into your addons/sourcemod/plugins/ folder.
Notes:
  • This is not exactly the same as This Plugin. Mine does not refresh items so you can have a scout loadout on a heavy as pictured above.
    I was not aware of the above plugin when I threw this together.
  • This plugin is intended more for fun then for any practical value.

Version History:
  • V1.0.0
    • Initial Release
  • V1.0.1
    • Added fix for client entering an invalid class.
Total downloads as prior to last edit: 48
Attached Files
File Type: sp Get Plugin or Get Source (SetClass.sp - 3785 views - 2.1 KB)
__________________

Last edited by DarthNinja; 10-31-2011 at 07:36.
DarthNinja is offline