mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-07-03 22:07:02 +00:00
TU31 feature: Arrows decelerate underwater and extinguish if on fire
This commit is contained in:
parent
4cb96bcb44
commit
d463fd4bef
|
|
@ -445,7 +445,13 @@ void Arrow::tick()
|
|||
float s = 1 / 4.0f;
|
||||
level->addParticle(eParticleType_bubble, x - xd * s, y - yd * s, z - zd * s, xd, yd, zd);
|
||||
}
|
||||
inertia = 0.80f;
|
||||
inertia *= 0.1f;
|
||||
gravity *= 2.0f;
|
||||
}
|
||||
|
||||
if (isInLava())
|
||||
{
|
||||
setOnFire(100);
|
||||
}
|
||||
|
||||
xd *= inertia;
|
||||
|
|
|
|||
Loading…
Reference in a new issue