Raised This Month: $12 Target: $400
 3% 

[TF2] Set Class


Post New Thread Reply   
 
Thread Tools Display Modes
Tylerst
Veteran Member
Join Date: Oct 2010
Old 03-02-2011 , 20:56   Re: [TF2] Set Class
Reply With Quote #11

After some testing, I can't find any way to fix it on my end, the problem seems to stem from the class change and how it interacts with highfive's taunt choosing.

The highfive looks for class, model, and team. But those should change when the class is set.
I can't tell whether it's a prblem with mine or the highfive, but somewhere along the line, it's having problems getting a correct value.

I get this in the console when the random civilian models appear:

Dynamic prop prop_dynamic:no sequence named:taunt_hifiveFailFull (or whichever taunt the highfive chooses)

Suffice to say, I can't figure out how to fix it, sorry.
Tylerst is offline
Unreal1
AlliedModders Donor
Join Date: Dec 2010
Old 06-26-2011 , 01:20   Re: [TF2] Set Class
Reply With Quote #12

setting class to @all doesn't work
Unreal1 is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 06-26-2011 , 13:23   Re: [TF2] Set Class
Reply With Quote #13

Quote:
Originally Posted by Unreal1 View Post
setting class to @all doesn't work
It's working for me, are you getting any errors?
If not, what exactly are you trying to type in?
Tylerst is offline
Unreal1
AlliedModders Donor
Join Date: Dec 2010
Old 07-23-2011 , 21:09   Re: [TF2] Set Class
Reply With Quote #14

Quote:
Originally Posted by Tylerst View Post
It's working for me, are you getting any errors?
If not, what exactly are you trying to type in?
It happens randomly but is fixed when I refresh the plugins. BUt i type /setclass @all heavy and it only switches a few people not all of them
Unreal1 is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 07-23-2011 , 22:49   Re: [TF2] Set Class
Reply With Quote #15

Plugin updated to 1.2.0 -
  • Overhaul of original plugin code for stability and optimization
  • Removed menu version(adminmenu_custom example attached)
Quote:
Originally Posted by Unreal1 View Post
It happens randomly but is fixed when I refresh the plugins. BUt i type /setclass @all heavy and it only switches a few people not all of them
Try the new version. I did an overhaul of the original plugin, which should be much more stable.

Last edited by Tylerst; 07-23-2011 at 22:51.
Tylerst is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 12-23-2011 , 21:34   Re: [TF2] Set Class
Reply With Quote #16

Hello Tylerst, first of all, great plugin! It's been very useful on our servers, thank you.

I've had a couple of errors flagged that I thought you should be aware of:

Code:
L 12/22/2011 - 04:07:35: [SM] Displaying call stack trace for plugin "TF2 Set Class.smx":
L 12/22/2011 - 04:07:35: [SM]   [0]  Line 306, /groups/sourcemod/compiler-1.3/include/tf2_stocks.inc::TF2_SetPlayerClass()
L 12/22/2011 - 04:07:35: [SM]   [1]  Line 124, /home/groups/alliedmodders/forums/files/9/4/3/2/5/89351.attach::Command_Setclass()
Using SourceMod version: 1.4.0


Could I also make a request whilst I'm here please? Whilst 'random' seems to work well enough for a single target, when used on multiples such as @all, every player gets set to the same random class. May you possibly change this to make every target in @all, @bots, @red etc. all a different random class please? Or maybe the introduction of another word like 'shuffle' to fulfil this request.

Feel free to ask questions on either matter. Thank you very much for your time!
11530 is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 12-24-2011 , 01:02   Re: [TF2] Set Class
Reply With Quote #17

Quote:
Originally Posted by 11530 View Post
Hello Tylerst, first of all, great plugin! It's been very useful on our servers, thank you.

I've had a couple of errors flagged that I thought you should be aware of:

Code:
L 12/22/2011 - 04:07:35: [SM] Displaying call stack trace for plugin "TF2 Set Class.smx":
L 12/22/2011 - 04:07:35: [SM]   [0]  Line 306, /groups/sourcemod/compiler-1.3/include/tf2_stocks.inc::TF2_SetPlayerClass()
L 12/22/2011 - 04:07:35: [SM]   [1]  Line 124, /home/groups/alliedmodders/forums/files/9/4/3/2/5/89351.attach::Command_Setclass()
Using SourceMod version: 1.4.0


Could I also make a request whilst I'm here please? Whilst 'random' seems to work well enough for a single target, when used on multiples such as @all, every player gets set to the same random class. May you possibly change this to make every target in @all, @bots, @red etc. all a different random class please? Or maybe the introduction of another word like 'shuffle' to fulfil this request.

Feel free to ask questions on either matter. Thank you very much for your time!
Your snippet there isn't telling what the error actually is, was there not more to it? If not, then I'm not sure what happened.

In any case, I added your suggestion

Updated to 1.2.1
-"random" will now randomize each target's class
Tylerst is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 12-24-2011 , 16:44   Re: [TF2] Set Class
Reply With Quote #18

That was all the file says, and I couldn't see any visual in-game symptoms, but if I can reproduce the error I'll let you know.

Also, thank you for the latest update (and a quick reply too!). I'll update right away
11530 is offline
wiccked
New Member
Join Date: Feb 2012
Old 02-24-2012 , 05:34   Re: [TF2] Set Class
Reply With Quote #19

Hi guys.

Can someone tell me how can I make menu work in this plugin?
It'll be a lot easier for me to do this with menu.
wiccked is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 02-24-2012 , 14:43   Re: [TF2] Set Class
Reply With Quote #20

Quote:
Originally Posted by wiccked View Post
Hi guys.

Can someone tell me how can I make menu work in this plugin?
It'll be a lot easier for me to do this with menu.
There is a setclass_menu_example.txt attached in the first post.
11530 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 05:16.


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