Improved infinite packs
This commit is contained in:
parent
3edd58568b
commit
086b4ff8e8
@ -159,8 +159,8 @@ void CreateMove() {
|
|||||||
if (e->m_iClassID != CL_CLASS(CBaseAnimating)) continue;
|
if (e->m_iClassID != CL_CLASS(CBaseAnimating)) continue;
|
||||||
if (e->m_ItemType != ITEM_HEALTH_SMALL && e->m_ItemType != ITEM_HEALTH_MEDIUM && e->m_ItemType != ITEM_HEALTH_LARGE) continue;
|
if (e->m_ItemType != ITEM_HEALTH_SMALL && e->m_ItemType != ITEM_HEALTH_MEDIUM && e->m_ItemType != ITEM_HEALTH_LARGE) continue;
|
||||||
ICollideable* c = RAW_ENT(e)->GetCollideable();
|
ICollideable* c = RAW_ENT(e)->GetCollideable();
|
||||||
const Vector& max2 = c->OBBMaxs() + e->m_vecOrigin;// + Vector(10, 10, 10);
|
const Vector& max2 = c->OBBMaxs() + e->m_vecOrigin + Vector(8, 8, 8);
|
||||||
const Vector& min2 = c->OBBMins() + e->m_vecOrigin;// - Vector(10, 10, 10);
|
const Vector& min2 = c->OBBMins() + e->m_vecOrigin - Vector(8, 8, 8);
|
||||||
if ( (min1.x <= max2.x && max1.x >= min2.x) &&
|
if ( (min1.x <= max2.x && max1.x >= min2.x) &&
|
||||||
(min1.y <= max2.y && max1.y >= min2.y) &&
|
(min1.y <= max2.y && max1.y >= min2.y) &&
|
||||||
(min1.z <= max2.z && max1.z >= min2.z) ) {
|
(min1.z <= max2.z && max1.z >= min2.z) ) {
|
||||||
|
Reference in New Issue
Block a user