Fixed Removeconding on health packs if overhealed
This commit is contained in:
parent
f03709c622
commit
ab3efef321
@ -148,7 +148,7 @@ void CreateMove() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Infinite healthpacks (I'll probably have to move this somewhere else)
|
// Infinite healthpacks (I'll probably have to move this somewhere else)
|
||||||
if (infinite_packs && CE_GOOD(LOCAL_E) && LOCAL_E->m_iHealth != LOCAL_E->m_iMaxHealth) {
|
if (infinite_packs && CE_GOOD(LOCAL_E) && LOCAL_E->m_iHealth <= LOCAL_E->m_iMaxHealth) {
|
||||||
ICollideable* p = RAW_ENT(LOCAL_E)->GetCollideable();
|
ICollideable* p = RAW_ENT(LOCAL_E)->GetCollideable();
|
||||||
const Vector& max1 = p->OBBMaxs();
|
const Vector& max1 = p->OBBMaxs();
|
||||||
const Vector& min1 = p->OBBMins();
|
const Vector& min1 = p->OBBMins();
|
||||||
|
Reference in New Issue
Block a user