mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
Full circle for num > 1 weaponry
- Replaced the dotted crosshair when using weapons that shoot 2 or more projectiles at once. Yes, this might look dodgy. Yes, some might not at all like this. But I can assure whoever reads this, that the dotted crosshair looked off.
This commit is contained in:
parent
c0fec2e58a
commit
4820bed09d
@ -253,19 +253,24 @@ function SWEP:DoDrawCrosshair(x, y)
|
||||
drawshadowrect(x - (dotsize / 2) - (minigap * 2), y - (dotsize / 2) + gap + (staticgap * 5.5), dotsize, dotsize, col)
|
||||
drawshadowrect(x - (dotsize / 2) + (minigap * 2), y - (dotsize / 2) + gap + (staticgap * 5.5), dotsize, dotsize, col)
|
||||
elseif self:GetProcessedValue("Num", true) > 1 and !forcestd then
|
||||
local dotcount = 10
|
||||
-- local dotcount = 10
|
||||
|
||||
for i = 1, dotcount do
|
||||
local rad = i * math.pi * 2 / dotcount
|
||||
rad = rad - (math.pi / 2)
|
||||
local cx = math.cos(rad)
|
||||
local cy = math.sin(rad)
|
||||
-- for i = 1, dotcount do
|
||||
-- local rad = i * math.pi * 2 / dotcount
|
||||
-- rad = rad - (math.pi / 2)
|
||||
-- local cx = math.cos(rad)
|
||||
-- local cy = math.sin(rad)
|
||||
|
||||
cx = cx * gap
|
||||
cy = cy * gap
|
||||
-- cx = cx * gap
|
||||
-- cy = cy * gap
|
||||
|
||||
drawshadowrect(x + cx - (dotsize / 2), y + cy - (dotsize / 2), dotsize, dotsize, col)
|
||||
end
|
||||
-- drawshadowrect(x + cx - (dotsize / 2), y + cy - (dotsize / 2), dotsize, dotsize, col)
|
||||
-- end
|
||||
|
||||
surface.DrawCircle(x, y, dotsize + gap - 1, col.r, col.g, col.b, 255) -- Middle White / Coloured One
|
||||
surface.DrawCircle(x, y, dotsize + gap, 0, 0, 0, 100) -- Outside Gray
|
||||
surface.DrawCircle(x, y, dotsize + gap -2, 0, 0, 0, 100) -- Inside Gray
|
||||
|
||||
else
|
||||
if mode > 1 then
|
||||
-- Burst crosshair
|
||||
|
Loading…
Reference in New Issue
Block a user