1
0

Added a BlockHitPos parameter to OnProjectileHitBlock

This commit is contained in:
STRWarrior
2014-03-30 14:04:44 +02:00
parent 47d5395d24
commit 66f1bb7b67
6 changed files with 9 additions and 9 deletions

View File

@@ -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;
}