| 621 | } |
| 622 | |
| 623 | void DemoWriteKillObject(object *hit_obj, object *killer, float damage, int death_flags, float delay, int seed) { |
| 624 | cf_WriteByte(Demo_cfp, DT_OBJ_EXPLODE); |
| 625 | cf_WriteShort(Demo_cfp, OBJNUM(hit_obj)); |
| 626 | cf_WriteShort(Demo_cfp, killer ? OBJNUM(killer) : 65535); |
| 627 | cf_WriteFloat(Demo_cfp, damage); |
| 628 | cf_WriteInt(Demo_cfp, death_flags); |
| 629 | cf_WriteFloat(Demo_cfp, delay); |
| 630 | cf_WriteShort(Demo_cfp, seed); |
| 631 | } |
| 632 | |
| 633 | void DemoReadKillObject(void) { |
| 634 | int16_t hit_objnum = cf_ReadShort(Demo_cfp); |
no test coverage detected