• Kill Icons
    2 replies, posted
So, my SWEP is probably 80% done, and I would like to add a kill icon. How do I do this? Also, when it "kills" an NPC or player, it shows as "#<entity folder name>" which I want without the "#" and lower case name.
You would use [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index98d4.html"]this[/URL]. Don't be impatient, you asked this question 1 hour ago in the help thread.
[QUOTE=brandonj4;38493902]You would use [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index98d4.html"]this[/URL]. Don't be impatient, you asked this question 1 hour ago in the help thread.[/QUOTE] So far, this is my code: [CODE]if SERVER then AddCSLuaFile ("shared.lua") elseif CLIENT then function ENT:Draw() -- self.BaseClass.Draw(self) -- We want to override rendering, so don't call baseclass. -- Use this when you need to add to the rendering. self:DrawModel() -- Draw the model. end killicon.AddFont( "Mine Turtle", "HL2MPTypeDeath", "0", Color( 255, 0, 0, 255 ) ) killicon.Add( "mine turtle", "HUD/killicons/Mine Turtle", Color( 0, 255, 0, 255 ) ) end StepSnd = Sound("turtlegrenade/step.wav") ENT.Author = "Turtle95" ENT.Contact = "" ENT.Purpose = "" ENT.Base = "base_gmodentity" ENT.Type = "AI" ENT.step = 0 ENT.PrintName = "mineturtle" ENT.Name = "Mine Turtle" --"models/props/de_tides/vending_turtle.mdl" function drawIcon() killicon.Draw( 64, 64, "Mine Turtle", 50 ) end hook.Add( "HUDPaint", "drawicon", drawIcon )[/CODE] Nothing happens. No icon, no different name appears other than "#entityname"
Sorry, you need to Log In to post a reply to this thread.