MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / coalesce

Method coalesce

src/SB/Game/zNPCTypeDutchman.cpp:1539–1572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1537}
1538
1539void zNPCDutchman::coalesce(F32 delay)
1540{
1541 reappear();
1542 if (delay <= 0.0f)
1543 {
1544 flag.fade = FADE_NONE;
1545 disable_emitter(*fadein_emitter);
1546 disable_emitter(*dissolve_emitter);
1547 set_alpha(1.0f);
1548 stop_eye_glow();
1549 stop_hand_trail();
1550 if (fade.sound_handle != 0)
1551 {
1552 kill_sound(2, fade.sound_handle);
1553 fade.sound_handle = 0;
1554 }
1555 }
1556 else
1557 {
1558 flag.fade = FADE_COALESCE;
1559 fade.time = 0.0f;
1560 fade.duration = delay;
1561 fade.iduration = 1.0f / fade.duration;
1562 enable_emitter(*fadein_emitter);
1563 enable_emitter(*dissolve_emitter);
1564 set_alpha(0.0f);
1565 start_eye_glow();
1566 start_hand_trail();
1567 if (fade.sound_handle != 0)
1568 {
1569 set_volume(2, fade.sound_handle, 1.0f);
1570 }
1571 }
1572}
1573
1574void zNPCDutchman::reset_blob_mat()
1575{

Callers

nothing calls this directly

Calls 2

kill_soundFunction · 0.70
set_volumeFunction · 0.70

Tested by

no test coverage detected