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

Function DemoWritePlayerDeath

Descent3/demofile.cpp:648–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648void DemoWritePlayerDeath(object *player, bool melee, int fate) {
649 cf_WriteByte(Demo_cfp, DT_PLAYER_DEATH);
650 cf_WriteShort(Demo_cfp, OBJNUM(player));
651 cf_WriteByte(Demo_cfp, melee ? 1 : 0);
652 cf_WriteInt(Demo_cfp, fate);
653}
654
655void DemoReadPlayerDeath(void) {
656 int16_t playernum = cf_ReadShort(Demo_cfp);

Callers 1

KillPlayerFunction · 0.85

Calls 3

cf_WriteByteFunction · 0.85
cf_WriteShortFunction · 0.85
cf_WriteIntFunction · 0.85

Tested by

no test coverage detected