[TF2] Set Class
2 Attachment(s)
TF2 Set Class
Description: Set a target(s) class to the specified one, simple enough eh? CVARs(Default Values Shown): sm_setclass_version "1.2.2" sm_setclass_chat "1" - Enable/Disable(1/0) Showing setclass changes in chat sm_setclass_log "1" - Enable/Disable(1/0) Logging of setclass changes Command: sm_setclass "target" "class" (Default Slay Flag) Note: Canuse "random" for class to have the plugin choose a random class Examples: sm_setclass Thatonedude Soldier sm_setclass "The Master Stalker" Spy sm_setclass @me PYRO sm_setclass @red EnGiNeEr sm_setclass @humans scout sm_setclass @bots medic sm_setclass @all random Changelog: Code:
Version 1.0.0 - October 25, 2010 |
Re: TF2 Setclass
Awesome, fits my servers nicely. Good job!
|
Re: TF2 Setclass
Use this to force a player to select a weapon after you regenerate them
new weapon = GetPlayerWeaponSlot(client, 1); SetEntPropEnt(client, Prop_Send, "m_hActiveWeapon", weapon); |
Re: TF2 Setclass
Quote:
Also, I used slot 0 for primary instead of 1 for secondary. |
Re: TF2 Setclass
Sure. I just pasted that from another plugin i know uses it :)
|
Re: TF2 Setclass
Just what I needed, I love you :D
Could you make something to change the player's class to a random class? Like "sm_setclass @bots random" then the plugin chooses a random class :) |
Re: TF2 Setclass
Quote:
|
Re: [TF2] Set Class
On my Server I run the High Five Plugin(https://forums.alliedmods.net/showthread.php?t=147305) with this and it seems to leave behind a lot of civilian models from the original class the person was. Is there any way to get rid of the models/fix this?
|
Re: [TF2] Set Class
Quote:
If you have this problem with setting class and doing the high-five after, then I'm not sure what I can do to fix it. The high-five plugin seems to check class/model, make the player invisible, and spawn a new model to play the animation during a stun state(to allow thirdperson I assume), hence this plugin shouldn't cause an issue since it changes the class(and the model) if used before the high-fire. |
Re: [TF2] Set Class
Alright cool thanks. This plugin is very helpful otherwise
|
All times are GMT -4. The time now is 01:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.