Vehicle Status (includes speedometer)

Author Topic: Vehicle Status (includes speedometer)  (Read 8415 times)

Vehicle Status

Displays information about your current vehicle, currently only it's speed. More details such as health will probably be added. A flight HUD for flying vehicles maybe added at some point.

Media



Settings

  • $Pref::Server::VehicleStatus::UseBullets (toggle, default=0)
    Use characters instead of × characters to fill the bar.

  • $Pref::Server::VehicleStatus::Unit (string, default=mph)
    The unit to display speed in. Can be tps (Torque units per second), bps (bricks per second), km/h (kilometers per hour) or mph (miles per hour).

  • $Pref::Server::VehicleStatus::BarLength (0-42, default=32)
    The length of the bar in characters. Set to 0 to disable the bar.

Download

Script_VehicleStatus.zip (1.1KB) from hostr.co

Since so many people asked for an actual speedometer, I decided to redo my ancient one and release it. Yes, it's server-sided.

Will you do a KM/h ver and a circle one?

Will you do a KM/h ver

Will you read the OP?

a circle one?

.. which would be where? The bottomprint is tiny.

Will you do a KM/h ver and a circle one?


learn 2 read


That depends on whether or not I'm going to make a client-sided part.

How often does it update?

Very often. 31.25 times a second.

how do you get from TPS/BPS to KM/h and MP/h?
are you assuming brick units are one centimeter or what

Probably he based that the average blockland guy height is 6 studs, or 5 blocks (since each block is 1,2 studs high)
Then he had a scale, for example, each stud is 25 or 30 cm.

how do you get from TPS/BPS to KM/h and MP/h?
are you assuming brick units are one centimeter or what

I just used the formula that Badspot uses for mid-air kills.

I just used the formula that Badspot uses for mid-air kills.
wow really clear much thanks understand perfectly

Goddamnit port

wow really clear much thanks understand perfectly

you could read

  case "tps":
  case "bps":
    %speed *= 2;
  case "km/h":
    %speed = (%speed / 2.64) * 6 * 3600 / 3280.84;
  default:
    %speed = (%speed / 2.64) * 6 * 3600 / 5280;

Cool, but yeah add vehicle health, that'd be perfect for Kong123's deathrace.