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

Function DemoReadPlayerDeath

Descent3/demofile.cpp:655–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655void DemoReadPlayerDeath(void) {
656 int16_t playernum = cf_ReadShort(Demo_cfp);
657 uint8_t melee = cf_ReadByte(Demo_cfp);
658 int fate = cf_ReadInt(Demo_cfp);
659 InitiatePlayerDeath(&Objects[playernum], melee ? true : false, fate);
660}
661
662void DemoWrite2DSound(int16_t soundidx, float volume) {
663 cf_WriteByte(Demo_cfp, DT_2D_SOUND);

Callers 1

DemoFrameFunction · 0.85

Calls 4

cf_ReadShortFunction · 0.85
cf_ReadByteFunction · 0.85
cf_ReadIntFunction · 0.85
InitiatePlayerDeathFunction · 0.85

Tested by

no test coverage detected