Announcement

Collapse
No announcement yet.

Experimental HUD Bars

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

  • Experimental HUD Bars

    I am experimenting with bars in the HUD. This only works with a custom ssqc with "shared" data. I am looking for a graphic artist who thinks can make some pretty graphic with this stuff Thanks to Cobalt for the idea. this is a little LQ video
    [ame=http://www.youtube.com/watch?v=_zCLeVbD3so]sui csqc - YouTube[/ame]
    download the pk3
    Last edited by nahuel; 10-05-2011, 10:56 AM.
    the invasion has begun! hide your children, grab the guns, and pack sandwiches.

    syluxman2803

  • #2
    Hello Nahuel,
    the Video looks great but I have a little problem here:


    Just a question - is it possible to use Sevens Small Mod..-Source as Codebase instead of 1.06?

    Comment


    • #3
      Nice Nahual...very good for a start!

      Can the bar go horizontally accross the screen or just verticly? Im thinking maybe the oxygen bar that I told you about in PM, can better be seen horizontally....perhaps even the position x-y coordinates of any of these bars can be moved by the client via a command?

      Comment


      • #4
        Originally posted by webangel View Post
        Hello Nahuel,
        the Video looks great but I have a little problem here:
        Very strange problem with that! what version of darkplaces are you using??

        Originally posted by webangel View Post
        Just a question - is it possible to use Sevens Small Mod..-Source as Codebase instead of 1.06?
        yes, it�s very easy add a stat to qc!!
        the invasion has begun! hide your children, grab the guns, and pack sandwiches.

        syluxman2803

        Comment


        • #5
          Originally posted by Cobalt View Post
          Nice Nahual...very good for a start!

          Can the bar go horizontally accross the screen or just verticly? Im thinking maybe the oxygen bar that I told you about in PM, can better be seen horizontally....perhaps even the position x-y coordinates of any of these bars can be moved by the client via a command?
          yeah, this is posible check the "Sbar_DrawBar " function, change the "x" for the "y" and vice versa
          the invasion has begun! hide your children, grab the guns, and pack sandwiches.

          syluxman2803

          Comment


          • #6
            Originally posted by nahuel View Post
            Very strange problem with that! what version of darkplaces are you using??
            Sep 6 2011

            Comment


            • #7
              Originally posted by webangel View Post
              Sep 6 2011
              the problem is with the ratio, only works correctly for 4x3. I will fix the problem
              the invasion has begun! hide your children, grab the guns, and pack sandwiches.

              syluxman2803

              Comment


              • #8
                I wanted to ask. Is there a way to toggle on/off ibar while keeping sbar in darkplaces ? I consider implementing it through csqc but first wanted to be sure it is not already present.
                Quake HD: Embrace the decline and have some guilty pleasure with it, or join a club for monocled gentlemen at quaddicted and play Quake the way it's meant to be played.

                Comment


                • #9
                  Originally posted by _Smith_ View Post
                  I wanted to ask. Is there a way to toggle on/off ibar while keeping sbar in darkplaces ? I consider implementing it through csqc but first wanted to be sure it is not already present.
                  yeah is totally possible, you only need define a new stat in ssqc, for example
                  SBAR
                  in csqc you can write a conditional, if SBAR value is 0, you dont show the sbar if SBAR value is 1 you call the function to show the sbar
                  the invasion has begun! hide your children, grab the guns, and pack sandwiches.

                  syluxman2803

                  Comment


                  • #10
                    Very cool idea nahuel!
                    Are you considering the ability to change the size of the bar as I feel it takes a great deal of the real-estate on the screen as you show it in your vid. Maybe as a part of your already excellent hud only smaller? Just my thought. Love the concept.

                    Comment


                    • #11
                      I asked whether there is such functionality already built in DP. In original quake you could hide ibar through screen size slider. Anyway I'll try to make a key toggle that will cycle: engine hud - your custom hud - sbar only hud. It shouldn't be much work, if succeed I'll post it in your csqc custom hud thread.
                      Quake HD: Embrace the decline and have some guilty pleasure with it, or join a club for monocled gentlemen at quaddicted and play Quake the way it's meant to be played.

                      Comment


                      • #12
                        Hi Nahuel: Dresk says his HUD is coded where if in the QC for observer mode you set health to -1, it wont display the hud. Would you be able to do something like this as an option with your huds? Hows things going with the artists btw?

                        Comment


                        • #13
                          Originally posted by Cobalt View Post
                          Hi Nahuel: Dresk says his HUD is coded where if in the QC for observer mode you set health to -1, it wont display the hud. Would you be able to do something like this as an option with your huds? Hows things going with the artists btw?
                          Yes, in sbar.qc in the function Sbar_Draw write lines like this very above
                          float cobalt;
                          cobalt = GetStat_FLOAT_TRUNCATED(STAT_HEALTH);
                          if (cobalt < 0)
                          return;
                          This will work (not tested)
                          the invasion has begun! hide your children, grab the guns, and pack sandwiches.

                          syluxman2803

                          Comment


                          • #14
                            What kind of graphics are you still lacking per your initial thread post here Nahuel (if any)? Was this rolled into Seven's SMC?

                            Comment


                            • #15
                              is there a place with information on how to draw a hud display like this? like a source code or some kind of documentation?

                              Comment

                              Working...
                              X