if (this.max_health)
{
this.takedamage = DAMAGE_YES;
- #ifdef SVQC
- SetResourceAmountExplicit(this, RESOURCE_HEALTH, this.max_health);
- #elif defined(CSQC)
- this.health = this.max_health;
- #endif
+ SetResource(this, RES_HEALTH, this.max_health);
}
this.state = STATE_DOWN;