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

Function GetRandomMediumExplosion

Descent3/fireball.cpp:2411–2415  ·  view source on GitHub ↗

TODO: MTS: only found in this file. Returns a random medium sized explosion

Source from the content-addressed store, hash-verified

2409// TODO: MTS: only found in this file.
2410// Returns a random medium sized explosion
2411int GetRandomMediumExplosion() {
2412 int choices[] = {MED_EXPLOSION_INDEX, MED_EXPLOSION_INDEX2, MED_EXPLOSION_INDEX3};
2413 int pick = ps_rand() % 3;
2414 return (choices[pick]);
2415}
2416int GetRandomSmallExplosion() {
2417 int choices[] = {SMALL_EXPLOSION_INDEX, SMALL_EXPLOSION_INDEX2};
2418 int pick = ps_rand() % 2;

Callers 2

CreateExtraFireballsFunction · 0.85
GetRandomExplosionFunction · 0.85

Calls 1

ps_randFunction · 0.85

Tested by

no test coverage detected