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

Function checkitemspawns

source/src/server.cpp:1871–1884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1869}
1870
1871void checkitemspawns(int diff)
1872{
1873 if(!diff) return;
1874 loopv(sg->sents) if(sg->sents[i].spawntime)
1875 {
1876 sg->sents[i].spawntime -= diff;
1877 if(sg->sents[i].spawntime<=0)
1878 {
1879 sg->sents[i].spawntime = 0;
1880 sg->sents[i].spawned = true;
1881 sendf(-1, 1, "ri2", SV_ITEMSPAWN, i);
1882 }
1883 }
1884}
1885
1886void serverdamage(client *target, client *actor, int damage, int gun, bool gib, const vec &hitpush = vec(0, 0, 0))
1887{

Callers 2

arenacheckFunction · 0.85
serversliceFunction · 0.85

Calls 2

sendfFunction · 0.85
loopvFunction · 0.70

Tested by

no test coverage detected