| 468 | } |
| 469 | |
| 470 | void DemoWriteWeaponFire(uint16_t objectnum, vector *pos, vector *dir, uint16_t weaponnum, |
| 471 | uint16_t weapobjnum, int16_t gunnum) { |
| 472 | uint32_t uniqueid = MultiGetMatchChecksum(OBJ_WEAPON, weaponnum); |
| 473 | if (weapobjnum == -1) |
| 474 | return; |
| 475 | if (!Weapons[weaponnum].used) { |
| 476 | Int3(); |
| 477 | } |
| 478 | if (Demo_flags == DF_RECORDING) { |
| 479 | gs_WriteByte(Demo_cfp, DT_WEAPON_FIRE); |
| 480 | cf_WriteFloat(Demo_cfp, Gametime); |
| 481 | cf_WriteShort(Demo_cfp, objectnum); |
| 482 | cf_WriteInt(Demo_cfp, uniqueid); |
| 483 | gs_WriteVector(Demo_cfp, *pos); |
| 484 | gs_WriteVector(Demo_cfp, *dir); |
| 485 | gs_WriteShort(Demo_cfp, weapobjnum); |
| 486 | cf_WriteShort(Demo_cfp, gunnum); |
| 487 | } |
| 488 | } |
| 489 | |
| 490 | void DemoWriteHudMessage(uint32_t color, bool blink, char *msg) { |
| 491 | if (Demo_flags == DF_RECORDING) { |
no test coverage detected