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

Function spawnstate

source/src/clientgame.cpp:452–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void spawnstate(playerent *d) // reset player state not persistent accross spawns
453{
454 d->respawn();
455 d->spawnstate(gamemode);
456 if(d==player1)
457 {
458 setscope(false);
459 }
460 if(d->deaths==0) d->resetstats();
461}
462
463playerent *newplayerent() // create a new blank player
464{

Callers 3

spawnstateMethod · 0.85
newplayerentFunction · 0.85
newbotentFunction · 0.85

Calls 4

setscopeFunction · 0.85
resetstatsMethod · 0.80
respawnMethod · 0.45
spawnstateMethod · 0.45

Tested by

no test coverage detected