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

Team Balance Immunity


Post New Thread Reply   
 
Thread Tools Display Modes
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-28-2010 , 22:21   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #41

Quote:
Originally Posted by retsam View Post
Another note. Im not even using the Teambalancescore part in mine. I didnt think that was needed for my uses. All that would do is help someone or some class etc, be less likely to be auto-balanced, where as Im only concerned with immunity. So in the example here has, im not sure why youd want(need?) to have the teambalance score and immunity set for admins. If they are already immune, why bother messing with the teambalance score? (which is why its just an example)
As noted by its name, it is only an example plugin. You can use one or the other, or both forwards, depending on what your needs are.
Afronanny is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 07-28-2010 , 22:23   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #42

I know. That was directed to inform the others who mentioned they were just using the example.

I coded my own plugin using this a while ago.
__________________
retsam is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-28-2010 , 23:46   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #43

Quote:
Originally Posted by retsam View Post
I know. That was directed to inform the others who mentioned they were just using the example.

I coded my own plugin using this a while ago.

Ah. Ok

(CAT SMILEY FACE!)
Afronanny is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-28-2010 , 23:52   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #44

I made that smiley, it makes me happy.
__________________
asherkin is offline
Sniper214
SourceMod Donor
Join Date: Jul 2008
Location: Canby, OR USA
Old 07-29-2010 , 01:41   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #45

Its working great, thanks
Sniper214 is offline
Sniper214
SourceMod Donor
Join Date: Jul 2008
Location: Canby, OR USA
Old 08-08-2010 , 00:51   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #46

Quote:
Originally Posted by Afronanny View Post
It's easy to do if you know how to code plugins. I'm working on class immunities now, and I'll get to enforcement soon.

EDIT: Class immunity attached to this post.

Code:
// This file was auto-generated by SourceMod (v1.3.2)
// ConVars for plugin "classimmunity.smx"


// Admin flags for immunity based on admin - if no flag is set then admins will not receive immunity
// -
// Default: "s"
tbi_adminflags "s"

// Give immunity to demomen
// -
// Default: "0"
tbi_demomen "0"

// Give immunity to engineers
// -
// Default: "0"
tbi_engineer "0"

// Give immunity to heaviess
// -
// Default: "0"
tbi_heavy "0"

// Give immunity to medics
// -
// Default: "0"
tbi_medic "0"

// Give immunity to pyros
// -
// Default: "0"
tbi_pyro "0"

// Give immunity to scouts
// -
// Default: "0"
tbi_scout "0"

// Give immunity to snipers
// -
// Default: "0"
tbi_sniper "0"

// Give immunity to soldiers
// -
// Default: "0"
tbi_soldier "0"

// Give immunity to spies
// -
// Default: "0"
tbi_spy "0"
What about giving say, medic and engie balance immunity to everyone? meaning whoever plays one these 2 classes will not get switched. Cause what I see, is that you have to be an admin/donator with the "s" flag to use class immunity, well your teambalance immunity already does that. Correct me if I am wrong. Cause it would suck to have a medic on you with and uber ready and he gets switched.

Last edited by Sniper214; 08-08-2010 at 00:55.
Sniper214 is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 08-08-2010 , 01:44   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #47

Quote:
Originally Posted by Sniper214 View Post
What about giving say, medic and engie balance immunity to everyone? meaning whoever plays one these 2 classes will not get switched. Cause what I see, is that you have to be an admin/donator with the "s" flag to use class immunity, well your teambalance immunity already does that. Correct me if I am wrong. Cause it would suck to have a medic on you with and uber ready and he gets switched.
No no, this is just a replacement for the sample. People with 's' do not get balanced. In addition to that, any of the classes that you choose also do not get balanced, flag or not. Anyone who is that class is immune.
Afronanny is offline
Sniper214
SourceMod Donor
Join Date: Jul 2008
Location: Canby, OR USA
Old 08-08-2010 , 06:05   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #48

Ah I see now. didn't see it at first, looks like I have to compile this myself, since get plugin errors. Do I just keep it as example? and the "0's" in the cfg file are are true/false values, I'm guessing.
Sniper214 is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 08-08-2010 , 10:25   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #49

Quote:
Originally Posted by Sniper214 View Post
Ah I see now. didn't see it at first, looks like I have to compile this myself, since get plugin errors. Do I just keep it as example? and the "0's" in the cfg file are are true/false values, I'm guessing.
Yes, 0 for false, 1 for true.

What errors are you getting?
Afronanny is offline
Sniper214
SourceMod Donor
Join Date: Jul 2008
Location: Canby, OR USA
Old 08-08-2010 , 15:23   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #50

Plugin failed to compile! Please try contacting the author.

And my admins are getting autobalanced, so maybe I didn't compile it right. I did notice the cfg did not create by itself when I compiled it.

Last edited by Sniper214; 08-08-2010 at 15:26.
Sniper214 is offline
Reply



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 19:33.


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