Lines Matching refs:buf

380 	sizebuf_t	buf;
426 memset(&buf, 0, sizeof(buf));
427 buf.data = (byte*) buf_data;
428 buf.maxsize = sizeof(buf_data);
431 MSG_WriteByte (&buf, svc_serverdata);
432 MSG_WriteLong (&buf, PROTOCOL_VERSION);
433 MSG_WriteLong (&buf, cl.servercount);
434 MSG_WriteString (&buf, gamedirfile);
437 MSG_WriteByte (&buf, cl.playernum | 128);
439 MSG_WriteByte (&buf, cl.playernum);
442 MSG_WriteString (&buf, cl.levelname);
445 MSG_WriteFloat(&buf, movevars.gravity);
446 MSG_WriteFloat(&buf, movevars.stopspeed);
447 MSG_WriteFloat(&buf, movevars.maxspeed);
448 MSG_WriteFloat(&buf, movevars.spectatormaxspeed);
449 MSG_WriteFloat(&buf, movevars.accelerate);
450 MSG_WriteFloat(&buf, movevars.airaccelerate);
451 MSG_WriteFloat(&buf, movevars.wateraccelerate);
452 MSG_WriteFloat(&buf, movevars.friction);
453 MSG_WriteFloat(&buf, movevars.waterfriction);
454 MSG_WriteFloat(&buf, movevars.entgravity);
457 MSG_WriteByte (&buf, svc_cdtrack);
458 MSG_WriteByte (&buf, 0); // none in demos
461 MSG_WriteByte (&buf, svc_stufftext);
462 MSG_WriteString (&buf, va("fullserverinfo \"%s\"\n", cl.serverinfo) );
465 CL_WriteRecordDemoMessage (&buf, seq++);
466 SZ_Clear (&buf);
469 MSG_WriteByte (&buf, svc_soundlist);
470 MSG_WriteByte (&buf, 0);
475 MSG_WriteString (&buf, s);
476 if (buf.cursize > MAX_MSGLEN/2) {
477 MSG_WriteByte (&buf, 0);
478 MSG_WriteByte (&buf, n);
479 CL_WriteRecordDemoMessage (&buf, seq++);
480 SZ_Clear (&buf);
481 MSG_WriteByte (&buf, svc_soundlist);
482 MSG_WriteByte (&buf, n + 1);
487 if (buf.cursize) {
488 MSG_WriteByte (&buf, 0);
489 MSG_WriteByte (&buf, 0);
490 CL_WriteRecordDemoMessage (&buf, seq++);
491 SZ_Clear (&buf);
495 MSG_WriteByte (&buf, svc_modellist);
496 MSG_WriteByte (&buf, 0);
501 MSG_WriteString (&buf, s);
502 if (buf.cursize > MAX_MSGLEN/2) {
503 MSG_WriteByte (&buf, 0);
504 MSG_WriteByte (&buf, n);
505 CL_WriteRecordDemoMessage (&buf, seq++);
506 SZ_Clear (&buf);
507 MSG_WriteByte (&buf, svc_modellist);
508 MSG_WriteByte (&buf, n + 1);
513 if (buf.cursize) {
514 MSG_WriteByte (&buf, 0);
515 MSG_WriteByte (&buf, 0);
516 CL_WriteRecordDemoMessage (&buf, seq++);
517 SZ_Clear (&buf);
525 MSG_WriteByte (&buf, svc_spawnstatic);
531 MSG_WriteByte (&buf, 0);
533 MSG_WriteByte (&buf, j);
535 MSG_WriteByte (&buf, ent->frame);
536 MSG_WriteByte (&buf, 0);
537 MSG_WriteByte (&buf, ent->skinnum);
540 MSG_WriteCoord (&buf, ent->origin[j]);
541 MSG_WriteAngle (&buf, ent->angles[j]);
544 if (buf.cursize > MAX_MSGLEN/2) {
545 CL_WriteRecordDemoMessage (&buf, seq++);
546 SZ_Clear (&buf);
560 MSG_WriteByte (&buf,svc_spawnbaseline);
561 MSG_WriteShort (&buf, i);
563 MSG_WriteByte (&buf, es->modelindex);
564 MSG_WriteByte (&buf, es->frame);
565 MSG_WriteByte (&buf, es->colormap);
566 MSG_WriteByte (&buf, es->skinnum);
569 MSG_WriteCoord(&buf, es->origin[j]);
570 MSG_WriteAngle(&buf, es->angles[j]);
573 if (buf.cursize > MAX_MSGLEN/2) {
574 CL_WriteRecordDemoMessage (&buf, seq++);
575 SZ_Clear (&buf);
580 MSG_WriteByte (&buf, svc_stufftext);
581 MSG_WriteString (&buf, va("cmd spawn %i 0\n", cl.servercount) );
583 if (buf.cursize) {
584 CL_WriteRecordDemoMessage (&buf, seq++);
585 SZ_Clear (&buf);
593 MSG_WriteByte (&buf, svc_updatefrags);
594 MSG_WriteByte (&buf, i);
595 MSG_WriteShort (&buf, player->frags);
597 MSG_WriteByte (&buf, svc_updateping);
598 MSG_WriteByte (&buf, i);
599 MSG_WriteShort (&buf, player->ping);
601 MSG_WriteByte (&buf, svc_updatepl);
602 MSG_WriteByte (&buf, i);
603 MSG_WriteByte (&buf, player->pl);
605 MSG_WriteByte (&buf, svc_updateentertime);
606 MSG_WriteByte (&buf, i);
607 MSG_WriteFloat (&buf, player->entertime);
609 MSG_WriteByte (&buf, svc_updateuserinfo);
610 MSG_WriteByte (&buf, i);
611 MSG_WriteLong (&buf, player->userid);
612 MSG_WriteString (&buf, player->userinfo);
614 if (buf.cursize > MAX_MSGLEN/2) {
615 CL_WriteRecordDemoMessage (&buf, seq++);
616 SZ_Clear (&buf);
623 MSG_WriteByte (&buf, svc_lightstyle);
624 MSG_WriteByte (&buf, (char)i);
625 MSG_WriteString (&buf, cl_lightstyle[i].map);
629 MSG_WriteByte (&buf, svc_updatestatlong);
630 MSG_WriteByte (&buf, i);
631 MSG_WriteLong (&buf, cl.stats[i]);
632 if (buf.cursize > MAX_MSGLEN/2) {
633 CL_WriteRecordDemoMessage (&buf, seq++);
634 SZ_Clear (&buf);
639 MSG_WriteByte (&buf, svc_updatestatlong);
640 MSG_WriteByte (&buf, STAT_TOTALMONSTERS);
641 MSG_WriteLong (&buf, cl.stats[STAT_TOTALMONSTERS]);
643 MSG_WriteByte (&buf, svc_updatestatlong);
644 MSG_WriteByte (&buf, STAT_SECRETS);
645 MSG_WriteLong (&buf, cl.stats[STAT_SECRETS]);
647 MSG_WriteByte (&buf, svc_updatestatlong);
648 MSG_WriteByte (&buf, STAT_MONSTERS);
649 MSG_WriteLong (&buf, cl.stats[STAT_MONSTERS]);
654 MSG_WriteByte (&buf, svc_stufftext);
655 MSG_WriteString (&buf, va("skins\n") );
657 CL_WriteRecordDemoMessage (&buf, seq++);