MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetRandomExplosion

Function GetRandomExplosion

Descent3/fireball.cpp:2403–2408  ·  view source on GitHub ↗

Returns a random explosion based on the explosion size

Source from the content-addressed store, hash-verified

2401}
2402// Returns a random explosion based on the explosion size
2403int GetRandomExplosion(float size) {
2404 if (size > EXTRA_EXPLOSION_THRESHOLD)
2405 return BIG_EXPLOSION_INDEX;
2406 else
2407 return GetRandomMediumExplosion();
2408}
2409// TODO: MTS: only found in this file.
2410// Returns a random medium sized explosion
2411int GetRandomMediumExplosion() {

Callers 1

CreateObjectFireballFunction · 0.85

Calls 1

GetRandomMediumExplosionFunction · 0.85

Tested by

no test coverage detected