Skip to content

Commit

Permalink
Reduce volume
Browse files Browse the repository at this point in the history
  • Loading branch information
shroobloom committed Feb 19, 2025
1 parent d4d51a2 commit 42f5135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/entities/turret_bullets/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ function ENT:RunHeatHandler()
smokeEffect:SetOrigin( self:LocalToWorld( Vector( 0,35,22 ) ) )
smokeEffect:SetNormal( self:GetRight() )
smokeEffect:SetScale( 20 * (heatPenalty+1) )
smokeEffect:SetMagnitude( 0 )

util.Effect( "ElectricSpark", smokeEffect )
end

local totalSpinUp = self.SpinUp - heatPenalty
self.RampUpSound:ChangeVolume( self.SpinUp*3 )
self.RampUpSound:ChangeVolume( self.SpinUp )
self.RampUpSound:ChangePitch( 50 + self.SpinUp*100 )

self.ShotInterval = Lerp( totalSpinUp, MIN_SHOT_INTERVAL, MAX_SHOT_INTERVAL )
Expand Down

0 comments on commit 42f5135

Please # to comment.