Jump to content

Enabling panzer at certain amount of players


Dookie
Go to solution Solved by mo_no,

Recommended Posts

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.

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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
Link to comment
Share on other sites

[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]

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

[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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)? 

Link to comment
Share on other sites

  • Management

 

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.

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...
  • Subscriber

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.com/forums/topic/1044-cl-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 :)

Link to comment
Share on other sites

  • Subscriber

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...