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

Method start_fight

src/SB/Game/zNPCTypeDutchman.cpp:1647–1658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1645}
1646
1647void zNPCDutchman::start_fight()
1648{
1649 if (flag.fighting == 0 && life <= 0)
1650 {
1651 flag.fighting = 1;
1652 psy_instinct->GoalSet(0, 0);
1653 zCameraDisableTracking(CO_BOSS);
1654 boss_cam.start(globals.camera);
1655 boss_cam.set_targets((xVec3&)globals.player.ent.model->Mat->pos, (xVec3&)model->Mat->pos,
1656 2.0f);
1657 }
1658}
1659
1660void zNPCDutchman::set_life(S32 lf)
1661{

Callers

nothing calls this directly

Calls 4

zCameraDisableTrackingFunction · 0.85
GoalSetMethod · 0.80
set_targetsMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected