We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c26a9 commit 6698813Copy full SHA for 6698813
lua/entities/acf_rack/init.lua
@@ -109,7 +109,7 @@ do -- Spawning and Updating --------------------
109
Entity.ShortName = Rack.ID
110
Entity.EntType = Rack.EntType
111
Entity.RackData = Rack
112
- Entity.Caliber = Rack.Caliber
+ Entity.Caliber = Rack.Caliber or 0
113
Entity.MagSize = Rack.MagSize or 1
114
Entity.ForcedIndex = Entity.ForcedIndex and math.max(Entity.ForcedIndex, Entity.MagSize)
115
Entity.PointIndex = 1
@@ -833,6 +833,7 @@ do -- Misc -------------------------------------
833
local Reload = IsValid(Missile) and Missile.ReloadTime or 1
834
835
self.BulletData = BulletData
836
+ self.Caliber = BulletData.Caliber
837
self.NextFire = Point.NextFire
838
self.Jammed = Point.Disabled
839
0 commit comments