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

Function sendintro

source/src/client.cpp:499–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499void sendintro()
500{
501 packetbuf p(MAXTRANS, ENET_PACKET_FLAG_RELIABLE);
502 putint(p, SV_CONNECT);
503 putint(p, AC_VERSION);
504 putint(p, getbuildtype());
505 sendstring(player1->name, p);
506 sendstring(genpwdhash(player1->name, clientpassword, sessionid), p);
507 sendstring(!lang || strlen(lang) != 2 ? "" : lang, p);
508 putint(p, connectrole);
509 clientpassword[0] = '\0';
510 connectrole = CR_DEFAULT;
511 putint(p, player1->nextprimweap->type);
512 loopi(2) putint(p, player1->skin(i));
513 putint(p, player1->maxroll);
514 putint(p, player1->maxrolleffect);
515 putint(p, player1->ffov);
516 putint(p, player1->scopefov);
517 sendpackettoserv(1, p.finalize());
518}
519
520void gets2c() // get updates from the server
521{

Callers 1

parsemessagesFunction · 0.85

Calls 8

putintFunction · 0.85
getbuildtypeFunction · 0.85
sendstringFunction · 0.85
genpwdhashFunction · 0.85
sendpackettoservFunction · 0.85
skinMethod · 0.80
finalizeMethod · 0.80
loopiFunction · 0.70

Tested by

no test coverage detected