void func_breakable_behave_destroyed(entity this)
{
- SetResource(this, RES_HEALTH, this.max_health);
+ SetResourceExplicit(this, RES_HEALTH, this.max_health);
this.takedamage = DAMAGE_NO;
if(this.bot_attack)
IL_REMOVE(g_bot_targets, this);
void func_breakable_destroy(entity this, entity actor, entity trigger);
void func_breakable_behave_restore(entity this)
{
- SetResource(this, RES_HEALTH, this.max_health);
+ SetResourceExplicit(this, RES_HEALTH, this.max_health);
if(this.sprite)
{
WaypointSprite_UpdateMaxHealth(this.sprite, this.max_health);
{
float n, i;
if(!GetResource(this, RES_HEALTH))
- SetResource(this, RES_HEALTH, 100);
+ SetResourceExplicit(this, RES_HEALTH, 100);
this.max_health = GetResource(this, RES_HEALTH);
// yes, I know, MOVETYPE_NONE is not available here, not that one would want it here anyway