Lou Montana/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Proposition for new Main Page?)
m (Future Template:Header/Tutorial template)
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category: Sandbox]]
[[Category: Sandbox]]
 
<noinclude>
== Main Page ==
-----
 
Future [[Template:Header/Tutorial|Header/Tutorial]] template
__NOTOC__
</noinclude><includeonly>{{Feature|informative
__NOEDITSECTION__
<!-- Hide page title "Main Page" -->
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px)">{{FULLPAGENAME}}</span>}}
 
{| style="margin: auto; width: 100%; max-width: 75em"
| style="text-align: center |
<span style="font-size: 1.1em">'''Welcome to the Bohemia Interactive Community Wiki.'''</span><br>
If you want to start editing the wiki, see [[Getting_Started|Wiki: Getting Started]] and explore the [[#Contribute|Contribute]] section.
| style="width: 200px" | [[Image:Logo_BI_Black.png|center|200px|link=Bohemia Interactive Community:About]]
|}
 
* [[#Arma Series|Arma Series]]
* [[#DayZ|DayZ]]
* [[#Ylands|Ylands]]
* [[#Take On Series|Take On Series]]
* [[#Carrier Command|Carrier Command]]
 
 
{| class="bikitable"
! colspan="2" |
=== Arma Series ===
|-
| [[Image:Logo A3 black.png|150px|link=ArmA 3|About Arma 3]]
|
|
==== {{arma3}} ====
* {{#if:{{{target|}}}
:[[:Category:Arma 3: Editing|Editing]]
| Target: {{#switch:{{{target}}}
:[[Introduction to Arma Scripting]]
  |0= newcomer
:[[:Category:Scripting Commands Arma 3|Scripting commands]]
  |1= beginner
:[[:Category:Arma 3: Functions|Scripting functions]]
  |2= moderate
:[[Arma 3 Getting Started|Getting started]]
  |3= advanced
:[[Eden Editor]]
  |4= expert
|-
  |#default= -wrong target defined-
| style="text-align: center" | [[Image:A2_OA_Logo.png|115px|link=:Category:ArmA 2: Operation Arrowhead|About Arma 2: Operation Arrowhead]]
}}
| -no target defined-}}
* {{#if:{{{difficulty|}}}
| Difficulty: {{#switch:{{{difficulty}}}
  |0= easy {{Colorball|green}}
  |1= normal {{Colorball|orange}}
  |2= hard {{Colorball|red}}
  |#default= -wrong difficulty defined-
}}
| -no difficulty defined-}}
{{#if:{{{prerequisites|}}}
|
|
==== {{arma2oa}} ====
* Prerequisites:<br>
:[[ArmA 2: Editing|Editing]]
{{{prerequisites}}}
:[[ArmA II Hints and Tips|Hints and tips]]
}}
:[[:Category:Scripting Commands ArmA2|Scripting commands]]
}}</includeonly><noinclude>{{Doc/Template
:[[:Category:Arma 2: Multiplayer|Multiplayer]]
|descr= Tutorial header.
|-
|param1= target
| [[Image:Logo A2.png|150px|link=ArmA 2|About Arma 2]]
|descr1= number in range 0..4: newcomer - beginner - moderate - advanced - expert
|
|param2= difficulty
==== {{arma2}} ====
|descr2= number in range 0..2: easy - normal - hard
:[[ArmA 2: Editing|Editing]]
|param3= prerequisites
:[[Arma2: Startup Parameters|Startup parameters]]
|descr3= (Optional) free text for prerequisite tutorials/knowledge. make a (sub-)list with <nowiki>**</nowiki> and new lines
:[[:Category:Scripting Commands ArmA2|Scripting commands]]
|example1= <nowiki>{{Header/Tutorial}}</nowiki>
:[[Mondkalb's Addon Tutorial|Creating Addons]]
|result1= {{User:Lou_Montana/Sandbox}}
|-
|example2= <nowiki>{{Header/Tutorial|target=0}}</nowiki>
| [[Image:Logo A1 black.png|150px|link=ArmA: The Game|About Arma: Armed Assault]]
|result2= {{User:Lou_Montana/Sandbox|target=0}}
|
|example3= <nowiki>{{Header/Tutorial|target=0|difficulty=0}}</nowiki>
==== {{arma}} ====
|result3= {{User:Lou_Montana/Sandbox|target=0|difficulty=0}}
:[[ArmA: Editing|Editing]]
|example4= <nowiki>{{Header/Tutorial|target=0|difficulty=1|prerequisites=a prerequisite}}</nowiki>
:[[:Category:Scripting Commands ArmA|Scripting commands]]
|result4= {{User:Lou_Montana/Sandbox|target=0|difficulty=1|prerequisites=a prerequisite}}
:[[:ArmA: Mission Editing|Mission Editing]]
|example5= <span style="white-space: pre"><nowiki>{{Header/Tutorial|target=0|difficulty=2|prerequisites=** prerequisite 1
:[[ArmA: FAQ|FAQ]]
** prerequisite 2}}</nowiki></span>
|-
|result5= {{User:Lou_Montana/Sandbox|target=0|difficulty=2|prerequisites=** prerequisite 1
| [[Image:Logo A0.png|150px|link=:Category:Operation_Flashpoint|About Arma: Cold War Assault]]
** prerequisite 2}}
|
}}</noinclude>
==== {{ofp}} / Arma: Cold War Assault ====
:[[:Category:Operation Flashpoint: Editing|Editing]]
:[[:Category:Operation Flashpoint: Startup Parameters|Startup parameters]]
:[[:Category:Operation Flashpoint: Addons|Addons]]
:[[:Category:Scripting Commands OFP 1.96|Scripting commands]]
|-
! colspan="2" |
=== DayZ ===
|-
| style="text-align: center" | [[File:dayzlogoinv.png|125px|link=DayZ|About DayZ]]
|
==== DayZ ====
:[[:Category:DayZ:Editing|Editing]]
:[[:Category:DayZ: Official Tools|Tools]]
:[[:Category:DayZ:Tutorials|Tutorials]]
:[[:Category:DayZ:Game Mechanics|Game mechanics]]
|-
! colspan="2" |
=== Ylands ===
|-
| [[Image:Ylands_3D_Logo.png|150px|link=Ylands|About Ylands]]
|
==== Ylands ====
:[[Ylands Visual Scripting|Visual Scripting]]
:[[Ylands Editor|Editor]]
:[[Ylands Database|Database]]
:[[Ylands Game Mechanics|Game mechanics]]
|-
! colspan="2" |
=== Take On Series ===
|-
| [[Image:Logo TakOH full.png|150px|link=Take On Helicopters|About Take On Helicopters]]
|
==== {{tkoh}} ====
:[[:Category:Take On Helicopters: Editing| Editing]]
:[[:Category:Scripting Commands Take On Helicopters|Scripting commands]]
:[[:Category:Take On Helicopters: Functions|Scripting functions]]
:[[Functions Library 2.0]]
|-
| [[Image:tkom_logo.png|150px|link=Take On Mars|About Take On Mars]]
|
==== {{tkom}} ====
:[[:Take On Mars: Editor|Editor]]
:[[:Take On Mars: Equipment|Equipment]]
|-
! colspan="2" |
=== Carrier Command ===
|-
| [[Image:CC_Logo.png|150px|link=:Carrier Command: Gaea Mission|About Carrier Command: Gaea Mission]]
|
==== Carrier Command ====
:[[Carrier Command: Gaea Mission: Startup Parameters|Startup Parameters]]
:[[Carrier Command: Gaea Mission: FAQ|FAQ]]
:[[:Category:Carrier Command: Official Tools|Official Tools]]
|}
 
<div style="display: flex; align-content: flex-start; align-items: flex-start; justify-content: center; flex-wrap: wrap"> <!-- flex container -->
<!--- EDITING (GENERAL) --->
<div class="floating-box">
== <div style="text-align: center">Editing (General)</div> ==
:[[Addons]]
:[[Terrain Editing]]
:[[Modelling]]
:[[:Category:Scripting Topics|Scripting (general)]]
:[[:Category:Tools|Tools]]
:[[Public Data]]
</div>
 
<!--- CONTRIBUTE --->
<div class="floating-box">
== <div style="text-align: center">Contribute</div> ==
:[[Getting Started]]
:[[Cheatsheet|Formatting Help & Templates]]
:[[Bohemia Interactive Community:Guidelines|Guidelines]]
:[[Village Pump (todo)|To-do]]
</div>
 
<!--- GETTING HELP --->
<div class="floating-box">
== <div style="text-align: center">Getting Help</div> ==
:[[Troubleshooting|Troubleshooting]]
:[https://forums.bohemia.net/ BIS Forums]
:[[:Category:Hints & Tips |Hints and Tips]]
:[https://discord.gg/Arma Discord]
</div>
 
</div><!-- end of flex container -->
 
 
[[:Category:Community Wiki]]
 
 
 
 
 
== Vehicles Speed and Fuel Stats ==
 
{| class="bikitable sortable"
!rowspan="2" | Class !! rowspan="2" | Name !! colspan="4" | Full tank consumption time !! colspan="3" | 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:
<spoiler><pre>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];
};
};
</pre></spoiler>

Revision as of 16:05, 16 April 2021



Future Header/Tutorial template Tutorial header.

This template is used on these pages.

Usage

{{Lou Montana/Sandbox|target|difficulty|prerequisites}}

  • target: number in range 0..4: newcomer - beginner - moderate - advanced - expert
  • difficulty: number in range 0..2: easy - normal - hard
  • prerequisites: (Optional) free text for prerequisite tutorials/knowledge. make a (sub-)list with ** and new lines
Examples
Code Result
{{Header/Tutorial}}
  • -no target defined-
  • -no difficulty defined-
{{Header/Tutorial|target=0}}
  • Target: newcomer
  • -no difficulty defined-
{{Header/Tutorial|target=0|difficulty=0}}
  • Target: newcomer
  • Difficulty: easy
{{Header/Tutorial|target=0|difficulty=1|prerequisites=a prerequisite}}
  • Target: newcomer
  • Difficulty: normal
  • Prerequisites:
a prerequisite
{{Header/Tutorial|target=0|difficulty=2|prerequisites=** prerequisite 1 ** prerequisite 2}}
  • Target: newcomer
  • Difficulty: hard
  • Prerequisites:
    • prerequisite 1
    • prerequisite 2