Forum

You must be logged in to post Login Register

Search Forums:


 






Garm3n HUD and overlay crosshairs.

UserPost

18:29
May 18, 2012


artasdmc

New Member

posts 1

Hey Garm3n.

I want to ask a quastion, how can i add a custom crosshair to your hud?

I mean the overlay, like the circle and etc?

11:55
May 19, 2012


Garm3n

Admin

posts 117

Hi,

Lets follow Garm3n Version and CrossHairNormal.

In the scripts folder and hudlayout.res you'll find:

    CrossHairNormal
    {
        "controlName"    "CExLabel"
        "fieldName"         "CrossHairNormal"
        "visible"        "1″
        "enabled"        "1″
        "zpos"            "1″

        "xpos"            "c-12″
        "ypos"            "c-15″
        "wide"            "25″
        "tall"            "25″

        "font"            "CrossHairNormal"
        "labelText"        "+"
        "fgcolor"        "255 255 255 255″
        "textAlignment"    "center"
    }


Take a look at the "font" name, "CrossHairNormal".

Go to your resource folder and then ClientScheme.res.

Scroll down a bit until you find:

        "CrossHairNormal"
        {
            "1″
            {
                "name"        "Symbol"
                "tall"        "28″
                "weight"    "0″
                "additive"    "0″
                "outline" "1″
            }
        }

Take a look at the "name", "Symbol", that's the font.

Scroll down to the bottom. There you'll find:

        "8″
        {
            "font" "resource/symbol.ttf"
            "name" "symbol"
        }

In your resource folder you'll find a font file called symbol. Double click on it and you'll see it's name, Symbol. That's the name you use in the "CrossHairNormal" script in ClientScheme.res:

        "CrossHairNormal"
        {
            "1″
            {
                "name"        "Symbol"
                "tall"        "28″
                "weight"    "0″
                "additive"    "0″
                "outline" "1″
            }
        }

If you right click on the font file and choose Properties you'll see the name symbol and (.ttf). That's what you use in the font script in ClientScheme.res:

        "8″
        {
            "font" "resource/symbol.ttf"
            "name" "symbol"
        }

Hope you get it.



About the SdX Gaming forum

Most Users Ever Online:

30


Currently Online:

1 Guest

Forum Stats:

Groups: 4

Forums: 11

Topics: 78

Posts: 281

Membership:

There are 349 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

aleaf – 12

whisky – 9

zoran – 7

coskai – 5

Skepna – 5

R3Volt – 4

Administrators: Garm3n (117 Posts), Garm3n (0 Posts)

Moderators: Garm3n (117 Posts)