Announcement

Collapse
No announcement yet.

Experimental HUD Bars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    source included in the pk3 this code is old. I didnt implement the basic " vid_width = cvar("vid_conwidth");
    vid_height = cvar("vid_conheight");" to get the correct adjustement of the bars. Change the numbers
    the invasion has begun! hide your children, grab the guns, and pack sandwiches.

    syluxman2803

    Comment


    • #17
      My problem look like this. Is this solved already?
      Attached Files
      MOD it! Start Point Remake Quake Scout's Journey Quaketastic WhiteDay Quake Terminus UQE

      Comment


      • #18
        I like the compass.
        Scout's Journey
        Rune of Earth Magic

        Comment


        • #19
          anyone still have this mod/src ?

          Comment


          • #20
            I doest have a copy from this. I had a HD crash some time ago and lost many files.
            But Im pretty sure Nahuel owns a copy of his mod.....

            Comment


            • #21
              Originally posted by ceriux View Post
              anyone still have this mod/src ?
              sorry for the delay, i finally found the pk3 from this mod, but this stuff is very... ugly !
              i believe i can rewrite a mod from this without bugs or glitches
              aniway here you can have the original mod and qc files
              DOWNLOAD
              the invasion has begun! hide your children, grab the guns, and pack sandwiches.

              syluxman2803

              Comment


              • #22
                thank you, i dont want just this mod to be honest i want to see if theres a way i can draw multiple types of bars. i just want to see how you draw a bar. i see you also use shared content id like an example of that too.

                Comment


                • #23
                  what is escala?

                  Comment


                  • #24
                    Google Translator

                    Comment


                    • #25
                      Originally posted by ceriux View Post
                      thank you, i dont want just this mod to be honest i want to see if theres a way i can draw multiple types of bars. i just want to see how you draw a bar. i see you also use shared content id like an example of that too.
                      there is a big problem with this mod, i didn�r use the function "drawfill", instead i used a image (?)

                      in black days i used drawfill to get multiple bars, for example for the "health" value you can see this

                      void () DrawBars =
                      {
                      local vector barpos, fillsize, colorhealt, men, menn, mey, meyy;
                      local float progrs, progr;



                      progrs = GetStat_FLOAT_TRUNCATED(STAT_HEALTH); // Get the progress
                      progr = getstatf(STAT_HEALTH);


                      local float r;
                      local float v, armaseleccionada, apuntandomo;

                      armaseleccionada = getstatf(STAT_ARMA);
                      apuntandomo = getstatf(STAT_APUNTANDOMONSTER);

                      v = progrs * 0.01;
                      r = 1 - v;
                      colorhealt_x = r;
                      colorhealt_y = v;
                      colorhealt_z = 0;

                      fillsize_x = (progrs / 1.3); // This finds the correct % of our fill
                      fillsize_y = 12; // Give it a hieght of 6

                      //Draw the bar
                      drawfill('39 402 0', fillsize, colorhealt, 0.7, 0); //



                      aniway i need to corret the position valuesv"'39 402 0'" to do this according the video size scales and radio
                      the invasion has begun! hide your children, grab the guns, and pack sandwiches.

                      syluxman2803

                      Comment


                      • #26
                        i also just noticed this doesnt work well at all with fte xD , that compass is pretty cool too!

                        also, is it bad to use an image? or are using images instead of fills okay?

                        also what if max health was to change? was more/less than 100? would it be hard to properly display the bar when it has full/damaged with max health changing?
                        Last edited by ceriux; 08-16-2013, 01:27 PM.

                        Comment


                        • #27
                          Originally posted by ceriux View Post
                          i also just noticed this doesnt work well at all with fte xD , that compass is pretty cool too!

                          also, is it bad to use an image? or are using images instead of fills okay?



                          you can use both, aniway the fills are easy to code i think

                          Originally posted by ceriux View Post

                          also what if max health was to change? was more/less than 100? would it be hard to properly display the bar when it has full/damaged with max health changing?
                          MAX and MIN health are controled by ssqc, csqc only will show the fill, elsewere you can put somethin like

                          EDIT

                          if (progrs > 0)
                          {
                          if (progrs >= 100)
                          progrs == 100;

                          v = progrs * 0.01;
                          r = 1 - v;
                          colorhealt_x = r;
                          colorhealt_y = v;
                          colorhealt_z = 0;

                          fillsize_x = (progrs / 1.3); // This finds the correct % of our fill
                          fillsize_y = 12; // Give it a hieght of 6

                          //Draw the bar
                          drawfill('39 402 0', fillsize, colorhealt, 0.7, 0); //
                          }
                          Last edited by nahuel; 08-16-2013, 05:09 PM.
                          the invasion has begun! hide your children, grab the guns, and pack sandwiches.

                          syluxman2803

                          Comment


                          • #28
                            very cool thanks!

                            Comment

                            Working...
                            X