1
0

Maybe improved arrow sinking

This commit is contained in:
Tiger Wang 2014-07-14 21:56:40 +01:00
parent f0187cc8f9
commit ad6494fb36

View File

@ -79,8 +79,8 @@ void cArrowEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFa
} }
Vector3d Hit = a_HitPos; Vector3d Hit = a_HitPos;
Vector3d SinkMovement = (GetSpeed() / 800); Vector3d SinkMovement = (GetSpeed() / 1000);
Hit += (SinkMovement * 0.01) / SinkMovement.Length(); // Make arrow sink into block a centimetre so it lodges (but not to far so it goes black clientside) Hit += SinkMovement * (0.0005 / SinkMovement.Length()); // Make arrow sink into block a centimetre so it lodges (but not to far so it goes black clientside)
super::OnHitSolidBlock(Hit, a_HitFace); super::OnHitSolidBlock(Hit, a_HitFace);
Vector3i BlockHit = Hit.Floor(); Vector3i BlockHit = Hit.Floor();