MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / InitializeSpecialEffects

Function InitializeSpecialEffects

TombEngine/Game/Setup.cpp:185–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void InitializeSpecialEffects()
186{
187 memset(&FireSparks, 0, MAX_SPARKS_FIRE * sizeof(FIRE_SPARKS));
188 memset(&SmokeSparks, 0, MAX_SPARKS_SMOKE * sizeof(SMOKE_SPARKS));
189 memset(&Gunshells, 0, MAX_GUNSHELL * sizeof(GUNSHELL_STRUCT));
190 memset(&Blood, 0, MAX_SPARKS_BLOOD * sizeof(BLOOD_STRUCT));
191 memset(&ShockWaves, 0, MAX_SHOCKWAVE * sizeof(SHOCKWAVE_STRUCT));
192 memset(&Particles, 0, MAX_PARTICLES * sizeof(Particle));
193
194 for (int i = 0; i < MAX_PARTICLES; i++)
195 {
196 Particles[i].on = false;
197 Particles[i].dynamic = -1;
198 }
199
200 NextFireSpark = 1;
201 NextSmokeSpark = 0;
202 NextGunShell = 0;
203 NextBlood = 0;
204
205 TEN::Entities::TR4::ClearBeetleSwarm();
206 TEN::Entities::Creatures::TR3::ClearFishSwarm();
207 TEN::Effects::Fireflies::ClearFireflySwarm();
208}
209
210void CustomObjects()
211{

Callers 1

DoLevelFunction · 0.85

Calls 3

ClearBeetleSwarmFunction · 0.85
ClearFishSwarmFunction · 0.85
ClearFireflySwarmFunction · 0.85

Tested by

no test coverage detected