AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Set Player Class (https://forums.alliedmods.net/showthread.php?t=170803)

DarthNinja 10-29-2011 04:13

[TF2] Set Player Class
 
1 Attachment(s)
[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...

http://content.screencast.com/users/...10-29_0411.png http://content.screencast.com/users/...04/pyrovey.png


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

DarthNinja 10-29-2011 04:19

Re: [TF2] Set Player Class
 
~Reserved~

Snaggle 10-29-2011 12:59

Re: [TF2] Set Player Class
 
Awesome. I use the plugin you linked to but this one can be used with it for fun!

Sreaper 10-29-2011 15:14

Re: [TF2] Set Player Class
 
Nice work, thanks!

imoda 10-29-2011 20:54

Re: [TF2] Set Player Class
 
Seems to be crashing clients (not the server) when 'undefined.cfg not present; not executing;'

DarthNinja 10-30-2011 21:19

Re: [TF2] Set Player Class
 
Quote:

Originally Posted by imoda (Post 1586104)
Seems to be crashing clients (not the server) when 'undefined.cfg not present; not executing;'

Hmm, I haven't seen that issue. (Also I don't have that config).
Can you provide any more info?

imoda 10-30-2011 23:14

Re: [TF2] Set Player Class
 
Quote:

Originally Posted by DarthNinja (Post 1586879)
Hmm, I haven't seen that issue. (Also I don't have that config).
Can you provide any more info?

It's only happened when using 'random' or any other non class name, ie

Code:

sm_setplayerclass @me random
sm_setplayerclass @me scoot


DarthNinja 10-31-2011 07:33

Re: [TF2] Set Player Class
 
Well that's a good example of garbage in garbage out.

FlaminSarge 11-01-2011 04:23

Re: [TF2] Set Player Class
 
This is a fancy version of /changeclass from http://hg.alliedmods.net/sourcemod-c...te/tf2-test.sp isn't it?

DarthNinja 11-01-2011 16:13

Re: [TF2] Set Player Class
 
Quote:

Originally Posted by FlaminSarge (Post 1587713)
This is a fancy version of /changeclass from http://hg.alliedmods.net/sourcemod-c...te/tf2-test.sp isn't it?

I've never seen that plugin, but yes they both use TF2_SetPlayerClass.


All times are GMT -4. The time now is 18:11.

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