Results 1 to 10 of 15

Thread: Moving huds :D

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,018
    Thanks
    2,110
    Thanked 1,086 Times in 753 Posts
    He is just refering to the html-element marquee as an analogy for a hud moving from right to left.

    As base you could use this old ad hud script: http://killtube.org/downloads/cod2/e...ain/std/ad.gsc

    PHP Code:
        std\ad::addAd(&"1st marquee"2, (1,0,0));
        
    std\ad::addAd(&"2nd marquee"2, (0,1,0));
        
    std\ad::addAd(&"3rd marquee"2, (0,0,1));
        
    std\ad::precache();


        
    // in startgametype:
        
    thread std\ad::ad(); 
    You basically just need to edit the for loop in ad::ad() to move it with moveOverTime() like shown in the example.

    PHP Code:
        while (1)
        {
            for (
    i=0i<level.ad.sizei++)
            {
                
    level.hud_ad.fontscale level.ad[i].scale;
                
    level.hud_ad.color level.ad[i].color;
                
    level.hud_ad fadeOverTime(1);
                
    level.hud_ad.alpha 1;
                
    level.hud_ad.label level.ad[i].ad;
                
    wait 10;
                
    level.hud_ad fadeOverTime(1);
                
    level.hud_ad.alpha 0;
                
    wait 20;
            }
        } 
    timescale 0.01

  2. The Following 2 Users Say Thank You to kung foo man For This Useful Post:

    ORDI (25th March 2014),pollo (24th 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
  •