Skip to content

Commit 7b7e1ea

Browse files
Fix linter complaints
1 parent 8e484c7 commit 7b7e1ea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lua/entities/acf_radar/init.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,20 +161,20 @@ local function ScanForEntities(Entity)
161161
local Velocity = TargetInfo.Velocity
162162
local Distance = TargetInfo.Distance
163163

164-
local Damage = Entity.Damage
165-
local Spread = ACF.MaxDamageInaccuracy * Damage
164+
local EntDamage = Entity.Damage
165+
local Spread = ACF.MaxDamageInaccuracy * EntDamage
166166

167167
for Ent in pairs(Detected) do
168168
local EntPos = Ent.Position or Ent:GetPos()
169169

170-
if CheckLOS(Origin, EntPos) and (math.Rand(0,1) >= (Damage / 10)) then
171-
local Spread = VectorRand(-Spread, Spread)
170+
if CheckLOS(Origin, EntPos) and (math.Rand(0,1) >= (EntDamage / 10)) then
171+
local EntSpread = VectorRand(-Spread, Spread)
172172
local EntVel = Ent.Velocity or Ent:GetVelocity()
173173
local Owner = GetEntityOwner(Entity.Owner, Ent)
174174
local Index = GetEntityIndex(Ent)
175175

176-
EntPos = EntPos + Spread
177-
EntVel = EntVel + Spread
176+
EntPos = EntPos + EntSpread
177+
EntVel = EntVel + EntSpread
178178
Count = Count + 1
179179

180180
local EntDist = Origin:Distance(EntPos)
@@ -185,7 +185,7 @@ local function ScanForEntities(Entity)
185185
Position = EntPos,
186186
Velocity = EntVel,
187187
Distance = EntDist,
188-
Spread = Spread,
188+
Spread = EntSpread,
189189
}
190190

191191
IDs[Count] = Index

0 commit comments

Comments
 (0)