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
added sv_race_server for race maps & only reload servers when changing tab #342
Conversation
Adding new config options apart from This changes the behavior to not remove the projectiles on player death for the race gametype as far as I can tell. This differs from the behavior in teerace, which is probably the only other still running race modification. Is this intentional? If so, why do you want to change that? "only reload servers when changing tab" is unrelated to the rest of the changes. Could it be considered wanted behavior if the user can click the tab again to force a reload? |
I added the other settings because I thought it could be useful for players who want to tune the settings for their raceservers. The "only reload server when changing tab" changed only the behaviour of the ingame browser since this was change for the menu browser some time ago. Use the refresh button to reload servers. I also removed a ton of useless variables there. |
@@ -1,3 +1,4 @@ | |||
#include <iostream> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be here.
I think that all configuration options we add should have a clear use case, and should otherwise be avoided if possible. Adding configuration options has two downsides:
teerace hosts teerace server, which have the gametype "Race". As far as I know the behavior of them is to remove projectiles on player death. Only reloading on tab switch sounds fine if that's the behaviour elsewhere as well. In future, you should try to split your pull request so each of them only implements one feature. |
on teerace the grenade isnt killed, i tested this. |
It would be easier to review this if the pull request was split into the serverbrowser and sv_race_server part. If you want help with that, I can assist you. As the interaction between It seems the previous code for tried to not reload the server browser in case the user just switched to settings and back, your version does not preserve that, resulting in more refreshs. I'm still trying to understand the implications of the changes in the laser code. |
@@ -885,8 +885,7 @@ void CCharacter::Die(int Killer, int Weapon) | |||
if(Server()->IsRecording(m_pPlayer->GetCID())) | |||
Server()->StopRecord(m_pPlayer->GetCID()); | |||
|
|||
// we got to wait 0.5 secs before respawning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment and the one below should probably be restored.
I'm going to open two seperate pull requests. |
Race feature will be used for the new race servers and contains commits:
18d82fa, 7156449 and a22a085
Remove useless variables and only reload servers when changing tab in ingame browser contains commits:
8983b29