Garry's Mod Wiki

killicon

The killicon library is used to add to and control the icons that appear in the top right of your screen when a player is killed.

Methods

killicon.Add( string class, string texture, table color )
Creates new kill icon using a texture.
killicon.AddAlias( string new_class, string existing_class )
Creates kill icon from existing one.
killicon.AddFont( string class, string font, string symbol, table color, number heightScale = 1 )
Adds kill icon for given weapon/entity class using special font.
killicon.AddTexCoord( string class, string texture, table color, number x, number y, number w, number h )
Creates new kill icon using a sub-rectangle of a texture.
killicon.Draw( number x, number y, string name, number alpha = 255 )
Draws a kill icon. We advise against using this. It may be changed or removed in a future update. This function applies unpredictable vertical offsets, you should use killicon. Render instead, which does not suffer from this issue.
boolean killicon.Exists( string class )
Checks if kill icon exists for given class.
number, number killicon.GetSize( string name, boolean dontEqualizeHeight = false )
Returns the size of a kill icon.
killicon.Render( number x, number y, string name, number alpha = 255, number dontEqualizeHeight = false )
Renders a kill icon.