projectarma1

 

 

private[“_event”,”_keyCode”,”_return”];

_event = _this;
_keyCode = _event select 1;
_return = true;

#define FACTOR 50

switch (_keyCode) do
{
case 1://ESC
{
call PXS_closeCamera;
};
case 2://1 normal view
{
[2] call PXS_adjustCamera;
};
case 3://2 thermograph
{
[3] call PXS_adjustCamera;
};
case 4://3 white is hot
{
[4] call PXS_adjustCamera;
};
case 5://4 black is hot
{
[5] call PXS_adjustCamera;
};
case 50://M redefine default satellite position
{
call PXS_redefineDefaultPos;
};
default
{
_return = false;
};
};
// key combo handling
if (!(_return)) then
{
private[“_pressedButtonArray”];
_pressedButtonArray = [_keyCode];
_return = true;

// check for key actions
switch (true) do
{
//case 17://W
case (({_x in _pressedButtonArray} count (actionKeys “MoveForward”)) > 0):
{
PXS_SatelliteNorthMovementDelta = 8;
PXS_SatelliteTarget setPos [((getPos PXS_SatelliteTarget) select 0),((getPos PXS_SatelliteTarget) select 1) + PXS_SatelliteNorthMovementDelta,(getPos PXS_SatelliteTarget) select 2];
call PXS_updateCamera;
};
//case 31://S
case (({_x in _pressedButtonArray} count (actionKeys “MoveBack”)) > 0):
{
PXS_SatelliteSouthMovementDelta = 8;
PXS_SatelliteTarget setPos [((getPos PXS_SatelliteTarget) select 0),((getPos PXS_SatelliteTarget) select 1) – PXS_SatelliteSouthMovementDelta,(getPos PXS_SatelliteTarget) select 2];
call PXS_updateCamera;
};
//case 30://A
case (({_x in _pressedButtonArray} count (actionKeys “TurnLeft”)) > 0):
{
PXS_SatelliteWestMovementDelta = 8;
PXS_SatelliteTarget setPos [((getPos PXS_SatelliteTarget) select 0) – PXS_SatelliteWestMovementDelta,((getPos PXS_SatelliteTarget) select 1),(getPos PXS_SatelliteTarget) select 2];
call PXS_updateCamera;
};
//case 32://D
case (({_x in _pressedButtonArray} count (actionKeys “TurnRight”)) > 0):
{
PXS_SatelliteEastMovementDelta = 8;
PXS_SatelliteTarget setPos [((getPos PXS_SatelliteTarget) select 0) + PXS_SatelliteEastMovementDelta,((getPos PXS_SatelliteTarget) select 1),(getPos PXS_SatelliteTarget) select 2];
call PXS_updateCamera;
};
//case 78://Num +
case ((({_x in _pressedButtonArray} count (actionKeys “ZoomIn”)) > 0) || (({_x in _pressedButtonArray} count (actionKeys “MoveDown”)) > 0)):
{
if ((PXS_SatelliteFOV) >= 0.011) then
{
PXS_SatelliteFOV = PXS_SatelliteFOV * (0.8);
//PXS_SatelliteFOV = PXS_SatelliteFOV – (0.0005 * FACTOR);
//PXS_SatelliteZoom = PXS_SatelliteZoom + (0.02 * FACTOR);
call PXS_updateCamera;
};
};
//case 74://Num –
case ((({_x in _pressedButtonArray} count (actionKeys “ZoomOut”)) > 0) || (({_x in _pressedButtonArray} count (actionKeys “MoveUp”)) > 0)):
{
if ((PXS_SatelliteFOV) < 8) then
{
PXS_SatelliteFOV = PXS_SatelliteFOV * (1.0/0.8);
//PXS_SatelliteFOV = PXS_SatelliteFOV + (0.0005 * FACTOR);
//PXS_SatelliteZoom = PXS_SatelliteZoom – (0.02 * FACTOR);
call PXS_updateCamera;
};
};
default
{
_return = false;
};
};
};
_return;

 

 

 

 

 

control2 removeAction propaganda2;
control2 removeAction martiallaw;
control2 removeAction mortar;
control2 removeAction raid1;
if (player == player) then {hint “All blocks located on map. Please give the order which one to raid or use action cancel to cancel”};
cancel1= control2 addaction [“<t color=””#FF0000″”>”+”CANCEL RAID”, {“script\raid\cancel.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
raidgo1= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block1″, {“script\raid\2.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
raidgo2= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block2″, {“script\raid\3.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
raidgo3= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block3″, {“script\raid\3.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
raidgo4= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block4″, {“script\raid\4.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
raidgo5= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block5″, {“script\raid\5.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
raidgo6= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block6″, {“script\raid\6.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];

raidgo7= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block7″, {“script\raid\7.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
raidgo8= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block8″, {“script\raid\8.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
raidgo9= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block9″, {“script\raid\9.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
raidgo10= control2 addaction [“<t color=””#FF0000″”>”+”Give order to raid block10″, {“script\raid\10.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
“block1” setMarkerPosLocal getMarkerPos “house1”;
“block2” setMarkerPosLocal getMarkerPos “house2”;
“block3” setMarkerPosLocal getMarkerPos “house3”;
“block4” setMarkerPosLocal getMarkerPos “house4”;
“block5” setMarkerPosLocal getMarkerPos “house5”;

“block6” setMarkerPosLocal getMarkerPos “house6”;
“block7” setMarkerPosLocal getMarkerPos “house7”;
“block8” setMarkerPosLocal getMarkerPos “house8”;
“block9” setMarkerPosLocal getMarkerPos “house9”;
“block10” setMarkerPosLocal getMarkerPos “house10”;

sleep 20;

propaganda2= control2 addaction [“<t color=””#0CFF00″”>”+”Give order for citizen count”, {“propaganda2.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];

MartialLaw= control2 addaction [“<t color=””#FF8B00″”>”+”Enable Martial Law status”, {“MartialLaw.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
Mortar= control2 addaction [“<t color=””#FF0000″”>”+”(EMERGENCY) Enable Mortar shelling of City 25 “, {“mortar.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];

 

 

 

 

dafire = “test_EmptyObjectForFireBig” createVehicle position dafire;

myfirevalue = 10;

While {myfirevalue > 0} do {

myfirevalue = myfirevalue +1;
sleep 1;
hint format [“%1”,myfirevalue];
waituntil {!alive firetriggered};

hint “ALARM FIRE!!!”;

//
if (myfirevalue > 29) then {deletevehicle firetriggered
};

 

laptop1 removeAction production1;
arrowgreen hideobject true;
arrowyellow hideobject false;
productionlightgreen hideobject true;
productionlightyellow hideobject false;
hint “production phase 1 started”;
laptop1 say3D “done”;
meat1 enablesimulation true;
meat1 attachTo [gear0, [0, 1.5, 0.4] ];
meat1 enablesimulation false;
sleep 3;

meat1 attachTo [gear1, [0, 1.5, 0.4] ];
sleep 2;
hint “start”;

meat1 attachTo [gear2, [0, 1.5, 0.4] ];

sleep 2;
meat1 attachTo [gear3, [0, 1.5, 0.4] ];

sleep 2;
meat1 attachTo [gear4, [0, 1.5, 0.4] ];

sleep 2;
meat1 attachTo [gear5, [0, 1.5, 0.4] ];

sleep 2;
meat1 attachTo [gear6, [0, 1.5, 0.4] ];

sleep 2;
meat1 attachTo [gear7, [0, 1.5, 0.4] ];
sleep 2;
meat1 attachTo [gear8, [0, 1.5, 0.4] ];
hint “finished”;
arrowyellow hideobject true;
arrowred hideobject false;

productionlightred hideobject false;
productionlightyellow hideobject true;
sleep 3;
production2 = laptop2 addaction [“Start Production Phase 2 (Washing)”, {“Script\factory\production2.sqf” remoteExec [ “BIS_fnc_execVM”,2 ] }];
laptop1 say3D “done”;
productionlightgreen2 hideobject false;
productionlightred2 hideobject true;
arrowgreen2 hideobject false;
arrowred2 hideobject true;