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

Method VisSplashSparklies

src/SB/Game/zNPCHazard.cpp:1923–1942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1921}
1922
1923void NPCHazard::VisSplashSparklies()
1924{
1925 F32 rad = this->custdata.collide.rad_cur;
1926 for (S32 i = 0; i < 8; i++)
1927 {
1928 xVec3 pos_emit;
1929 pos_emit = *(xVec3*)At() * (2.0f * (xurand() - 0.5f));
1930 pos_emit += *(xVec3*)Right() * (2.0f * (xurand() - 0.5f));
1931 pos_emit.normalize();
1932 pos_emit *= rad;
1933 pos_emit += *(xVec3*)Up() * 0.2f;
1934 pos_emit += this->pos_hazard;
1935
1936 xVec3 vel_emit;
1937 vel_emit = *(xVec3*)Up();
1938 vel_emit *= 3.5f;
1939
1940 NPAR_EmitVSSpray(&pos_emit, &vel_emit);
1941 }
1942}
1943
1944void UVAModelInfo::Hemorrage()
1945{

Callers

nothing calls this directly

Calls 2

xurandFunction · 0.85
NPAR_EmitVSSprayFunction · 0.85

Tested by

no test coverage detected