Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

Enabling panzer at certain amount of players


Best Answer mo_no, 03 September 2014 - 05:13 PM

7% of 7 is 0.49 so panzer wont be available.
You should set it to 15% (715%=1.05) Go to the full post »


  • Please log in to reply
17 replies to this topic

#1
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

Hi, so Ive consulted wiki before writing this, but still coudnt be sure if im right so I will just ask u here guys,

 

what should i set into set team_maxPanzers "" if I want to panzer gets available when there is atleast 18 players playing, lets say 9v9 per team or such? I want then 1 panzer to get enabled, and I dont want 2nd panzer to ever get enabled just that 1 when 18 players playing and above that. Thx guys.



#2
OFFLINE   mo_no

mo_no

    Newbie

  • Members
  • Pip
  • 8 posts
1
A step in the right direction
Try this:
Starting from silEnT version 0.5.2, admins can add settings that are executed for specific player amounts. The commands are enclosed in [players low-high] ... [/players] blocks. The low is the lowest amount of players for those settings and high is the maximum amount of players for those settings. For example:
[players 0-10]
set team_maxPanzers 0
[/players]

#3
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

So i should set it like 

 

 

[players 18-*]

set team_maxPanzers 1

[/players]?

 

Ive got this currently in my default.cfg, where should I add that line, thx?

 

[players 0-6]

set g_excludedMaps ":oasis:goldrush:fueldump:battery:parisbastille_b3:railgun:radar:industry2_final:" 
[players 7-13]
set g_excludedMaps ":oasis:goldrush:fueldump:battery:te_valhalla:parisbastille_b3:railgun:radar:industry2_final:"
[players 14-17]
set g_excludedMaps ":oasis:goldrush:fueldump:battery:purefrag:fragmaze_fixed:battery:te_valhalla:railgun:radar:goldrush:"
[players 18-19]
set g_excludedMaps ":oasis:goldrush:battery:fueldump:purefrag:fragmaze_fixed:battery:tc_base:te_valhalla:railgun:radar:"  
[players 20-*]
set g_excludedMaps ":oasis:goldrush:battery:fueldump:purefrag:fragmaze_fixed:battery:tc_base:te_valhalla:railgun:radar:"  
[/players]

Edited by Dookie, 04 July 2014 - 07:26 PM.


#4
OFFLINE   mo_no

mo_no

    Newbie

  • Members
  • Pip
  • 8 posts
1
A step in the right direction
[players 0-6]
set g_excludedMaps ":oasis:goldrush:fueldump:battery:parisbastille_b3:railgun:radar:industry2_final:" 
[players 7-13]
set g_excludedMaps ":oasis:goldrush:fueldump:battery:te_valhalla:parisbastille_b3:railgun:radar:industry2_final:"
[players 14-17]
set g_excludedMaps ":oasis:goldrush:fueldump:battery:purefrag:fragmaze_fixed:battery:te_valhalla:railgun:radar:goldrush:"
[players 18-19]
set g_excludedMaps ":oasis:goldrush:battery:fueldump:purefrag:fragmaze_fixed:battery:tc_base:te_valhalla:railgun:radar:"  
set team_maxPanzers 1
[players 20-*]
set g_excludedMaps ":oasis:goldrush:battery:fueldump:purefrag:fragmaze_fixed:battery:tc_base:te_valhalla:railgun:radar:"  
set team_maxPanzers 1
[/players]


#5
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

And what about server.cfg should I delete from there cvar set team_maxPanzers 0? Thanks



#6
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

Additional question about this:

 

Example: set team_maxFlamers "10%-"

                This will limit each team to having only 10% of their players as flamethrowers, and a team will not be able to have any flamethrowers until there are 10 players in the team. They will be able to have their second flamethrower when there are 20 players on the team.

 

 

Does this mean that team which lets say has 10 players will have panzer enabled, and lets say that other team has only 8 players, then he wont have panzer enabled? Or that 10 is calculation of the both of the teams? Thanks.

 

So as I want to have panzer enabled when atleast 8v8 game I should use 

set team_maxpanzers "8%-"

 ??


Edited by Dookie, 05 July 2014 - 07:55 AM.


#7
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

Hey guys, whatever i tried to set under set team_maxpanzers 10%, 10%- and so on, panzer gets immideatly enabled even tho only 2 people in teams and 4 bots. I would like to set it only when playing 8vs8 and above. Any ideas how? thanks



#8
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland

[players] blocks will not work in this case as they only check the amount of players during intermission afaik. team_maxPanzers is what you should use. Unfortunately cannot help you in making it work as I forgot how to configure it properly :wacko:


Edited by Dragonji, 06 July 2014 - 10:21 AM.


#9
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

Yea was using that cvar Dragonji, but as I said coudnt get it to work, it make's panzer always avilable no matter how much players in team...Also pretty hard to understand in the wiki, anyone got some more knowledge of it? Thanks



#10
OFFLINE   mo_no

mo_no

    Newbie

  • Members
  • Pip
  • 8 posts
1
A step in the right direction

So as I want to have panzer enabled when atleast 8v8 game I should use 

set team_maxpanzers "8%-"

 ??

 

Actualy no. 8% will enable panzer for team bigger than 13 players. to enable it for team bigger than 8 you will have to set it to 13% (8*13%=1,04)

 

And as Dragonji said - amount of players is checked on map start and it's not updated during game. so settings will be loaded according to amount of players at beginning of map.

 

 

Yea was using that cvar Dragonji, but as I said coudnt get it to work, it make's panzer always avilable no matter how much players in team...Also pretty hard to understand in the wiki, anyone got some more knowledge of it? Thanks

 

can you show us whats is in your default.cfg and in server config (i'm interested in team_maxpanzers only)? 



#11
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

Im totally lost in this, guess im just gonna keep it panzerless :)



#12
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

 

And as Dragonji said - amount of players is checked on map start and it's not updated during game. so settings will be loaded according to amount of players at beginning of map.

The config files are loaded at startup and not during the game. The player counts are updated on every change in teams, so the information of the highest concurrent player amount is available for the next map. It's an admin preference if they want to let the settings change during the map or if they prefer having a consistent setup for the duration of the map.



#13
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

Hello guys, sorry for being such a trouble maker, but can somebody just give me exact line and percetange which I should use if I want 1 panzer to get enabled when teams are 9v9 and +, thank you in advance!



#14
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

Hello there again, can someone help me with numbers, I would like panzer enabled when 7v7+, but I dont know how to make those calculations, thanks!



#15
OFFLINE   BECK

BECK

    Advanced Member

  • Subscriber
  • PipPipPipPip
  • 226 posts
61
Getting Better
  • LocationDenver, CO

Well it seems like team_maxPanzers "7%-" is what you want.  Not sure why people said that wouldn't work, but reading the vars description, that makes sense to me.    That means 1 panzer on your team when you hit 7 players, 2 panzers when 14, etc...etc...

 

Also I ran into this last week.  Check this thread:

 

http://mygamingtalk....-guid-userinfo/

 

There is a script in the first post (Simple Panzer Check) which uses LUA to change the panzer availability throughout the map based on the number of players.   It might be more of what you want, although I have never used the script so I don't know if it works or not, but it looks good :)



#16
OFFLINE   mo_no

mo_no

    Newbie

  • Members
  • Pip
  • 8 posts
1
A step in the right direction
✓  Best Answer
7% of 7 is 0.49 so panzer wont be available.
You should set it to 15% (715%=1.05)

#17
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

So just set team_maxPanzers 15% or 15%-?



#18
OFFLINE   BECK

BECK

    Advanced Member

  • Subscriber
  • PipPipPipPip
  • 226 posts
61
Getting Better
  • LocationDenver, CO

15%- is what you want

 

The "-" (hyphen) just says to round down for fractional calculations.  I think that would be required if you truly want them only enabled with 7+ players.   Otherwise without the hyphen, you'd still have a panzer available with less than 7 players, then another becomes available at 8 players.  I don't think that is what you want, so use the hyphen.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users