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

Method WavesOfEvil

src/SB/Game/zNPCHazard.cpp:1232–1254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232void NPCHazard::WavesOfEvil()
1233{
1234 F32 rad = this->custdata.collide.rad_cur;
1235
1236 for (S32 i = 0; i < 8; i++)
1237 {
1238 xVec3 pos_emit;
1239 xVec3 vel_emit;
1240
1241 pos_emit = *(xVec3*)At() * (2.0f * (xurand() - 0.5f));
1242 pos_emit += *(xVec3*)Right() * (2.0f * (xurand() - 0.5f));
1243 pos_emit.normalize();
1244 pos_emit *= rad;
1245
1246 pos_emit += *(xVec3*)Up() * 0.2f;
1247 pos_emit += this->pos_hazard;
1248
1249 vel_emit = *(xVec3*)Up();
1250 vel_emit *= 5.5f;
1251
1252 NPAR_EmitH2OSpray(&pos_emit, &vel_emit);
1253 }
1254}
1255
1256S32 NPCHazard::KickBlooshBlob(const xVec3* vel_flight)
1257{

Callers

nothing calls this directly

Calls 2

xurandFunction · 0.85
NPAR_EmitH2OSprayFunction · 0.85

Tested by

no test coverage detected