[T2 request] falling damage bar

Kirby
08-17-2004, 07:33 PM
I want a script that will show a bar at the side of my screen. This bar would change size depending on how fast i am falling and change color depending on how much helth i would have left if i hit the ground at that speed. it would also be helpfull if it played a wave file if the bar turns red.


recap:

Bar gets longer depending on how fast i am falling.

Bar turns red if, at that time, i hit the ground i would take damage resulting in a red helth bar. (so if im 50m in the air and falling fast the bar might be red but i could bring it down to yello or green by useing my jets.

Bar also turns green, yello, and black(death). if no damage will result the bar will stay blue.

Script will play wave files apon entering green, yello, red and black damage zones and apon reentering blue zone.

jpsimboy
08-17-2004, 10:13 PM
I dont know much about T2 i do about T1 but im almost sure that its imposible.

Amadeus
08-18-2004, 05:12 AM
Impossible. You don't have access to your own speed.

Kirby
08-18-2004, 11:32 AM
what about speed hud and the shrike hud?

Amadeus
08-18-2004, 12:08 PM
IIRC the speed hud only works when you host your own server, in which case you - being the server and the client at the same time - do have access to everything the server does.


As for the shrike hud, it's part of the server side code to tell you your speed, it's not the client getting its own.


Of course I might be wrong on these because I never really touched T2, but that's the way it worked in T1.

Decepti|<on
08-18-2004, 09:44 PM
you're wrong on both counts, you have access in T2 and in T1 if you use hudbot

bLiSS
08-18-2004, 09:47 PM
<3 Deceptikon

Kirby
08-18-2004, 09:56 PM
... so that means it could work?

Silverspirit
08-18-2004, 10:14 PM
You do have access to your speed (in T2), but you do not have access to your direction or the "direction" of the terrain or anything else where you collide with it, so a script would consider a smooth 350kph landing on the back side of a hill the same as a 350kph plunge straight down onto a flat surface.

Kirby
08-18-2004, 11:00 PM
Bar changes color to show how much damage i would take if i hit a wall so i know if i should fire my jets and pull up or bounce off it.

Bar gets bigger depending on my speed.

script plays sounds when:
I reach the max speed i can be at without takeing damage.
I reach the max speed i can be at without thaking hevy damage.
I slow down to a speed that i wont take damage.
I slow down to a speed that i wont take hevy damage.

and when i reach and slow down from speeds i would die at.


i dont care about the direction and it dose not need to know the terrain. im just looking for a speed hud with danger colors and sounds...

Amadeus
08-19-2004, 05:39 AM
You do have access to your speed (in T2), but you do not have access to your direction or the "direction" of the terrain or anything else where you collide with it, so a script would consider a smooth 350kph landing on the back side of a hill the same as a 350kph plunge straight down onto a flat surface.
The velocity is usually a vector with an x y and z axis. The z axis is what determines fall damage (mostly). Still, landing on a steep surface will just make you slide down it, so it wouldn't be an accurate indication anyway.

Kirby
08-19-2004, 01:19 PM
I am sorry I said falling damage. I ment just generly knocking into stuff.

Amadeus
08-19-2004, 02:33 PM
I am sorry I said falling damage. I ment just generly knocking into stuff.
That also depends on the angle of impact. I'm pretty positive you can't compute that.

Trident_RX
08-24-2004, 03:59 PM
I think he is just looking for an estimate based on speed.

Stop being so technical.

SmartZ
08-28-2004, 06:56 AM
anyone good enough at the game to warrent a script like that wouldent need it. :)
you get a feel for it anyway, who needs a bar like that