Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically pick the right config based on the type of map being played #20

Open
icewind1991 opened this issue Sep 17, 2016 · 6 comments

Comments

@icewind1991
Copy link

It's common for people when switching map types (pl, koth, 5cp) to forget to execute the right config for the new map leading to various issues while playing.

It would be nice if the server would automatically switch the config when loading a map.

This could be done with a server plugin like https://github.com/spiretf/autoexec

@cob16
Copy link
Collaborator

cob16 commented Oct 12, 2016

Do you know if that plugin handles having multiple league configs? i.e. It switches back on if the last config was a UGC/ETF2Lconfig.

Update: looks like it's gets set by a 'sm_autoexec_league' convar, not automatically.

@icewind1991
Copy link
Author

Updated the plugin to automatically set the used league and gamemode when manually changing config

So when loading etf2l_9v9_koth and then switching to cp_gullywash to will stay on etf2l hl config (etf2l_9v9_5cp)

@cob16
Copy link
Collaborator

cob16 commented Oct 20, 2016

Ah thats nice, and friendly user messages too!

@Arie your thoughts?

@Arie
Copy link
Owner

Arie commented Oct 24, 2016

Yeah cool, I'm a bit hesitant about the auto-loading of a config. There's no single right config for a given map. You might play UGC or ETF2L for example.

I like the automated switching of config based on the current config+map though.

@cob16
Copy link
Collaborator

cob16 commented Oct 24, 2016

@Arie: Just to note as per icewind's last comment the plugin handles league types automatically

I think this is harmless to have as Serveme sets the starting config on the reservations page allready. This plugin just adds convenience for the users when they chance maps in scrims saving them the cvar (something that half the tf2 population don't remember how to do 😄 ). I doubt that users often want to change between leagues in there reservations so it's a better default than a PL config for a KOTH map.

I you feel it's necessary I could always drum up a pull request to make it an option on the reservation page

@AndyBarnett
Copy link

👍 for this plz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants