mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
preset validity check + unoptimiz MultiSight to be able to override it
This commit is contained in:
parent
1b21b72f1f
commit
a5c1e2e7e0
@ -513,6 +513,7 @@ function SWEP:ImportPresetCode(str)
|
||||
end
|
||||
|
||||
function SWEP:SplitPresetContents(str)
|
||||
if !isstring(str) then return end
|
||||
if str[1] != "[" then return end
|
||||
if !string.find(str, "]X") then return end
|
||||
local name = string.sub(string.Split(str, "]")[1], 2)
|
||||
|
@ -318,14 +318,14 @@ do
|
||||
end
|
||||
|
||||
if pratt then
|
||||
swepBuildMultiSight(self)
|
||||
self:BuildMultiSight()
|
||||
end
|
||||
else
|
||||
if sighted and !inatt then
|
||||
swepExitSights(self)
|
||||
elseif not sighted and inatt then
|
||||
self:EnterSights()
|
||||
swepBuildMultiSight(self)
|
||||
self:BuildMultiSight()
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user