Added a BlockHitPos parameter to OnProjectileHitBlock
This commit is contained in:
@@ -67,12 +67,12 @@ protected:
|
||||
eBlockFace Face;
|
||||
if (bb.CalcLineIntersection(Line1, Line2, LineCoeff, Face))
|
||||
{
|
||||
if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, Face))
|
||||
Vector3d Intersection = Line1 + m_Projectile->GetSpeed() * LineCoeff;
|
||||
if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, Face, &Intersection))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Vector3d Intersection = Line1 + m_Projectile->GetSpeed() * LineCoeff;
|
||||
m_Projectile->OnHitSolidBlock(Intersection, Face);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user