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

Method init_beam

src/SB/Game/zNPCTypeBossPlankton.cpp:1331–1358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1329}
1330
1331void zNPCBPlankton::init_beam()
1332{
1333 beam.init((U32)&beam, "Plankton\'s Beam");
1334 beam.set_texture("plankton_laser_bolt");
1335
1336 beam.refresh_config();
1337 //
1338 beam_ring.init(0, "Plankton\'s Beam Rings");
1339 beam_ring.set_curve((xDecalEmitter::curve_node*)&beam_ring.curve, beam_ring_curve);
1340 beam_ring.set_texture("bubble");
1341 beam_ring.set_default_config();
1342 beam_ring.cfg.flags = 0;
1343 beam_ring.cfg.life_time = 0.0f;
1344 beam_ring.cfg.blend_src = 5;
1345 beam_ring.cfg.blend_dst = 2;
1346 beam_ring.refresh_config();
1347
1348 //
1349 beam_glow.init(0, "Plankton\'s Beam Glow");
1350 beam_glow.set_curve((xDecalEmitter::curve_node*)&beam_glow.curve, 0);
1351 beam_glow.set_texture("fx_firework");
1352 beam_glow.set_default_config();
1353 beam_glow.cfg.flags = 0;
1354 beam_glow.cfg.life_time = 0.0f;
1355 beam_glow.cfg.blend_src = 5;
1356 beam_glow.cfg.blend_dst = 2;
1357 beam_glow.refresh_config();
1358}
1359
1360void zNPCBPlankton::setup_beam()
1361{

Callers

nothing calls this directly

Calls 5

initMethod · 0.45
set_textureMethod · 0.45
refresh_configMethod · 0.45
set_curveMethod · 0.45
set_default_configMethod · 0.45

Tested by

no test coverage detected