• Need help with killicon!
    4 replies, posted
Hi! The killicon doesn't appear on the screen, I have it installed the .vmt and .vtf in the right location. (the folder is called: choke_beta/weapons/forcechoke_beta so that shouldn't be a problem?) Any ideas? Code: [code] if SERVER then // This is where the init.lua stuff goes. AddCSLuaFile ("shared.lua") SWEP.Weight = 1 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false elseif CLIENT then SWEP.PrintName = "Star Wars Force Choke Beta" SWEP.Slot = 4 SWEP.SlotPos = 1 SWEP.DrawAmmo = false SWEP.DrawCrosshair = true killicon.Add("forcechoke_beta", "vgui/hud/forcechoke_icon", Color(0, 255, 0, 255)) end [/code] edit: fixed what's wrong..
That will only work if your weapon class name is "forcechoke_beta". Also you never told us what the problem actually is. "Doesn't work" is [b]never[/b] helpful.
[QUOTE=Robotboy655;51685277]That will only work if your weapon class name is "forcechoke_beta". Also you never told us what the problem actually is. "Doesn't work" is [b]never[/b] helpful.[/QUOTE] ye sorry.. I was a bit tired of it not working. And yes the class name is forcechoke_beta. the problem is that it doesn't appear (and I updated the post to add that) - DanK (PIXX)
Post the complete locations of all the related files, and post the vmt file contents. Also, did you resource.add the material?
[QUOTE=James xX;51685394]Post the complete locations of all the related files, and post the vmt file contents. Also, did you resource.add the material?[/QUOTE] folders: forcechoke_beta forcechoke_beta/materials/vgui/entities forcechoke_beta/materials/vgui/hud forcechoke_beta/lua/weapons/forcechoke_beta forcechoke_beta/models/weapons forcechoke_beta/sounds/weapons/sound (really bad folder ik) No resource.add and where should I put that if so (the tutorial I watched didn't explain that)
Sorry, you need to Log In to post a reply to this thread.