Skip to content

Commit

Permalink
Store next loaded missile caliber on racks
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman committed Apr 16, 2024
1 parent 51c26a9 commit 6698813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/entities/acf_rack/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ do -- Spawning and Updating --------------------
Entity.ShortName = Rack.ID
Entity.EntType = Rack.EntType
Entity.RackData = Rack
Entity.Caliber = Rack.Caliber
Entity.Caliber = Rack.Caliber or 0
Entity.MagSize = Rack.MagSize or 1
Entity.ForcedIndex = Entity.ForcedIndex and math.max(Entity.ForcedIndex, Entity.MagSize)
Entity.PointIndex = 1
Expand Down Expand Up @@ -833,6 +833,7 @@ do -- Misc -------------------------------------
local Reload = IsValid(Missile) and Missile.ReloadTime or 1

self.BulletData = BulletData
self.Caliber = BulletData.Caliber
self.NextFire = Point.NextFire
self.Jammed = Point.Disabled

Expand Down

0 comments on commit 6698813

Please sign in to comment.