More arrow patches
* Further reduce instances of appearing black * Fix packet send and get arrows to more reliably lodge in blocks clientside * Fix hit detection failing at chunk boundaries + Use delegating constructors
This commit is contained in:
@@ -244,16 +244,11 @@ cProjectileEntity::cProjectileEntity(eKind a_Kind, cEntity * a_Creator, Vector3d
|
||||
|
||||
|
||||
cProjectileEntity::cProjectileEntity(eKind a_Kind, cEntity * a_Creator, Vector3d a_Pos, Vector3d a_Speed, double a_Width, double a_Height):
|
||||
Super(etProjectile, a_Pos, a_Width, a_Height),
|
||||
m_ProjectileKind(a_Kind),
|
||||
m_CreatorData(a_Creator->GetUniqueID(), a_Creator->IsPlayer() ? static_cast<cPlayer *>(a_Creator)->GetName() : "", a_Creator->GetEquippedWeapon().m_Enchantments),
|
||||
m_IsInGround(false)
|
||||
cProjectileEntity(a_Kind, a_Creator, a_Pos, a_Width, a_Height)
|
||||
{
|
||||
SetSpeed(a_Speed);
|
||||
SetYawFromSpeed();
|
||||
SetPitchFromSpeed();
|
||||
SetGravity(-12.0f);
|
||||
SetAirDrag(0.01f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user