Skip to content

Commit

Permalink
ACF_DamageUpdatesWireOverlay
Browse files Browse the repository at this point in the history
  • Loading branch information
marchc1 committed Jan 11, 2025
1 parent de56d58 commit a575250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/acf/damage/damage_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ function Damage.doPropDamage(Entity, DmgResult)
if HitRes.Damage >= Health then
HitRes.Kill = not Entity.ACF_KillableButIndestructible
Entity.ACF.Health = 0
if Entity.ACF_DamageUpdatesWireOverlay then
Entity:UpdateOverlay()
end
else
local NewHealth = Health - HitRes.Damage
local MaxHealth = EntACF.MaxHealth
Expand Down
1 change: 1 addition & 0 deletions lua/entities/acf_baseplate/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local Entities = Classes.Entities
ENT.ACF_Limit = 16
ENT.ACF_UserWeighable = true
ENT.ACF_KillableButIndestructible = true
ENT.ACF_DamageUpdatesWireOverlay = true

function ENT.ACF_OnVerifyClientData(ClientData)
ClientData.Size = Vector(ClientData.Length, ClientData.Width, ClientData.Thickness)
Expand Down

0 comments on commit a575250

Please sign in to comment.