Fixed removeconding at full health from last update
This commit is contained in:
parent
69b98fed2b
commit
7fb57cd54c
@ -157,13 +157,15 @@ void CreateMove() {
|
||||
if (e->m_iClassID != CL_CLASS(CBaseAnimating)) continue;
|
||||
if (e->m_flDistance > 54.0f) continue;
|
||||
// Lag for health
|
||||
if (LOCAL_E->m_iHealth <= LOCAL_E->m_iMaxHealth) {
|
||||
if (LOCAL_E->m_iHealth < LOCAL_E->m_iMaxHealth) {
|
||||
if (e->m_ItemType == ITEM_HEALTH_SMALL || e->m_ItemType == ITEM_HEALTH_MEDIUM || e->m_ItemType == ITEM_HEALTH_LARGE) amount = 900;
|
||||
}
|
||||
// Lag for ammo / metal
|
||||
if (LOCAL_E->m_iAmmo <= LOCAL_E->m_iMaxAmmo) {
|
||||
// TODO: Figure out way to properly check for not having max-ammo
|
||||
//
|
||||
// if (LOCAL_E->m_iAmmo < LOCAL_E->m_iMaxAmmo) {
|
||||
if (e->m_ItemType == ITEM_AMMO_SMALL || e->m_ItemType == ITEM_AMMO_MEDIUM || e->m_ItemType == ITEM_AMMO_LARGE) amount = 900;
|
||||
}
|
||||
|
||||
|
||||
// Not working for some reason?
|
||||
/*ICollideable* c = RAW_ENT(e)->GetCollideable();
|
||||
|
Reference in New Issue
Block a user