mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
DDRace tuning vars reset every map, but default Teeworlds tuning vars don't
This commit is contained in:
parent
8c103b8c13
commit
abfd5555b0
|
@ -194,6 +194,8 @@ MACRO_CONFIG_INT(SvPlasmaRange, sv_plasma_range, 700, 1, 99999, CFGFLAG_SERVER,
|
|||
MACRO_CONFIG_INT(SvPlasmaPerSec, sv_plasma_per_sec, 3, 0, 50, CFGFLAG_SERVER, "How many shots does the plasma gun fire per seconds")
|
||||
MACRO_CONFIG_INT(SvVotePause, sv_vote_pause, 1, 0, 1, CFGFLAG_SERVER, "Allow voting to pause players (instead of moving to spectators)")
|
||||
MACRO_CONFIG_INT(SvVotePauseTime, sv_vote_pause_time, 10, 0, 360, CFGFLAG_SERVER, "The time (in seconds) players have to wait in pause when paused by vote")
|
||||
MACRO_CONFIG_INT(SvTuneReset, sv_tune_reset, 0, 0, 1, CFGFLAG_SERVER, "Whether tuning is reset after each map change or not")
|
||||
MACRO_CONFIG_INT(SvDDRaceTuneReset, sv_ddrace_tune_reset, 1, 0, 1, CFGFLAG_SERVER, "Whether DDRace tuning(sv_hit, Sv_Endless_Drag & Sv_Old_Laser) is reset after each map change or not")
|
||||
|
||||
|
||||
// these might need some fine tuning
|
||||
|
|
|
@ -1686,10 +1686,17 @@ void CGameContext::OnInit(/*class IKernel *pKernel*/)
|
|||
//players = new CPlayer[MAX_CLIENTS];
|
||||
|
||||
// Reset Tuning
|
||||
ResetTuning();
|
||||
g_Config.m_SvHit = 1;
|
||||
g_Config.m_SvEndlessDrag = 0;
|
||||
g_Config.m_SvOldLaser = 0;
|
||||
if(g_Config.m_SvTuneReset)
|
||||
{
|
||||
ResetTuning();
|
||||
}
|
||||
|
||||
if(g_Config.m_SvDDRaceTuneReset)
|
||||
{
|
||||
g_Config.m_SvHit = 1;
|
||||
g_Config.m_SvEndlessDrag = 0;
|
||||
g_Config.m_SvOldLaser = 0;
|
||||
}
|
||||
|
||||
char buf[512];
|
||||
str_format(buf, sizeof(buf), "data/maps/%s.cfg", g_Config.m_SvMap);
|
||||
|
|
Loading…
Reference in a new issue