Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,4 @@ And love to all the following people, for being awesome, for teaching me things,
* xDShot
* datae
* Spartains
* KM_CM
154 changes: 77 additions & 77 deletions lua/autorun/buu_base_settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,75 +13,75 @@ if CLIENT then
}

BuuBaseSettings.Options["#Default"] = {
cl_buu_crosshairhealth = "2",
cl_buu_crosshairstyle = "4",
cl_buu_crosshairred = "255",
cl_buu_crosshairgreen = "255",
cl_buu_crosshairblue = "255",
cl_buu_crosshairalpha = "255",
cl_buu_crosshairhealth = "2",
cl_buu_crosshairstyle = "4",
cl_buu_crosshairred = "255",
cl_buu_crosshairgreen = "255",
cl_buu_crosshairblue = "255",
cl_buu_crosshairalpha = "255",
cl_buu_ironsightrolling = "1",
cl_buu_barrelsmoke = "1",
cl_buu_customjump = "1",
cl_buu_custombob = "1",
cl_buu_customsway = "1",
cl_buu_magdrop = "1",
cl_buu_magdroplifetime = "10",
cl_buu_ironsensitivity = "0.7",
cl_buu_barrelsmoke = "1",
cl_buu_customjump = "1",
cl_buu_custombob = "1",
cl_buu_customsway = "1",
cl_buu_magdrop = "1",
cl_buu_magdroplifetime = "10",
cl_buu_ironsensitivity = "0.7",
cl_buu_scopesensitivity = "0.3",
cl_buu_lowammowarn = "1",
cl_buu_slidetilt = "1",
cl_buu_lowammowarn = "1",
cl_buu_slidetilt = "1",
cl_buu_thirdpersonlaser = "1",
cl_buu_thirdpersonlight = "1"
}

panel:AddControl("ComboBox", BuuBaseSettings)
panel:AddControl( "ComboBox", BuuBaseSettings )

panel:AddControl("Slider", {
Label = "Crosshair Health",
panel:AddControl( "Slider", {
Label = "Crosshair Health",
Command = "cl_buu_crosshairhealth",
Type = "Integer",
Min = "0",
Max = "2",
Type = "Integer",
Min = "0",
Max = "2",
} )

panel:AddControl("Slider", {
Label = "Crosshair Style",
Label = "Crosshair Style",
Command = "cl_buu_crosshairstyle",
Type = "Integer",
Min = "0",
Max = "4",
Type = "Integer",
Min = "0",
Max = "4",
})

panel:AddControl("Slider", {
Label = "Crosshair Red",
Command = "cl_buu_crosshairred",
Type = "Integer",
Min = "0",
Max = "255",
Label = "Crosshair Red",
Command = "cl_buu_crosshairred",
Type = "Integer",
Min = "0",
Max = "255",
})

panel:AddControl("Slider", {
Label = "Crosshair Green",
Command = "cl_buu_crosshairgreen",
Type = "Integer",
Min = "0",
Max = "255",
Label = "Crosshair Green",
Command = "cl_buu_crosshairgreen",
Type = "Integer",
Min = "0",
Max = "255",
})

panel:AddControl("Slider", {
Label = "Crosshair Blue",
Command = "cl_buu_crosshairblue",
Type = "Integer",
Min = "0",
Max = "255",
Label = "Crosshair Blue",
Command = "cl_buu_crosshairblue",
Type = "Integer",
Min = "0",
Max = "255",
})

panel:AddControl("Slider", {
Label = "Crosshair Alpha",
Command = "cl_buu_crosshairalpha",
Type = "Integer",
Min = "0",
Max = "255",
Label = "Crosshair Alpha",
Command = "cl_buu_crosshairalpha",
Type = "Integer",
Min = "0",
Max = "255",
})

panel:AddControl("Label", {Text = ""})
Expand Down Expand Up @@ -127,29 +127,29 @@ if CLIENT then
})

panel:AddControl("Slider", {
Label = "Dropped mags lifetime",
Command = "cl_buu_magdroplifetime",
Type = "Integer",
Min = "1",
Max = "10000",
Label = "Dropped mags lifetime",
Command = "cl_buu_magdroplifetime",
Type = "Integer",
Min = "1",
Max = "10000",
})

panel:AddControl("Label", {Text = ""})

panel:AddControl("Slider", {
Label = "Ironsight sensitivity",
Command = "cl_buu_ironsensitivity",
Type = "Float",
Min = "0",
Max = "1",
Label = "Ironsight sensitivity",
Command = "cl_buu_ironsensitivity",
Type = "Float",
Min = "0",
Max = "1",
})

panel:AddControl("Slider", {
Label = "Scope Sensitivity",
Command = "cl_buu_scopesensitivity",
Type = "Float",
Min = "0",
Max = "1",
Label = "Scope Sensitivity",
Command = "cl_buu_scopesensitivity",
Type = "Float",
Min = "0",
Max = "1",
})

panel:AddControl("Label", {Text = ""})
Expand All @@ -172,26 +172,26 @@ if CLIENT then
spawnmenu.AddToolMenuOption("Options", "Buu Base Settings", "BuuBaseSettings_Server", "Server", "", "", function(panel)

local BuuBaseSettings = {
Options = {},
CVars = {},
Label = "#Presets",
Options = {},
CVars = {},
Label = "#Presets",
MenuButton = "1",
Folder = "Buu Base Settings"
Folder = "Buu Base Settings"
}

BuuBaseSettings.Options["#Default"] = {
sv_buu_ironsights = "1",
sv_buu_crosshair = "1",
sv_buu_sprinting = "1",
sv_buu_nearwall = "1",
sv_buu_ladder = "1",
sv_buu_ironsightsway = "1",
sv_buu_ironsights = "1",
sv_buu_crosshair = "1",
sv_buu_sprinting = "1",
sv_buu_nearwall = "1",
sv_buu_ladder = "1",
sv_buu_ironsightsway = "1",
sv_buu_shotgunwreckdoors = "1",
sv_buu_sniperbreath = "1",
sv_buu_canslide = "1",
sv_buu_slidedamage = "1",
sv_buu_slideshoot = "1",
sv_buu_customflashlight = "1",
sv_buu_sniperbreath = "1",
sv_buu_canslide = "1",
sv_buu_slidedamage = "1",
sv_buu_slideshoot = "1",
sv_buu_customflashlight = "1",
sv_buu_bulletpenetration = "1",
}

Expand Down Expand Up @@ -276,7 +276,7 @@ end


/*===============================================================
Clientside
Clientside
===============================================================*/

if !ConVarExists("cl_buu_crosshairhealth") then
Expand Down Expand Up @@ -356,7 +356,7 @@ if !ConVarExists("cl_buu_magdroplifetime") then
end

/*===============================================================
Serverside
Serverside
===============================================================*/

if !ConVarExists("sv_buu_ironsights") then
Expand Down
4 changes: 2 additions & 2 deletions lua/effects/buu_muzzle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function EFFECT:Init(data)
self.Forward = data:GetNormal()
self.Angle = self.Forward:Angle()
self.Right = self.Angle:Right()

-- Ensure the weapon exists
if (!IsValid(self.WeaponEnt) || self.WeaponEnt:GetOwner() == nil) then return end

Expand All @@ -38,7 +38,7 @@ function EFFECT:Init(data)
particle:SetEndSize(7*i)
particle:SetRoll(math.Rand(180, 480))
particle:SetRollDelta(math.Rand(-1, 1))
particle:SetColor(255, 255, 255)
particle:SetColor(255, 255, 255)
particle:SetAirResistance(160)
end

Expand Down
Loading