mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Compare commits
5 commits
716408a621
...
358a371b6f
Author | SHA1 | Date | |
---|---|---|---|
358a371b6f | |||
96ad30eb21 | |||
b03245f7dd | |||
ChillerDragon | 7192bbf397 | ||
ChillerDragon | 984845b2a9 |
|
@ -228,7 +228,7 @@ MACRO_CONFIG_INT(SvWarmup, sv_warmup, 0, 0, 0, CFGFLAG_SERVER, "Number of second
|
||||||
MACRO_CONFIG_STR(SvMotd, sv_motd, 900, "", CFGFLAG_SERVER, "Message of the day to display for the clients")
|
MACRO_CONFIG_STR(SvMotd, sv_motd, 900, "", CFGFLAG_SERVER, "Message of the day to display for the clients")
|
||||||
MACRO_CONFIG_STR(SvGametype, sv_gametype, 32, "ddnet", CFGFLAG_SERVER, "Game type (ddnet, mod)")
|
MACRO_CONFIG_STR(SvGametype, sv_gametype, 32, "ddnet", CFGFLAG_SERVER, "Game type (ddnet, mod)")
|
||||||
MACRO_CONFIG_INT(SvTournamentMode, sv_tournament_mode, 0, 0, 1, CFGFLAG_SERVER, "Tournament mode. When enabled, players joins the server as spectator")
|
MACRO_CONFIG_INT(SvTournamentMode, sv_tournament_mode, 0, 0, 1, CFGFLAG_SERVER, "Tournament mode. When enabled, players joins the server as spectator")
|
||||||
MACRO_CONFIG_INT(SvSpamprotection, sv_spamprotection, 1, 0, 1, CFGFLAG_SERVER, "Spam protection")
|
MACRO_CONFIG_INT(SvSpamprotection, sv_spamprotection, 1, 0, 1, CFGFLAG_SERVER, "Spam protection for: team change, chat, skin change, emotes and votes")
|
||||||
|
|
||||||
MACRO_CONFIG_INT(SvSpectatorSlots, sv_spectator_slots, 0, 0, MAX_CLIENTS, CFGFLAG_SERVER, "Number of slots to reserve for spectators")
|
MACRO_CONFIG_INT(SvSpectatorSlots, sv_spectator_slots, 0, 0, MAX_CLIENTS, CFGFLAG_SERVER, "Number of slots to reserve for spectators")
|
||||||
MACRO_CONFIG_INT(SvInactiveKickTime, sv_inactivekick_time, 0, 0, 1000, CFGFLAG_SERVER, "How many minutes to wait before taking care of inactive players")
|
MACRO_CONFIG_INT(SvInactiveKickTime, sv_inactivekick_time, 0, 0, 1000, CFGFLAG_SERVER, "How many minutes to wait before taking care of inactive players")
|
||||||
|
|
|
@ -620,9 +620,11 @@ void *CGameClient::TranslateGameMsg(int *pMsgId, CUnpacker *pUnpacker, int Conn)
|
||||||
switch(GameMsgId)
|
switch(GameMsgId)
|
||||||
{
|
{
|
||||||
case protocol7::GAMEMSG_CTF_DROP:
|
case protocol7::GAMEMSG_CTF_DROP:
|
||||||
|
if(Conn == g_Config.m_ClDummy)
|
||||||
m_Sounds.Enqueue(CSounds::CHN_GLOBAL, SOUND_CTF_DROP);
|
m_Sounds.Enqueue(CSounds::CHN_GLOBAL, SOUND_CTF_DROP);
|
||||||
break;
|
break;
|
||||||
case protocol7::GAMEMSG_CTF_RETURN:
|
case protocol7::GAMEMSG_CTF_RETURN:
|
||||||
|
if(Conn == g_Config.m_ClDummy)
|
||||||
m_Sounds.Enqueue(CSounds::CHN_GLOBAL, SOUND_CTF_RETURN);
|
m_Sounds.Enqueue(CSounds::CHN_GLOBAL, SOUND_CTF_RETURN);
|
||||||
break;
|
break;
|
||||||
case protocol7::GAMEMSG_TEAM_ALL:
|
case protocol7::GAMEMSG_TEAM_ALL:
|
||||||
|
@ -650,6 +652,7 @@ void *CGameClient::TranslateGameMsg(int *pMsgId, CUnpacker *pUnpacker, int Conn)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case protocol7::GAMEMSG_CTF_GRAB:
|
case protocol7::GAMEMSG_CTF_GRAB:
|
||||||
|
if(Conn == g_Config.m_ClDummy)
|
||||||
m_Sounds.Enqueue(CSounds::CHN_GLOBAL, SOUND_CTF_GRAB_EN);
|
m_Sounds.Enqueue(CSounds::CHN_GLOBAL, SOUND_CTF_GRAB_EN);
|
||||||
break;
|
break;
|
||||||
case protocol7::GAMEMSG_GAME_PAUSED:
|
case protocol7::GAMEMSG_GAME_PAUSED:
|
||||||
|
@ -660,6 +663,7 @@ void *CGameClient::TranslateGameMsg(int *pMsgId, CUnpacker *pUnpacker, int Conn)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case protocol7::GAMEMSG_CTF_CAPTURE:
|
case protocol7::GAMEMSG_CTF_CAPTURE:
|
||||||
|
if(Conn == g_Config.m_ClDummy)
|
||||||
m_Sounds.Enqueue(CSounds::CHN_GLOBAL, SOUND_CTF_CAPTURE);
|
m_Sounds.Enqueue(CSounds::CHN_GLOBAL, SOUND_CTF_CAPTURE);
|
||||||
int ClientId = clamp(aParaI[1], 0, MAX_CLIENTS - 1);
|
int ClientId = clamp(aParaI[1], 0, MAX_CLIENTS - 1);
|
||||||
m_aStats[ClientId].m_FlagCaptures++;
|
m_aStats[ClientId].m_FlagCaptures++;
|
||||||
|
|
Loading…
Reference in a new issue