Skip to content

Commit

Permalink
Make baseplates unable to be parented
Browse files Browse the repository at this point in the history
  • Loading branch information
marchc1 committed Jan 12, 2025
1 parent 793c0af commit 4686143
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/entities/acf_baseplate/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ function ENT:ACF_PostSpawn(_, _, _, ClientData)
end
end

function ENT:CFW_OnParentedTo(oldEntity, newEntity)

Check warning on line 36 in lua/entities/acf_baseplate/init.lua

View workflow job for this annotation

GitHub Actions / Lint / lint

"Unused variable"

Unused variable: oldEntity

Check warning on line 36 in lua/entities/acf_baseplate/init.lua

View workflow job for this annotation

GitHub Actions / Lint / lint

"Unused variable"

Unused variable: newEntity
ACF.SendNotify(self:CPPIGetOwner(), false, "Cannot parent an ACF baseplate to another entity.")
return false
end

local Text = "Baseplate Size: %.1f x %.1f x %.1f\nBaseplate Health: %.1f%%"
function ENT:UpdateOverlayText()
local h, mh = self.ACF.Health, self.ACF.MaxHealth
Expand Down

0 comments on commit 4686143

Please sign in to comment.