mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'dox-voters-to-server' into 'master'
Dox voters to server Closes #1440 See merge request KartKrew/Kart!2431
This commit is contained in:
commit
2b0f597909
1 changed files with 8 additions and 0 deletions
|
|
@ -707,6 +707,14 @@ void K_InitNewMidVote(player_t *caller, midVoteType_e type, INT32 variable, play
|
||||||
g_midVote.variable = variable;
|
g_midVote.variable = variable;
|
||||||
g_midVote.victim = victim;
|
g_midVote.victim = victim;
|
||||||
|
|
||||||
|
if (server || IsPlayerAdmin(consoleplayer))
|
||||||
|
{
|
||||||
|
if (victim)
|
||||||
|
HU_AddChatText(va("%s called a vote to %s %s\n", player_names[caller-players], g_midVoteTypeDefs[type].name, player_names[victim-players]), true);
|
||||||
|
else
|
||||||
|
HU_AddChatText(va("%s called a vote to %s\n", player_names[caller-players], g_midVoteTypeDefs[type].name), true);
|
||||||
|
}
|
||||||
|
|
||||||
S_StartSound(NULL, sfx_cdfm67);
|
S_StartSound(NULL, sfx_cdfm67);
|
||||||
|
|
||||||
g_midVote.votes[caller - players] = true;
|
g_midVote.votes[caller - players] = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue