mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-18 01:24:08 +00:00
VC replays
This commit is contained in:
parent
4d1182bdb1
commit
f7d5021ac5
12 changed files with 574 additions and 145 deletions
|
@ -31,6 +31,16 @@ void
|
|||
CExplosion::Initialise()
|
||||
{
|
||||
debug("Initialising CExplosion...\n");
|
||||
ClearAllExplosions();
|
||||
AudioHandle = DMAudio.CreateEntity(AUDIOTYPE_EXPLOSION, (void*)1);
|
||||
if (AudioHandle >= 0)
|
||||
DMAudio.SetEntityStatus(AudioHandle, true);
|
||||
debug("CExplosion ready\n");
|
||||
}
|
||||
|
||||
void
|
||||
CExplosion::ClearAllExplosions()
|
||||
{
|
||||
for (int i = 0; i < ARRAY_SIZE(gaExplosion); i++) {
|
||||
gaExplosion[i].m_ExplosionType = EXPLOSION_GRENADE;
|
||||
gaExplosion[i].m_vecPosition = CVector(0.0f, 0.0f, 0.0f);
|
||||
|
@ -44,10 +54,6 @@ CExplosion::Initialise()
|
|||
gaExplosion[i].m_fStartTime = 0.0f;
|
||||
gaExplosion[i].m_bIsBoat = false;
|
||||
}
|
||||
AudioHandle = DMAudio.CreateEntity(AUDIOTYPE_EXPLOSION, (void*)1);
|
||||
if (AudioHandle >= 0)
|
||||
DMAudio.SetEntityStatus(AudioHandle, true);
|
||||
debug("CExplosion ready\n");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue