mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 12:24:07 +00:00
Running script part 3
This commit is contained in:
parent
60364f11da
commit
5acce16261
19 changed files with 758 additions and 21 deletions
|
@ -377,12 +377,13 @@ CVehicle::ProcessDelayedExplosion(void)
|
|||
return;
|
||||
|
||||
int tick = CTimer::GetTimeStep()/60.0f*1000.0f;
|
||||
int16 prev = m_nBombTimer;
|
||||
if(tick > m_nBombTimer)
|
||||
m_nBombTimer = 0;
|
||||
else
|
||||
m_nBombTimer -= tick;
|
||||
|
||||
if(IsCar() && ((CAutomobile*)this)->m_bombType == CARBOMB_TIMEDACTIVE && (m_nBombTimer & 0xFE00) != 0xFE00)
|
||||
if(IsCar() && ((CAutomobile*)this)->m_bombType == CARBOMB_TIMEDACTIVE && (m_nBombTimer & 0xFE00) != (prev & 0xFE00))
|
||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_CAR_BOMB_TICK, 0.0f);
|
||||
|
||||
if (m_nBombTimer != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue