| 497 | } |
| 498 | |
| 499 | void 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 | |
| 520 | void gets2c() // get updates from the server |
| 521 | { |
no test coverage detected