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

Method Init

src/SB/Game/zNPCTypeDutchman.cpp:1044–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042}
1043
1044void zNPCDutchman::Init(xEntAsset* asset)
1045{
1046 // Function is at 60%
1047 // Laser_texture and m both need to be used?
1048
1049 char* scorch_name[2];
1050 S32 i;
1051 RwTexture* laser_texture;
1052 S32 model_index;
1053 xModelInstance* m = model;
1054 xFXRibbon* ribbon;
1055
1056 dutchman_count = dutchman_count + 1;
1057 boss_cam.init();
1058 zNPCCommon::Init(asset);
1059 flg_move = 1;
1060 ribbon = eye_scorch;
1061 flg_vuln = 1;
1062
1063 for (i = 0; i < 2; i++)
1064 {
1065 ribbon->init((S32)eye_scorch, (const char*)0x1ff);
1066 ribbon->set_default_config();
1067 ribbon->set_curve(ribbon->curve, 0x7);
1068 ribbon->set_texture("fx_streak1");
1069 ribbon->cfg.life_time = 5.0;
1070 ribbon->refresh_config();
1071 }
1072
1073 laser_raster = (RwRaster*)xSTFindAsset((U32)xStrHash("laser_beam_white_blue"), 0x0);
1074
1075 waves.init(0xf);
1076 slime.slices.init(0x3f);
1077}
1078
1079void zNPCDutchman::Setup()
1080{

Callers

nothing calls this directly

Calls 8

InitFunction · 0.50
xSTFindAssetFunction · 0.50
xStrHashFunction · 0.50
initMethod · 0.45
set_default_configMethod · 0.45
set_curveMethod · 0.45
set_textureMethod · 0.45
refresh_configMethod · 0.45

Tested by

no test coverage detected