1
0

Added HOOK_PROJECTILE_HIT_BLOCK.

This commit is contained in:
STRWarrior
2014-03-29 16:00:45 +01:00
parent a6ef40cb6e
commit ec4638a228
6 changed files with 50 additions and 0 deletions

View File

@@ -67,6 +67,11 @@ protected:
eBlockFace Face;
if (bb.CalcLineIntersection(Line1, Line2, LineCoeff, Face))
{
if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile))
{
return true;
}
Vector3d Intersection = Line1 + m_Projectile->GetSpeed() * LineCoeff;
m_Projectile->OnHitSolidBlock(Intersection, Face);
return true;