mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
Preset install sound
This commit is contained in:
parent
76c5e5addb
commit
0b793baba9
@ -78,6 +78,7 @@ function SWEP:CreateHUD_Presets(scroll)
|
||||
end
|
||||
btn.DoClick = function(self2)
|
||||
self:LoadPreset(preset)
|
||||
surface.PlaySound("arc9/preset_install.ogg")
|
||||
end
|
||||
btn.DoRightClick = function(self2)
|
||||
self:DeletePreset(preset)
|
||||
|
@ -62,7 +62,10 @@ function SWEP:LoadPreset(filename)
|
||||
|
||||
for i, k in pairs(self.Attachments) do
|
||||
local slottbl = tbl[i]
|
||||
if !slottbl.Installed then continue end
|
||||
if !slottbl.Installed then
|
||||
k.Installed = nil
|
||||
continue
|
||||
end
|
||||
self.Attachments[i].Installed = slottbl.Installed
|
||||
self.Attachments[i].ToggleNum = slottbl.ToggleNum
|
||||
self.Attachments[i].SubAttachments = slottbl.SubAttachments
|
||||
|
BIN
sound/arc9/preset_install.ogg
Normal file
BIN
sound/arc9/preset_install.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user