mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
Add join/leave notification sounds
This commit is contained in:
parent
17318ceec7
commit
82bfdf9ccc
3 changed files with 10 additions and 1 deletions
|
@ -3363,7 +3363,9 @@ static void Got_KickCmd(UINT8 **p, INT32 playernum)
|
|||
#endif
|
||||
}
|
||||
|
||||
if (msg != KICK_MSG_PLAYER_QUIT)
|
||||
if (msg == KICK_MSG_PLAYER_QUIT)
|
||||
S_StartSound(NULL, sfx_leave); // intended leave
|
||||
else
|
||||
S_StartSound(NULL, sfx_syfail); // he he he
|
||||
|
||||
switch (msg)
|
||||
|
@ -3780,6 +3782,9 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum)
|
|||
|
||||
if (netgame)
|
||||
{
|
||||
if (node != mynode)
|
||||
S_StartSound(NULL, sfx_join);
|
||||
|
||||
if (server && cv_showjoinaddress.value)
|
||||
{
|
||||
const char *address;
|
||||
|
|
|
@ -816,6 +816,8 @@ sfxinfo_t S_sfx[NUMSFX] =
|
|||
{"mkuma", false, 96, 8, -1, NULL, 0, -1, -1, LUMPERROR}, // Trigger Happy Havoc Monokuma
|
||||
{"toada", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR}, // Arid Sands Toad scream
|
||||
{"bsnipe", false, 96, 8, -1, NULL, 0, -1, -1, LUMPERROR}, // Banana sniping
|
||||
{"join", false, 96, 8, -1, NULL, 0, -1, -1, LUMPERROR}, // Player joined server
|
||||
{"leave", false, 96, 8, -1, NULL, 0, -1, -1, LUMPERROR}, // Player left server
|
||||
{"requst", false, 96, 8, -1, NULL, 0, -1, -1, LUMPERROR}, // Got a Discord join request
|
||||
{"syfail", false, 96, 8, -1, NULL, 0, -1, -1, LUMPERROR}, // Funny sync failure
|
||||
{"itfree", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR}, // :shitsfree:
|
||||
|
|
|
@ -891,6 +891,8 @@ typedef enum
|
|||
sfx_mkuma,
|
||||
sfx_toada,
|
||||
sfx_bsnipe,
|
||||
sfx_join,
|
||||
sfx_leave,
|
||||
sfx_requst,
|
||||
sfx_syfail,
|
||||
sfx_itfree,
|
||||
|
|
Loading…
Reference in a new issue