Results 1 to 3 of 3

Thread: Live hud [HELP]

  1. #1
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Live hud [HELP]

    Hi,

    I making new script (Live Hud). Its action is replacing images.

    In shop:
    PHP Code:
            if(response == "F1")
            {
                
    shader "upg_icon_rcxd";
                
    thread maps\mp\gametypes\_hud_get::init(shader);
                
    self.rcxd++;
            }
            
            if(
    response == "F3")
            {
                
    shader "songo_eq";
                
    thread maps\mp\gametypes\_hud_get::init(shader);
                
    self.eq++;
            
            } 
    In activate menu (key M)
    PHP Code:
            if(menu == game["menu_keysm"])
            {
                switch(
    response)
                {
                    case 
    "KEY_M":
                        if(
    self.rcxd >= 1)
                        {
                            
    thread maps\mp\gametypes\_rcxd::car();
                            
    self.rcxd--;
                            
    self thread maps\mp\gametypes\_hud_get::deletehud();
                        }
                        else if(
    self.eq >= 1)
                        {
                            
    self thread maps\mp\gametypes\_earthquake::doArti(self);
                            
    self iprintlnbold("Used eq");
                            
    self.eq--;
                            
    self thread maps\mp\gametypes\_hud_get::deletehud();
                        }
                    break;
                }
            } 
    In hud_get.gsc :

    PHP Code:
    init(shader)
    {
        
    thread shader(shader);
        
    thread presshud(shader);
    }

    presshud(shader)
    {
        if(
    isDefined(self.presshud)) self.presshud destroy();
        
    self.presshud newClientHudElem(self);
        
    self.presshud.507;
        
    self.presshud.340//401
        
    self.presshud setshader(shader88,88);
    }

    deletehud()
    {
        if(
    self.rcxd == && self.eq == 0)
        {
            if(
    isDefined(self.presshud)) 
                
    self.presshud destroy();
        }

    Thanks a lot

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    What do you want?

  3. #3
    Private
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I want, that when I buy rc-xd and earth quake and when I use earthquake, shader changed to rc-xd etc...

Posting Permissions

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