Announcement

Collapse
No announcement yet.

Experimental HUD Bars

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

  • nahuel
    started a topic Experimental HUD Bars

    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.

  • ceriux
    replied
    very cool thanks!

    Leave a comment:


  • nahuel
    replied
    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.

    Leave a comment:


  • ceriux
    replied
    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.

    Leave a comment:


  • nahuel
    replied
    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

    Leave a comment:


  • webangel
    replied
    Google Translator

    Leave a comment:


  • ceriux
    replied
    what is escala?

    Leave a comment:


  • ceriux
    replied
    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.

    Leave a comment:


  • nahuel
    replied
    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

    Leave a comment:


  • webangel
    replied
    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.....

    Leave a comment:


  • ceriux
    replied
    anyone still have this mod/src ?

    Leave a comment:


  • golden_boy
    replied
    I like the compass.

    Leave a comment:


  • hgdagon
    replied
    My problem look like this. Is this solved already?
    Attached Files

    Leave a comment:


  • nahuel
    replied
    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

    Leave a comment:


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

    Leave a comment:

Working...
X