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

Function GetRandomSmallExplosion

Descent3/fireball.cpp:2416–2420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2414 return (choices[pick]);
2415}
2416int GetRandomSmallExplosion() {
2417 int choices[] = {SMALL_EXPLOSION_INDEX, SMALL_EXPLOSION_INDEX2};
2418 int pick = ps_rand() % 2;
2419 return (choices[pick]);
2420}
2421// TODO: MTS: only found in this file.
2422int GetRandomBillowingExplosion() {
2423 int choices[] = {BILLOWING_INDEX, MED_EXPLOSION_INDEX2};

Callers 5

DoSplinterFrameFunction · 0.85
DoDyingFrameFunction · 0.85
DoWeaponExplodedFunction · 0.85
DoNewPlayerDeathFrameFunction · 0.85

Calls 1

ps_randFunction · 0.85

Tested by

no test coverage detected