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

Function StartPlayerExplosion

Descent3/Player.cpp:2686–2694  ·  view source on GitHub ↗

Force player to explode (this should be called to intercept the death sequencer's control of explosions

Source from the content-addressed store, hash-verified

2684
2685// Force player to explode (this should be called to intercept the death sequencer's control of explosions
2686void StartPlayerExplosion(int slot) {
2687 Death[slot].max_time_dying = 0.0f;
2688
2689 if (Death[slot].in_cockpit) {
2690 Death[slot].in_cockpit = false;
2691 SetHUDMode(HUD_LETTERBOX);
2692 Viewer_object = Death[slot].camera; // set the current viewer to be this new camera.
2693 }
2694}
2695
2696// Detaches a subobject from the player ship
2697void DeadPlayerShipHit(object *obj, int hit_room, vector *hitpt, float magnitude) {

Callers 2

collide_player_and_wallFunction · 0.85
PlayerShipBreakupFunction · 0.85

Calls 1

SetHUDModeFunction · 0.85

Tested by

no test coverage detected