add last minute and last five seconds sounds to game modes with time limit
guys it's a bell it's just like splatoon guys
This commit is contained in:
parent
a56213921e
commit
c7db0acf59
2 changed files with 1032 additions and 998 deletions
1997
src/info/sounds.h
1997
src/info/sounds.h
File diff suppressed because it is too large
Load diff
33
src/p_tick.c
33
src/p_tick.c
|
|
@ -821,6 +821,39 @@ void P_Ticker(boolean run)
|
|||
}
|
||||
}
|
||||
|
||||
if (timelimitintics > 0)
|
||||
{
|
||||
// last minute
|
||||
if (timelimitintics > 60*TICRATE && leveltime == timelimitintics - 60*TICRATE + starttime)
|
||||
{
|
||||
S_StartSound(NULL, sfx_cdfm67); // guys it's a bell it's just like splatoon guys
|
||||
}
|
||||
if (timelimitintics > 60*TICRATE && leveltime == timelimitintics - 59*TICRATE + starttime)
|
||||
{
|
||||
S_StartSound(NULL, sfx_bhurry); // hurry up :))))
|
||||
}
|
||||
|
||||
// overtime
|
||||
// if (timelimitintics > 60*TICRATE && leveltime == timelimitintics + 1 + starttime)
|
||||
// {
|
||||
// S_StartSound(NULL, sfx_s3k9d); // overtime warning
|
||||
// }
|
||||
|
||||
// last five second countdown
|
||||
if (leveltime == timelimitintics - 5 * TICRATE + starttime ||
|
||||
leveltime == timelimitintics - 4 * TICRATE + starttime)
|
||||
{
|
||||
S_StartSound(NULL, sfx_kc35); // 5, 4
|
||||
}
|
||||
if (leveltime == timelimitintics - TICRATE + starttime ||
|
||||
leveltime == timelimitintics - 2 * TICRATE + starttime ||
|
||||
leveltime == timelimitintics - 3 * TICRATE + starttime)
|
||||
{
|
||||
S_StartSound(NULL, sfx_kc35);
|
||||
S_StartSound(NULL, sfx_kc3d); // 3, 2, 1
|
||||
}
|
||||
}
|
||||
|
||||
// Change timing of start music based on gametyperules
|
||||
{
|
||||
tic_t startingtime = (gametyperules & GTR_NOCOUNTDOWN) ? introtime : starttime;
|
||||
|
|
|
|||
Loading…
Reference in a new issue