friggin the riggin

This commit is contained in:
Nikolay Korolev
2021-07-25 11:58:03 +03:00
parent dc729009ac
commit b69222e017
4 changed files with 20 additions and 2 deletions

View File

@@ -2294,3 +2294,17 @@ CWorld::IsWanderPathClear(CVector const& point1, CVector const& point2, float di
}
return true;
}
void
CWorld::CheckObjectsEffectedByFire(float x, float y, float z, float radius, CEntity* reason)
{
int32 i = CPools::GetObjectPool()->GetSize();
while (i--) {
CObject* pObject = CPools::GetObjectPool()->GetSlot(i);
if (pObject) {
if (Abs(pObject->GetPosition().z - z) < 5.0f && Abs(pObject->GetPosition().x - x) < radius &&
Abs(pObject->GetPosition().y - y) < radius)
pObject->m_nLastWeaponToDamage = WEAPONTYPE_FLAMETHROWER;
}
}
}