Merge pull request #69 from BClark09/patch-1

Fixed nails not being created
This commit is contained in:
William Moodhe / JetBoom 2014-12-19 22:06:32 -05:00
commit 6d6f98ba75

View file

@ -51,8 +51,8 @@ function ENT:AttachTo(baseent, attachent, physbone, physbone2)
if baseent:GetBarricadeHealth() == 0 then if baseent:GetBarricadeHealth() == 0 then
local health = baseent:GetDefaultBarricadeHealth() local health = baseent:GetDefaultBarricadeHealth()
if self.HealthOveride > 0 then health = self.HealthOveride end if self.HealthOveride and self.HealthOveride > 0 then health = self.HealthOveride end
health = health * self.HealthMultiplier health = health * (self.HealthMultiplier or 1)
baseent:SetMaxBarricadeHealth(health) baseent:SetMaxBarricadeHealth(health)
baseent:SetBarricadeHealth(health) baseent:SetBarricadeHealth(health)
baseent:SetBarricadeRepairs(baseent:GetMaxBarricadeRepairs()) baseent:SetBarricadeRepairs(baseent:GetMaxBarricadeRepairs())