<aside> đź’ľ This update will NOT break saves from previous versions of Mapbase.

</aside>

<aside> đź“‚ For programmers: This update will include VPC changes.

</aside>




đź“„ Custom game_text/vgui_text_display fonts

Thanks to a contribution by samisalreadytaken, Mapbase v7.2 will allow custom fonts defined through VScript to be selected by game_text and vgui_text_display entities. This essentially allows mappers and modders to select any font with any size without needing to modify the client scheme.

This is the syntax for defining a basic custom font in VScript:

    surface.CreateFont( "MyVScriptFont1",        // Name of this font entry (user-defined, can be anything)
    {
        "name"            : "Verdana"    // Name of the font file
        "tall"            : 40        // Size of the text
        "weight"        : 500        // Amount of boldness to add
        "blur"            : 0        // Amount of blur to add (optional)
        "additive"        : true        // Renders font by brightening pixels behind it (default for game_text)
        "antialias"     : true            // Enables font smoothing
        "dropshadow"     : false            // Adds a drop shadow to the font
        "proportional"     : true            // Proportional to resolution; Must be enabled for game_text, disabled for vgui_text_display
    } );

Scripts defining custom fonts needs to run on the client. In Hammer, this can be done using logic_script_client.


This is how different custom fonts can be used with game_text:

With the example font specified above.

With the example font specified above.

Using “Comic Sans MS”.

Using “Comic Sans MS”.

Using “Frak”.

Using “Frak”.

Using the first font, but with  set to 2.

Using the first font, but with blur set to 2.


This is how different custom fonts can be used with vgui_text_display:

With the example font specified above.

With the example font specified above.

Using “Comic Sans MS”.

Using “Comic Sans MS”.

Using “Frak”.

Using “Frak”.

Using the Half-Life 2 title font.

Using the Half-Life 2 title font.




🔫 Enhanced Custom Weapons