forpars.blogg.se

Half life source icon
Half life source icon










half life source icon

The mod template is different to using the HL2DM template as it uses the death notices from Team Fortress 2, the death notices work in similar fashion to the HL2DM deathnotices, however this is just a slight difference. "UnlitGeneric" is important, as otherwise it'll use the world lighting on the texture. Once you have created your VTF, your VMT should have these entries on them to have transparencies and work correctly on the HUD. The creation of these textures is fairly simple and can be done through tools such as VTFEdit. These entries also use a region of the texture, rather than all of it, so "x" and "y" are the origin of the icon from the top-left, and "width" and "height" should be fairly self-explanatory. The "file" property is the filepath for the texture, minus "materials/" and an extension. Simply make a death_ entry for each weapon, using their entity name with death_ instead of weapon_. You can define your custom icons this way if you are using font-based icons for your death messages. This is the first token, for the 357, this is using fonts for the death message. So how is that done? Look through the texture find code.įrom above, it shows that it searches for a death_* token (where * is the weapon entity name minus "weapon") in scripts/mod_textures.txt. So what needs to be done is to give the engine something to use for your weapon. Can't find it, so use the default skull & crossbones icon If ( !deathMsg.iconDeath || deathMsg.iSuicide ) Try and find the death identifier in the icon listĭeathMsg.iconDeath = gHUD.GetIcon( fullkilledwith ) Q_snprintf( fullkilledwith, sizeof(fullkilledwith), "death_%s", killedwith ) Half-Life 2 Deathmatch's icons come from a font file called HL2MP.ttf, found in the resource folder of your mod.įirst of all, take a look at the player death event handler function of the HL2DM death notices element. If an icon is not found, it will fall back to an icon of a skull.

half life source icon

By default, mods based on Half-Life 2: Deathmatch will only have death icons for the weapons included in Half-Life 2.












Half life source icon