started rewrite of the scripts from scratch

This commit is contained in:
Eero af Heurlin 2016-07-24 19:23:46 +03:00
parent f7d7965d4f
commit 0a519cdbcb
6 changed files with 2628 additions and 0 deletions

View File

@ -0,0 +1,49 @@
// since we're working with the player object here, make sure it exists
waitUntil { !isNil {player} };
waitUntil { player == player };
switch (side player) do
{
case WEST: // BLUFOR briefing goes here
{
player createDiaryRecord ["Diary", ["I found a bug?",
"No you didn't. Shhh."]];
player createDiaryRecord ["Diary", ["Does it end?",
"Nope! The mission will continue on until you feel you've had enough training, at which point you can quit."]];
player createDiaryRecord ["Diary", ["How do I change the parameters?",
"The parameters can be changed by hosting the mission as a multiplayer server (Multiplayer > New > LAN) and selecting the 'PARAMETERS' option in the top right.
You can then tweak it to your hearts content!"]];
player createDiaryRecord ["Diary", ["Refuelling",
"There is a refuelling truck at the air field which you can use to refill your tank if you begin to run low."]];
player createDiaryRecord ["Diary", ["Mission Objectives",
"Select your chopper of choice and fly to the marked LZ. You'll be meeting up with fireteams who've requested EVAC and transporting them to other LZs. Watch out for enemy squads and anti-air troopers."]];
};
case EAST: // REDFOR briefing goes here
{
};
case RESISTANCE: // RESISTANCE/INDEPENDENT briefing goes here
{
};
case CIVILIAN: // CIVILIAN briefing goes here
{
};
};

View File

@ -0,0 +1,65 @@
onLoadIntroTime=false;
onLoadMissionTime=false;
disabledAI=1;
debriefing=1;
showGPS=1;
Respawn = 3;
RespawnDelay = 8;
RespawnDialog = 0;
respawnOnStart = 1;
respawnButton = 1;
enabledebugconsole = 1;
loadScreen = "main.jpg";
author = Eero 'rambo' af Heurlin;
onLoadName = Helicopter Training MP;
//Parameters
class Params
{
class DayTime
{
//paramsArray[0]
title = "Time Of Day";
values[] = {5,12,7,0,1};
texts[] = {"Dawn","Midday","Dusk", "Midnight", "Random"};
default = 12;
};
class LZSize
{
//paramsArray[1]
title = "LZ Size";
values[] = {100,200,300,400,500,600,700,800,900,1000};
texts[] = {"100m","200m","300m","400m","500m","600m","700m","800m","900m","1000m"};
default = 300;
};
class SmokeSetting
{
//paramsArray[2]
title = "Smoke/Chemlights";
values[] = {0,1};
texts[] = {"Off", "On"};
default = 1;
};
class HotLZProbability
{
//paramsArray[3]
title = "Hot LZ Chance";
values[] = {0,20,50,80,100};
texts[] = {"Never", "Low", "Medium", "High", "Always"};
default = 50;
};
class AAProbability
{
//paramsArray[4]
title = "Anti Air Population";
values[] = {0,10,20,50,100};
texts[] = {"None", "Low", "Medium", "High", "Kill Me"};
default = 10;
};
};

View File

@ -0,0 +1,52 @@
lzLanded = compile preProcessfile "lzlanded.sqf";
null = execVM "briefing.sqf";
_maxplayers = 4;
_lzCount = 86;
//Handle parameters
//Time of day
_time = paramsArray select 0;
if (_time != 1) then
{
skipTime (_time - daytime + 24 ) % 24;
}
else
{
skiptime (floor random 24);
};
//LZ size
lzSize = paramsArray select 1;
publicVariable "lzSize";
//Smoke setting
bSmoke = if ((paramsArray select 2) == 1) then {true} else {false};
publicVariable "bSmoke";
//Hot LZ chance
_hotLZParam = paramsArray select 3;
hotLZChance = if (_hotLZParam > 0) then {_hotLZParam / 100} else {0.0};
publicVariable "hotLZChance";
//Anti air chance
_AAParam = paramsArray select 4;
AAChance = if (_AAParam > 0) then {_AAParam / 100} else {0.0};
publicVariable "AAChance";
lzList = [];
_x = 0;
while {_x < _lzCount} do
{
_lz = missionNamespace getVariable ("lz" + format["%1", _x + 1]);
lzList = lzList + [_lz];
_x = _x + 1;
};
publicVariable "lzList";
missionInitComplete = true;
publicVariable "missionInitComplete";

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,4 @@
diag_log format["vehicleIinit called, _this: %1", _this];
_vehicle = _this select 0;
_pilot = _this select 1;