mirror of
https://github.com/halpz/re3.git
synced 2025-08-04 07:07:45 +00:00
script revision
This commit is contained in:
@ -2853,6 +2853,7 @@ CAutomobile::ProcessBuoyancy(void)
|
||||
|
||||
if(impulseRatio > 0.5f){
|
||||
bIsInWater = true;
|
||||
bIsDrowning = true;
|
||||
if(m_vecMoveSpeed.z < -0.1f)
|
||||
m_vecMoveSpeed.z = -0.1f;
|
||||
|
||||
@ -2867,8 +2868,11 @@ CAutomobile::ProcessBuoyancy(void)
|
||||
if(pPassengers[i]->IsPlayer() || !bWaterTight)
|
||||
pPassengers[i]->InflictDamage(nil, WEAPONTYPE_DROWNING, CTimer::GetTimeStep(), PEDPIECE_TORSO, 0);
|
||||
}
|
||||
}else
|
||||
}
|
||||
else {
|
||||
bIsInWater = false;
|
||||
bIsDrowning = false;
|
||||
}
|
||||
|
||||
static uint32 nGenerateRaindrops = 0;
|
||||
static uint32 nGenerateWaterCircles = 0;
|
||||
@ -2950,6 +2954,7 @@ CAutomobile::ProcessBuoyancy(void)
|
||||
}
|
||||
}else{
|
||||
bIsInWater = false;
|
||||
bIsDrowning = false;
|
||||
bTouchingWater = false;
|
||||
|
||||
static RwRGBA splashCol = {155, 155, 185, 196};
|
||||
|
Reference in New Issue
Block a user