Merge pull request #69 from BClark09/patch-1
Fixed nails not being created
This commit is contained in:
commit
6d6f98ba75
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue