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

Method Setup

src/SB/Game/zNPCTypeBossSandy.cpp:375–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375void zNPCBSandy::Setup()
376{
377 S32 i;
378 char objName[32];
379
380 newsfish = (zNPCNewsFish*)zSceneFindObject(xStrHash("NPC_NEWSCASTER"));
381 newsfish->TalkOnScreen(1);
382
383 strcpy(objName, "HEALTH_00");
384 for (i = 0; i < 3; i++)
385 {
386 objName[8] = '1' + (char)i;
387 underwear[i] = (zEntPickup*)zSceneFindObject(xStrHash(objName));
388 }
389
390 // Configure and initialize bossCam
391 bossCam.cfg.zone_rest.distance = 6.0f;
392 bossCam.cfg.zone_rest.height = 1.3f;
393 bossCam.cfg.zone_rest.height_focus = 2.0f;
394
395 bossCam.cfg.zone_above.distance = 3.0f;
396 bossCam.cfg.zone_above.height = 8.2f;
397 bossCam.cfg.zone_above.height_focus = 4.0f;
398
399 bossCam.cfg.zone_below.distance = 4.5f;
400 bossCam.cfg.zone_below.height = 0.15f;
401 bossCam.cfg.zone_below.height_focus = 2.0f;
402
403 bossCam.cfg.move_speed = 10.0f;
404 bossCam.cfg.turn_speed = 10.0f;
405 bossCam.cfg.stick_speed = 10.0f;
406 bossCam.cfg.stick_yaw_vel = 10.0f;
407 bossCam.cfg.max_yaw_vel = 10.0f;
408 bossCam.cfg.margin_angle = -0.4f;
409
410 bossCam.init();
411 bossCam.add_tweaks("NPC|zNPCBSandy|Boss Cam|");
412
413 // Configure and initialize specialBossCam
414 specialBossCam.cfg.zone_rest.distance = 9.7f;
415 specialBossCam.cfg.zone_rest.height = 4.0f;
416 specialBossCam.cfg.zone_rest.height_focus = 4.0f;
417
418 specialBossCam.cfg.zone_above.distance = 10.0f;
419 specialBossCam.cfg.zone_above.height = 7.0f;
420 specialBossCam.cfg.zone_above.height_focus = 0.15f;
421
422 specialBossCam.cfg.zone_below.distance = 10.0f;
423 specialBossCam.cfg.zone_below.height = 0.5f;
424 specialBossCam.cfg.zone_below.height_focus = 5.0f;
425
426 specialBossCam.cfg.move_speed = 10.0f;
427 specialBossCam.cfg.turn_speed = 10.0f;
428 specialBossCam.cfg.stick_speed = 10.0f;
429 specialBossCam.cfg.stick_yaw_vel = 10.0f;
430 specialBossCam.cfg.max_yaw_vel = 10.0f;
431 specialBossCam.cfg.margin_angle = -0.4f;
432

Callers

nothing calls this directly

Calls 6

zSceneFindObjectFunction · 0.85
TalkOnScreenMethod · 0.80
xStrHashFunction · 0.50
SetupFunction · 0.50
initMethod · 0.45
add_tweaksMethod · 0.45

Tested by

no test coverage detected