MCPcopy Create free account
hub / github.com/demoth/jake2 / SV_Begin_f

Method SV_Begin_f

server/src/main/java/jake2/server/SV_USER.java:221–238  ·  view source on GitHub ↗
(List<String> args, GameImportsImpl gameImports, client_t client)

Source from the content-addressed store, hash-verified

219 * ================== SV_Begin_f ==================
220 */
221 private static void SV_Begin_f(List<String> args, GameImportsImpl gameImports, client_t client) {
222 Com.DPrintf("Begin() from " + client.name + "\n");
223
224 // handle the case of a level changing while a client was connecting
225 int spawnCount = args.size() >= 2 ? Lib.atoi(args.get(1)) : 0;
226 if (spawnCount != gameImports.spawncount) {
227 Com.Printf("SV_Begin_f from different level\n");
228 SV_New_f(args, gameImports, client);
229 return;
230 }
231
232 client.state = ClientStates.CS_SPAWNED;
233
234 // call the jake2.game begin function
235 gameImports.gameExports.ClientBegin(client.edict);
236
237 Cbuf.InsertFromDefer();
238 }
239
240 //=============================================================================
241

Callers

nothing calls this directly

Calls 8

DPrintfMethod · 0.95
atoiMethod · 0.95
PrintfMethod · 0.95
SV_New_fMethod · 0.95
InsertFromDeferMethod · 0.95
sizeMethod · 0.80
ClientBeginMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected