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

Function sendspawn

source/src/server.cpp:752–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750}
751
752void sendspawn(client *c)
753{
754 if(team_isspect(c->team)) return;
755 clientstate &gs = c->state;
756 gs.respawn();
757 gs.spawnstate(sg->smode);
758 gs.lifesequence++;
759 sendf(c->clientnum, 1, "ri7vv", SV_SPAWNSTATE, gs.lifesequence,
760 gs.health, gs.armour,
761 gs.primary, gs.gunselect, m_arena ? c->spawnindex : -1,
762 NUMGUNS, gs.ammo, NUMGUNS, gs.mag);
763 gs.lastspawn = sg->gamemillis;
764}
765
766// simultaneous demo recording, fully buffered
767

Callers 4

arenacheckFunction · 0.85
autospawncheckFunction · 0.85
updateclientteamFunction · 0.85
processFunction · 0.85

Calls 3

sendfFunction · 0.85
respawnMethod · 0.45
spawnstateMethod · 0.45

Tested by

no test coverage detected