Skip to content

Commit

Permalink
Add icon and purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
Commenter25 committed Jul 25, 2023
1 parent d7ad6c2 commit ca17c99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Binary file removed icon.jpg
Binary file not shown.
12 changes: 8 additions & 4 deletions lua/weapons/wowozela.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SWEP.Base = "weapon_base"

SWEP.Author = ""
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Purpose = "A simple fretless instrument that changes pitch depending on your eye pitch"
SWEP.Instructions = ""
SWEP.PrintName = "Wowozela"
-- SWEP.Category = "Toys"
Expand Down Expand Up @@ -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

Expand All @@ -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()
Expand Down
Binary file added materials/entities/wowozela.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion workshop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ca17c99

Please sign in to comment.