Quantcast

Jump to content

» «
Photo

Vehicle Health Meter

29 replies to this topic
Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#1

Posted 27 May 2011 - 12:20 AM Edited by Rocker453, 27 May 2011 - 12:24 AM.

This is something that many people (like me) have wanted but have failed to find. This is a digital meter which show the health of the vehicle you are currently driving. This is how it looks like in-game:

user posted image

I created the texture with Adobe Photoshop CS5 and use TXD Workshop to import the .tga file. This is the texture of the meter:

user posted image

This is a CLEO script so you need CLEO 4 to use it. I haven't tested it on CLEO 3 but my guess is that it might work. I had been looking for such a Vehicle Damage/Health Meter since a long time. But, now that I have learned some CLEO coding skills, I decide to make one myself. colgate.gif

Rate this mod and tell me how you like it! colgate.gif

aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#2

Posted 27 May 2011 - 04:06 AM

Nice, even though health-meter is a bit big.

Integrate it on speedometer and make textures for both? turn.gif

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#3

Posted 27 May 2011 - 08:01 AM

Thanks for the feedback! I'll see what I can do about the speedometer.

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#4

Posted 27 May 2011 - 12:49 PM Edited by saanu09xs, 27 May 2011 - 12:52 PM.

Hey, i like your mod but it is big rampage_ani.gif .If you wanna help in texture i can help you but you have to do the positioning and resizing thing with saany builder. Send me a message.
GIVE IT SOME COMPACT LOOK

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#5

Posted 28 May 2011 - 02:30 AM

I wanted to make it look a bit compact but then I would have to remove the text that says "Vehicle Health". But I didn't do that because it was looking very stupid with only the numbers and no text at all. I'll try to improve the textures and make it more compact.
And as far as help on the textures is concerned, I'll try myself first and if I need your help, I will send you a message ASAP! colgate.gif

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#6

Posted 28 May 2011 - 01:25 PM

Ok man i have been looking for this mod for many days I'm making a new HUD and i needed a vehicle health meter.

Wanna see the pics colgate.gif


user posted image
The health bar is left of the radar and armor bar is right of the radar.



user posted image
I got a tachometer in side my radar (it works perfect) and a digital speedometer and gear on right side of my radar and i got a gasoline meter just bottom of the digital speedometer (I'm still positioning the gasoline bar confused.gif )

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#7

Posted 28 May 2011 - 08:27 PM

Wow! Great HUD! Love it! Can you please tell me how you made the textures transparent? I that done from Sanny or is that a pert of the .tga file?

aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#8

Posted 28 May 2011 - 09:06 PM

QUOTE (Rocker453 @ May 28 2011, 20:27)
Wow! Great HUD! Love it! Can you please tell me how you made the textures transparent? I that done from Sanny or is that a pert of the .tga file?

Two ways:

You can set it on the pic, or in SannyBuilder. In SannyBuilder, if you draw texture, you can set the color for it, which is in RGBA-format. Change the last value from 255 to smaller one for transparency (255 visible, 0 invisible)

And that HUD is nice, gotta admit it biggrin.gif

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#9

Posted 29 May 2011 - 12:07 AM Edited by Rocker453, 29 May 2011 - 12:14 AM.

How about this:

user posted image

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#10

Posted 29 May 2011 - 09:39 AM

QUOTE (Rocker453 @ May 29 2011, 00:07)
How about this:

user posted image

That kinda cool but position the writing(vehicle health = 1000) in middle(perfect center)

Ηeath
  • Ηeath

    Just Do It.

  • Members
  • Joined: 08 Feb 2011

#11

Posted 29 May 2011 - 12:50 PM

QUOTE (saanu09xs @ May 28 2011, 13:25)
Ok man i have been looking for this mod for many days I'm making a new HUD and i needed a vehicle health meter.

Wanna see the pics colgate.gif


user posted image
The health bar is left of the radar and armor bar is right of the radar.



user posted image
I got a tachometer in side my radar (it works perfect) and a digital speedometer and gear on right side of my radar and i got a gasoline meter just bottom of the digital speedometer (I'm still positioning the gasoline bar confused.gif )

It's FANTASTIC! Don't forget to release it! biggrin.gif

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#12

Posted 29 May 2011 - 01:37 PM

Thanks and i will release it soon

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#13

Posted 29 May 2011 - 01:44 PM

Can you make a difference in the script? When the health is normal the texture will be green and when its low in health it turns red. It will be nice.


I got a nice texture its simple

user posted image
user posted image

The health will be displayed inside the colored section

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#14

Posted 29 May 2011 - 01:47 PM

or if its hard confused.gif i got an another idea when it becomes night the illuminates tounge.gif i know the cleo script line i have used it in my tachometer and in my digital speedometer

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#15

Posted 29 May 2011 - 01:51 PM Edited by saanu09xs, 30 May 2011 - 06:36 AM.

hey rocker if you wanna my HD iphone go to this link http://www.gtagarage...ow.php?id=15266
And i love you flipped realism mod its AWESOME!

aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#16

Posted 29 May 2011 - 02:54 PM

saanu09xs, dude, don't quad-post. Use edit-button. Illumination is pretty easy.

And color-changing can be pretty hard, needs a bit of math to get it right. Easier would be making 100 textures and change between those when health decreases, but it would just be silly due to high memory-usage.

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#17

Posted 30 May 2011 - 06:35 AM

QUOTE (oksa8 @ May 29 2011, 14:54)
saanu09xs, dude, don't quad-post. Use edit-button. Illumination is pretty easy.

And color-changing can be pretty hard, needs a bit of math to get it right. Easier would be making 100 textures and change between those when health decreases, but it would just be silly due to high memory-usage.

Ya ok

100 textures is big job but it would be easier if we use green texture until the health of the car is 250 (cars health = 1000) and red texture from 250 to 0
the means that if we have to use 100 texture we have to only make 2 texture ( it may cause lag because of changing texture simultaneously )


BUT I DON'T KNOW HOW TO CHANGE TEXTURE WHEN IT LOW ON HEALTH (SCRIPTS OF CLEO)

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#18

Posted 30 May 2011 - 08:18 AM

Hmmm... Maybe I can help with the illumination part.... I have a script structure in mind which will be able to do that. My exams are going on and they finish on Thursday. So, I'll work on this on Thursday. Just 2 more days! =D.

aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#19

Posted 30 May 2011 - 10:08 AM

Well I just finished my exams, I might be able to help.

About green/red-texture:
Something like with this structure:
CODE
:LOL_1
03C0: 0@ = actor $PLAYER_ACTOR car
if
   0185:   car 0@ health >= 250
else_jump @LOL_2
jump @LOL_3

:LOL_2
038D: draw_texture 17 position $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 size 20@ 19@ RGBA 128 128 128 255
jump @LOL_1

:LOL_3
038D: draw_texture 18 position $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 size 20@ 19@ RGBA 128 128 128 255
jump @LOL_1


Do a check to see if car's health is more than 250, if yes, draw green texture, if not, jump to draw red texture.


And illumination works basically same way, instead of checking car health, check the time in-game with this type of structure:
CODE
:LOL_11
00BF: 0@ = current_time_hours, 1@ = current_time_minutes
if
0029:   0@ >= 4



Of course, as I'm a noob-coder, they might not work correctly that way, so if anybody could check those? smile.gif

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#20

Posted 30 May 2011 - 11:13 AM Edited by saanu09xs, 30 May 2011 - 11:16 AM.

Hey dude this is a script of a that when the health of a car is 300 the screen will blink red and and a danger like sound is produced

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder....files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'RVDA'

:RVDA_11
wait 0
if
Player.Defined($PLAYER_CHAR)
jf @RVDA_11
if
Player.Controllable($PLAYER_CHAR)
jf @RVDA_11
if
Actor.Driving($PLAYER_ACTOR)
jf @RVDA_11
03C0: 0@ = actor $PLAYER_ACTOR car
1@ = Car.Health(0@)
if
not 1@ > 300
jf @RVDA_11
097A: play_audio_at 0.0 0.0 0.0 event 1138
0169: set_fade_color_RGB 255 0 0
fade 0 500
wait 125
097A: play_audio_at 0.0 0.0 0.0 event 1138
fade 1 500
wait 125
0169: set_fade_color_RGB 0 0 0
jump @RVDA_11

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#21

Posted 31 May 2011 - 12:43 AM

Just waiting for my exams to end on Thursday. I have a lot of other mods in mind too! =D

Then, I will make a new script for this health meter. I don't think you should make the meter go red when car health gets 250. It should go red to warn the driver, but at 250, the car is burning so its pretty useless to warn anyone at that time. I think it should turn red if the health is below 300, or maybe 450.... And the meter should also start to blink at that point. (I know how to do that).


I'll make some new textures after my exams. But if you want, you can make your own textures for your HUD. Remember to show me before you upload them! tounge.gif

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#22

Posted 31 May 2011 - 05:54 AM

Alright Man

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#23

Posted 31 May 2011 - 06:10 AM

I have already made the script! (I waste my time even in exams tounge.gif ) I will make the textures when I finish my exams. Btw, I just uploaded version 2.1. It fixes a bug and prevents crashes. Be sure to get it.

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#24

Posted 01 June 2011 - 06:57 PM

Dude, I'm done with the script! Now only the textures are left. Now if you car's health goes below 450, the meter will turn read and will start to shake as a sign of warning. Now there is only one thing left that I would like to add: a warning beep.
Other than the beep and the textures, everything is done! =D I would like it if you helped me out with textures. I also have an idea for the textures. The red meter should appear to be damaged (like cracked glass) to show that the vehicle is really damaged. Just an idea, not necessary.

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#25

Posted 02 June 2011 - 08:11 AM Edited by saanu09xs, 02 June 2011 - 09:46 AM.

Ya alright its a cool idea for beep use this
097A: play_audio_at 0.0 0.0 0.0 event 1138

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#26

Posted 02 June 2011 - 09:42 AM

I have made some textures

user posted image

DAMAGE TEXTURE
user posted image
user posted image

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#27

Posted 03 June 2011 - 06:42 AM Edited by Rocker453, 03 June 2011 - 04:32 PM.

Aw my Gawd! Lovely textures! The last one is just awesome! icon14.gif

Now, I need to adjust my script according to these textures. In the meantime, tell me, how much percentage of your HUD is left? And when are you planning to release it?

EDIT: Could you make the 'hole' in the glass in the last texture appear at the place where the health will be displayed? Otherwise, the health seems to be displayed on TOP of the glass.

saanu09xs
  • saanu09xs

    XGB

  • Members
  • Joined: 06 Nov 2010

#28

Posted 06 June 2011 - 03:22 PM

Here you go

user posted image

Rocker453
  • Rocker453

    GTA San Andreas CLEO Modder

  • Members
  • Joined: 23 Sep 2009

#29

Posted 07 June 2011 - 02:27 PM

Thanks for the wonderful textures! I'm done with the script. Before uploading it, I think you should check it out first, just to make sure its PERFECT! biggrin.gif Can you please PM me your email address so I can send it to you?

BogdanViciosu
  • BogdanViciosu

    Player Hater

  • Members
  • Joined: 23 Sep 2013

#30

Posted 23 September 2013 - 11:21 AM

I want a link to download the first Vehicle health metter. I don`t see any link, I just wanna download it, I like it alot !





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users