Garry's Mod Wiki

killicon.AddFont

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

Description

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

Arguments

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

Example of using the function. Adds pistol kill icon.

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