mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-04 07:52:22 +00:00
Speed up ring respawn for anything more than 1v1s
This commit is contained in:
parent
f8b82bd28f
commit
9c71415b8f
1 changed files with 6 additions and 2 deletions
|
|
@ -11008,16 +11008,20 @@ void P_RespawnSpecials(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (pcount == 1) // No respawn when alone
|
if (pcount == 1) // No respawn when alone
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
else if (pcount > 1)
|
else if (pcount > 1)
|
||||||
{
|
{
|
||||||
time = (120 - ((pcount-2) * 10)) * TICRATE;
|
time = (120 - ((pcount-2) * 20)) * TICRATE;
|
||||||
|
|
||||||
// If the map is longer or shorter than 3 laps, then adjust ring respawn to account for this.
|
// If the map is longer or shorter than 3 laps, then adjust ring respawn to account for this.
|
||||||
// 5 lap courses would have more retreaded ground, while 2 lap courses would have less.
|
// 5 lap courses would have more retreaded ground, while 2 lap courses would have less.
|
||||||
if ((mapheaderinfo[gamemap-1]->numlaps != 3)
|
if ((mapheaderinfo[gamemap-1]->numlaps != 3)
|
||||||
&& !(mapheaderinfo[gamemap-1]->levelflags & LF_SECTIONRACE))
|
&& !(mapheaderinfo[gamemap-1]->levelflags & LF_SECTIONRACE))
|
||||||
|
{
|
||||||
time = (time * 3) / max(1, mapheaderinfo[gamemap-1]->numlaps);
|
time = (time * 3) / max(1, mapheaderinfo[gamemap-1]->numlaps);
|
||||||
|
}
|
||||||
|
|
||||||
if (time < 10*TICRATE)
|
if (time < 10*TICRATE)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue