#pragma once #include #ifdef SVQC float autocvar_g_buffs_medic_survive_chance; float autocvar_g_buffs_medic_survive_health; float autocvar_g_buffs_medic_rot; float autocvar_g_buffs_medic_max; float autocvar_g_buffs_medic_regen; float buff_Medic_CalculateSurviveDamage(float frag_damage, float health); #endif // SVQC CLASS(MedicBuff, Buff) ATTRIB(MedicBuff, m_name, string, _("Medic")); ATTRIB(MedicBuff, netname, string, "medic"); ATTRIB(MedicBuff, m_icon, string, "buff_medic"); ATTRIB(MedicBuff, m_skin, int, 1); ATTRIB(MedicBuff, m_color, vector, '1 0.12 0'); ENDCLASS(MedicBuff) REGISTER_BUFF(MEDIC, NEW(MedicBuff)); BUFF_SPAWNFUNCS(medic, BUFF_MEDIC) BUFF_SPAWNFUNC_Q3COMPAT(item_regen, BUFF_MEDIC) BUFF_SPAWNFUNC_Q3COMPAT(item_revival, BUFF_MEDIC)