AddThinkToEnt(self, "CondHandler") function CondHandler() { if (self.InCond(12) && NetProps.GetPropInt(self, "m_lifeState") == 0) { ClientPrint(self, 4, "Healing Disabled!") self.GetActiveWeapon().AddAttribute("healing received penalty", 0) self.SetScriptOverlayMaterial("yiresahud/antiheal") } else { ClientPrint(self, 4, "") self.GetActiveWeapon().RemoveAttribute("healing received penalty") self.SetScriptOverlayMaterial("") } if (self.InCond(65) && NetProps.GetPropInt(self, "m_lifeState") == 0) { ClientPrint(self, 4, "Ammo Drained!") local primary = NetProps.GetPropIntArray(self, "m_iAmmo", 1) local secondary = NetProps.GetPropIntArray(self, "m_iAmmo", 2) local metal = NetProps.GetPropIntArray(self, "m_iAmmo", 3) local selfclass = NetProps.GetPropInt(self, "m_iClass") local delay = 0.5 primary = NetProps.GetPropIntArray(self, "m_iAmmo", 1) - (NetProps.GetPropIntArray(self, "m_iAmmo", 1) * 0.01) secondary = NetProps.GetPropIntArray(self, "m_iAmmo", 2) - (NetProps.GetPropIntArray(self, "m_iAmmo", 2) * 0.01) metal = NetProps.GetPropIntArray(self, "m_iAmmo", 3) - (NetProps.GetPropIntArray(self, "m_iAmmo", 3) * 0.01) NetProps.SetPropIntArray(self, "m_iAmmo", primary, 1) NetProps.SetPropIntArray(self, "m_iAmmo", secondary, 2) NetProps.SetPropIntArray(self, "m_iAmmo", metal, 3) return delay } return 0.0 }