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

Function jumpn

source/src/physics.cpp:858–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858void jumpn(bool on)
859{
860 static bool wason = false;
861 player1->jumpnext = on && !wason && !player1->crouching && !intermission && !player1->isspectating() && !ispaused;
862 wason = on;
863 if(player1->isspectating())
864 {
865 if(lastmillis - player1->lastdeath > 1000 && on) togglespect();
866 }
867}
868
869void updatecrouch(playerent *p, bool on)
870{

Callers

nothing calls this directly

Calls 2

togglespectFunction · 0.85
isspectatingMethod · 0.80

Tested by

no test coverage detected