Garry's Mod Wiki


  killicon.AddFont( string class, string font, string symbol, table color, number heightScale = 1 )


Adds kill icon for given weapon/entity class using special font.


1 string class
Weapon or entity class.
2 string font
Font to be used.
3 string symbol
The symbol to be used.
4 table color
Color of the killicon.
5 number heightScale = 1
Used internally to correct certain killicons to more closely match their visual size.


Example of using the function. Adds pistol kill icon.

killicon.AddFont( "weapon_pistol", "HL2MPTypeDeath", "-", Color( 255, 80, 0, 255 ) )