Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add icon and purpose #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
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 with 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