MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DemoWriteKillObject

Function DemoWriteKillObject

Descent3/demofile.cpp:623–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623void 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
633void DemoReadKillObject(void) {
634 int16_t hit_objnum = cf_ReadShort(Demo_cfp);

Callers 1

KillObjectFunction · 0.85

Calls 4

cf_WriteByteFunction · 0.85
cf_WriteShortFunction · 0.85
cf_WriteFloatFunction · 0.85
cf_WriteIntFunction · 0.85

Tested by

no test coverage detected