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

Method emit_slug

src/SB/Game/zNPCTypeBossSB2.cpp:1440–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1438}
1439
1440void zNPCB_SB2::emit_slug(zNPCB_SB2::slug_enum which)
1441{
1442 slug_data& slug = slugs[which];
1443 F32 launch_ang;
1444 F32 accel_time;
1445
1446 if (slug.ent->id != 0)
1447 {
1448 slug.stage = (zNPCB_SB2::slug_stage)1;
1449 slug.time = 0.0f;
1450 slug.stage_delay = tweak.karate.aim_time;
1451 slug.vel = 0.0f;
1452 slug.dist = 0.0f;
1453 slug.abandoned = 0;
1454
1455 xMat4x3Mul((xMat4x3*)model->Mat, 0 , 0);
1456 xMat3x3RMulVec(&tweak.karate.emit_offset, 0, 0);
1457 }
1458}
1459
1460void zNPCB_SB2::fire_slug(zNPCB_SB2::slug_enum which, zNPCB_SB2::platform_data& target)
1461{

Callers

nothing calls this directly

Calls 2

xMat4x3MulFunction · 0.85
xMat3x3RMulVecFunction · 0.50

Tested by

no test coverage detected