X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fturrets%2Fsv_turrets.qc;h=372daf928e02823d9d1dc92e0db1f309c54c4fe2;hb=aa5a713b068b4e4b4ecd2ca69bd375e20c7b4237;hp=f721940c17fea8241d9e8c22cd168272353ba8d8;hpb=fe65404b4515e2f7db18a71c9953f318003b214e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/sv_turrets.qc b/qcsrc/common/turrets/sv_turrets.qc index f721940c1..372daf928 100644 --- a/qcsrc/common/turrets/sv_turrets.qc +++ b/qcsrc/common/turrets/sv_turrets.qc @@ -402,7 +402,7 @@ void load_unit_settings(entity ent, bool is_reload) ent.ammo_max *= ent.turret_scale_ammo; ent.ammo_recharge *= ent.turret_scale_ammo; ent.aim_speed *= ent.turret_scale_aim; - ent.health *= ent.turret_scale_health; + SetResourceExplicit(ent, RES_HEALTH, GetResource(ent, RES_HEALTH) * ent.turret_scale_health); ent.respawntime *= ent.turret_scale_respawn; ent.shot_dmg *= ent.turret_scale_damage; ent.shot_refire *= ent.turret_scale_refire;