MCPcopy Create free account
hub / github.com/assaultcube/AC / showrespawntimer

Function showrespawntimer

source/src/clientgame.cpp:614–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612int lastspawnattempt = 0;
613
614void showrespawntimer()
615{
616 if(intermission || ispaused || spawnpermission > SP_OK_NUM) return;
617 if(m_arena)
618 {
619 if(!arenaintermission) return;
620 showhudtimer(5, arenaintermission, "FIGHT!", lastspawnattempt >= arenaintermission && lastmillis < lastspawnattempt+100);
621 }
622 else if(player1->state==CS_DEAD && m_flags_ && (!player1->isspectating() || player1->spectatemode==SM_DEATHCAM))
623 {
624 int secs = 5;
625 showhudtimer(secs, player1->lastdeath, "READY!", lastspawnattempt >= arenaintermission && lastmillis < lastspawnattempt+100);
626 }
627}
628
629struct scriptsleep { int wait, millis; char *cmd; bool persist; };
630vector<scriptsleep> sleeps;

Callers 1

updateworldFunction · 0.85

Calls 2

showhudtimerFunction · 0.85
isspectatingMethod · 0.80

Tested by

no test coverage detected