Results 1 to 4 of 4

Thread: red dot

  1. #1
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts

    red dot

    hello everybody

    someone know how make a red dot to center of the screen
    for when i am in the options player, i clik 1.red dot and a red dot is placed to center
    someone can show me the script to create that? i tried to search on google but i did'nt find.. it mark for a red dot on the compass
    xfire: ordi37zk

  2. #2
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    Create a small image (with paint or gimp) and just draw there a red point in the middle.
    Then set a shader in your script and use for X: 320 Y: 240 (Middle)

  3. The Following User Says Thank You to Loveboy For This Useful Post:

    kung foo man (28th March 2014)

  4. #3
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Loveboy View Post
    Create a small image (with paint or gimp) and just draw there a red point in the middle.
    Then set a shader in your script and use for X: 320 Y: 240 (Middle)
    You don't have to create a new shader - just use the stock "white" shader and color it in your hud element:

    PHP Code:
        color = ( 10);

        if( !
    isdefinedself.laserdot ) )
        {
            
    self.laserdot newClientHudElemself );
            
    self.laserdot.alignX "center";
            
    self.laserdot.alignY "middle";
            
    self.laserdot.320;
            
    self.laserdot.242;
            
    self.laserdot.alpha .9;
            
    self.laserdot.color color;
            
    self.laserdot setShader"white"1010 );
        } 
    If you play with the settings for color, you can have it any color you like.

  5. The Following 3 Users Say Thank You to Tally For This Useful Post:

    kung foo man (29th March 2014),Ni3ls (29th March 2014),ORDI (29th March 2014)

  6. #4
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    or as an alternative to a shader use the localized string &"."

  7. The Following User Says Thank You to serthy For This Useful Post:

    Ni3ls (29th March 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •