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

Method Process

src/SB/Game/zNPCTypeBossSB2.cpp:1286–1319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1284}
1285
1286void zNPCB_SB2::Process(xScene* xscn, F32 dt)
1287{
1288 if (this->flag.updated == FALSE)
1289 {
1290 boss_cam.set_targets((xVec3&)globals.player.ent.model->Mat->pos, location(),
1291 5.0f);
1292 this->flag.updated = TRUE;
1293 }
1294
1295 this->check_life();
1296 this->player_damage_timer = this->player_damage_timer - dt;
1297
1298 if ((globals.player.Health < this->old_player_health) && this->old_player_health != 0)
1299 {
1300 this->player_damage_timer = tweak.player_damage_time;
1301 say(1);
1302 }
1303
1304 this->old_player_health = globals.player.Health;
1305
1306 if ((SomethingWonderful() & 0x23) == 0)
1307 {
1308 delay = delay + dt;
1309 this->psy_instinct->Timestep(dt, 0);
1310 }
1311
1312 this->update_nodes(dt);
1313 this->update_slugs(dt);
1314 this->update_move(dt);
1315 this->update_turn(dt);
1316 this->update_camera(dt);
1317 this->check_hit_fail();
1318 zNPCCommon::Process(xscn, dt);
1319}
1320
1321void zNPCB_SB2::NewTime(xScene* xscn, F32 dt)
1322{

Callers

nothing calls this directly

Calls 7

sayFunction · 0.85
SomethingWonderfulFunction · 0.85
set_targetsMethod · 0.80
update_moveMethod · 0.80
update_cameraMethod · 0.80
ProcessFunction · 0.50
TimestepMethod · 0.45

Tested by

no test coverage detected