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

Method Setup

src/SB/Game/zNPCTypeBossSB2.cpp:1177–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175}
1176
1177void zNPCB_SB2::Setup()
1178{
1179 xEnt* ent;
1180 xSphere o;
1181
1182 this->create_glow_light();
1183 this->init_nodes();
1184 zNPCBoss::Setup();
1185
1186 for (S32 i = 0; i < 16; i++)
1187 {
1188 this->platforms[i].ent = 0;
1189 zSceneFindObject(xStrHash(platform_hooks[i].name));
1190 }
1191
1192 if (this->models[3]->Surf == NULL)
1193 {
1194 this->models[3]->Surf = &create_surface();
1195 }
1196
1197 if (this->models[0]->Surf == NULL)
1198 {
1199 this->models[0]->Surf = &create_surface();
1200 }
1201
1202 // models[3]->Surf->moprops = 0;
1203 // models[0]->Surf->moprops = 7;
1204
1205 this->scan_cronies();
1206 (xBase*)&this->newsfish->id = zSceneFindObject(xStrHash("NPC_NEWSCASTER"));
1207
1208 if (this->newsfish->id != NULL)
1209 {
1210 this->newsfish->TalkOnScreen(1);
1211 }
1212}
1213
1214void zNPCB_SB2::SelfSetup()
1215{

Callers

nothing calls this directly

Calls 4

zSceneFindObjectFunction · 0.85
TalkOnScreenMethod · 0.80
SetupFunction · 0.50
xStrHashFunction · 0.50

Tested by

no test coverage detected