diff --git a/icon.jpg b/icon.jpg deleted file mode 100644 index 19d13c5..0000000 Binary files a/icon.jpg and /dev/null differ diff --git a/lua/weapons/wowozela.lua b/lua/weapons/wowozela.lua index 2b12628..3c96ae0 100644 --- a/lua/weapons/wowozela.lua +++ b/lua/weapons/wowozela.lua @@ -12,7 +12,7 @@ SWEP.Base = "weapon_base" SWEP.Author = "" SWEP.Contact = "" -SWEP.Purpose = "" +SWEP.Purpose = "A simple fretless instrument that changes with your eye pitch" SWEP.Instructions = "" SWEP.PrintName = "Wowozela" -- SWEP.Category = "Toys" @@ -40,6 +40,7 @@ SWEP.DrawAmmo = false SWEP.DrawCrosshair = true SWEP.ViewModel = "models/weapons/v_hands.mdl" SWEP.WorldModel = "models/weapons/w_bugbait.mdl" +SWEP.IconOverride = "materials/entities/wowozela.jpg" SWEP.DrawWeaponInfoBox = true SWEP.RenderGroup = RENDERGROUP_BOTH @@ -50,15 +51,18 @@ function SWEP:SetupDataTables() self:NetworkVar("Bool", 0, "Looping") end -function SWEP:PrintWeaponInfo() -end - local mat = Material("particle/fire") function SWEP:DrawWeaponSelection(x,y,w,h,a) surface.SetDrawColor(HSVToColor(RealTime() * 10, 1, 1)) surface.SetMaterial(mat) surface.DrawTexturedRect(x,y-w / 6,w,w) + + x = x + 10 + y = y + 10 + w = w - 20 + + self:PrintWeaponInfo( x + w + 20, y + h * 0.95, alpha ) end function SWEP:CanPrimaryAttack() diff --git a/materials/entities/wowozela.jpg b/materials/entities/wowozela.jpg new file mode 100644 index 0000000..1cbfd48 Binary files /dev/null and b/materials/entities/wowozela.jpg differ diff --git a/workshop.sh b/workshop.sh index c3b3867..6286fc3 100755 --- a/workshop.sh +++ b/workshop.sh @@ -13,6 +13,6 @@ fi export LD_LIBRARY_PATH="../../../bin/linux64/" $gmad create -folder "./" -out "_TEMP.gma" -$gmpublish update -addon "_TEMP.gma" -id "$WORKSHOP_ID" -icon "icon.jpg" +$gmpublish update -addon "_TEMP.gma" -id "$WORKSHOP_ID" -icon "materials/entities/wowozela.jpg" rm ./_TEMP.gma