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

Function initflag

source/src/clientgame.cpp:1076–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074};
1075
1076void initflag(int i)
1077{
1078 flaginfo &f = flaginfos[i];
1079 f.flagent = &flagdummies[i];
1080 f.pos = vec(f.flagent->x, f.flagent->y, f.flagent->z);
1081 f.ack = true;
1082 f.actor = NULL;
1083 f.actor_cn = -1;
1084 f.team = i;
1085 f.state = m_ktf ? CTFF_IDLE : CTFF_INBASE;
1086}
1087
1088void zapplayerflags(playerent *p)
1089{

Callers 2

zapplayerflagsFunction · 0.85
preparectfFunction · 0.85

Calls 1

vecClass · 0.85

Tested by

no test coverage detected