Lou Montana/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Proposition for new Main Page?)
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
Line 41: Line 41:
:[[ArmA 2: Editing|Editing]]
:[[ArmA 2: Editing|Editing]]
:[[ArmA II Hints and Tips|Hints and tips]]
:[[ArmA II Hints and Tips|Hints and tips]]
:[[:Category:Scripting Commands ArmA2|Scripting commands]]
:[[:Category:Scripting Commands Arma 2|Scripting commands]]
:[[:Category:Arma 2: Multiplayer|Multiplayer]]
:[[:Category:Arma 2: Multiplayer|Multiplayer]]
|-
|-
Line 49: Line 49:
:[[ArmA 2: Editing|Editing]]
:[[ArmA 2: Editing|Editing]]
:[[Arma2: Startup Parameters|Startup parameters]]
:[[Arma2: Startup Parameters|Startup parameters]]
:[[:Category:Scripting Commands ArmA2|Scripting commands]]
:[[:Category:Scripting Commands Arma 2|Scripting commands]]
:[[Mondkalb's Addon Tutorial|Creating Addons]]
:[[Mondkalb's Addon Tutorial|Creating Addons]]
|-
|-

Revision as of 18:33, 10 January 2020


Main Page

Welcome to the Bohemia Interactive Community Wiki.
If you want to start editing the wiki, see Wiki: Getting Started and explore the Contribute section.

Logo BI Black.png


Arma Series

About Arma 3

Arma 3

Editing
Introduction to Arma Scripting
Scripting commands
Scripting functions
Getting started
Eden Editor
About Arma 2: Operation Arrowhead

Arma 2: Operation Arrowhead

Editing
Hints and tips
Scripting commands
Multiplayer
About Arma 2

Arma 2

Editing
Startup parameters
Scripting commands
Creating Addons
About Arma: Armed Assault

Arma

Editing
Scripting commands
Mission Editing
FAQ
About Arma: Cold War Assault

Operation Flashpoint / Arma: Cold War Assault

Editing
Startup parameters
Addons
Scripting commands

DayZ

About DayZ

DayZ

Editing
Tools
Tutorials
Game mechanics

Ylands

About Ylands

Ylands

Visual Scripting
Editor
Database
Game mechanics

Take On Series

About Take On Helicopters

Take On Helicopters

Editing
Scripting commands
Scripting functions
Functions Library 2.0
About Take On Mars

Take On Mars

Editor
Equipment

Carrier Command

About Carrier Command: Gaea Mission

Carrier Command

Startup Parameters
FAQ
Official Tools


Category:Community Wiki



Vehicles Speed and Fuel Stats

Class Name Full tank consumption time Speed
Idle slow speed medium speed max speed slow speed medium speed max speed
B_Truck_01_mover_F HEMTT 05:18:00 03:15:00 03:38:00 03:18:00 026,83 km/h 070,94 km/h 082,85 km/h
B_MRAP_01_F Hunter (unarmed) 04:33:00 02:47:00 01:56:00 01:44:00 037,13 km/h 099,81 km/h 116,45 km/h
B_LSV_01_unarmed_F Prowler (unarmed) 04:09:00 01:38:00 01:50:00 01:38:00 053,96 km/h 147,06 km/h 172,47 km/h
B_Quadbike_01_F Quad 01:54:00 01:09:00 01:12:00 01:06:00 027,14 km/h 070,77 km/h 082,20 km/h
B_APC_Tracked_01_AA_F IFV-6a Cheetah 03:11:00 02:07:00 02:14:00 01:56:00 023,31 km/h 046,31 km/h 061,07 km/h
B_APC_Wheeled_01_cannon_F AMV-7 Marshall 04:55:00 02:58:00 02:58:00 02:34:00 036,20 km/h 060,41 km/h 113,00 km/h
B_APC_Tracked_01_CRV_F CRV-6e Bobcat 03:11:00 02:05:00 02:13:00 01:55:00 023,31 km/h 046,31 km/h 061,07 km/h

Code used:

veh = vehicle player;
wantedDelta = 3;

previousPos = [0,0,0];
currentPos = [0,0,0];
previousFuel = 0;
currentFuel = 0;
t = 0;

onEachFrame {
	isNil {
		vehSpeed = speed veh;

		if (t <= time) then {
			previousPos = currentPos;
			currentPos = getPosATL veh;
			distanceDelta = currentPos distance previousPos;
			previousFuel = currentFuel;
			currentFuel = fuel veh;

			fuelLossPerMinute = (previousFuel - currentFuel) * (60 / (wantedDelta + (time - t)));

			remainingTime = if (fuelLossPerMinute > 0) then {
				 [(currentFuel / fuelLossPerMinute) * 60, "HH:MM:SS"] call BIS_fnc_secondsToString;
			} else { -1 };

			timeToEmpty = if (fuelLossPerMinute > 0) then {
				 [(1 / fuelLossPerMinute) * 60, "HH:MM:SS"] call BIS_fnc_secondsToString;
			} else { -1 };

			t = time + wantedDelta;
		};

		hintSilent format [
			"Speed: %1\nFuel loss: %2\n\nRemaining time: %3\nTime to empty: %4",
			vehSpeed,
			fuelLossPerMinute,
			remainingTime,
			timeToEmpty];

		copyToClipboard format ["[%1, %2, %3]", typeOf veh, timeToEmpty, vehSpeed];
	};
};
↑ Back to spoiler's top