Skip to content

Commit

Permalink
Fix Chrono Dampener visual effects not scaling with gun range
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Feb 7, 2024
1 parent 6fd4e1d commit af0ee33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/sim/weapons/aeon/ADFChronoDampener.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ ADFChronoDampener = Class(DefaultProjectileWeapon) {
self:PlaySound(bp.Audio.Fire)
end

-- extract radius information early to scale the effect size
local radius = (primaryWeapon and primaryWeapon:GetMaxRadius()) or buff.Radius
self.FxMuzzleFlashScale = 0.5 * radius/35

self:PlayFxMuzzleSequence(1)
self:StartEconomyDrain()
self:OnWeaponFired()
Expand All @@ -61,7 +65,6 @@ ADFChronoDampener = Class(DefaultProjectileWeapon) {
-- extract information from the buff blueprint
local buff = bp.Buffs[1]
local stunDuration = buff.Duration
local radius = (primaryWeapon and primaryWeapon:GetMaxRadius()) or buff.Radius
local sliceSize = radius / slices

for i = 1, slices do
Expand Down

0 comments on commit af0ee33

Please sign in to comment.