|
@@ -1,11 +1,11 @@
|
|
-comment "Varialbe Decs";
|
|
|
|
|
|
+comment "Variable Decs";
|
|
_this allowDamage false;
|
|
_this allowDamage false;
|
|
_this setvariable ["Speed",200,true];
|
|
_this setvariable ["Speed",200,true];
|
|
_this setvariable ["turnon",true,true];
|
|
_this setvariable ["turnon",true,true];
|
|
|
|
|
|
|
|
|
|
comment "Increment Speed";
|
|
comment "Increment Speed";
|
|
-_this addAction ["<t color='#A668C2'>Increment Speed by 10</t>",
|
|
|
|
|
|
+_this addAction ["<t color='#A668C2'>Increment Speed by 10 -------- U16</t>",
|
|
{
|
|
{
|
|
(_this select 0) setvariable ["Speed",(((_this select 0) getVariable "Speed")+10),true];
|
|
(_this select 0) setvariable ["Speed",(((_this select 0) getVariable "Speed")+10),true];
|
|
hint parseText format["<t color='#A668C2'> Speed set to:%1 Kmph</t>",((_this select 0) getVariable "Speed")];
|
|
hint parseText format["<t color='#A668C2'> Speed set to:%1 Kmph</t>",((_this select 0) getVariable "Speed")];
|
|
@@ -14,7 +14,7 @@ hint parseText format["<t color='#A668C2'> Speed set to:%1 Kmph</t>",((_this sel
|
|
|
|
|
|
|
|
|
|
comment "Decrement Speed";
|
|
comment "Decrement Speed";
|
|
-_this addAction ["<t color='#FF69B4'>Decrement Speed by 10</t>",
|
|
|
|
|
|
+_this addAction ["<t color='#FF69B4'>Decrement Speed by 10 -------- U17</t>",
|
|
{
|
|
{
|
|
(_this select 0) setvariable ["Speed",(((_this select 0) getVariable "Speed")-10),true];
|
|
(_this select 0) setvariable ["Speed",(((_this select 0) getVariable "Speed")-10),true];
|
|
hint parseText format["<t color='#FF69B4'>Speed set to:%1 Kmph</t>",((_this select 0) getVariable "Speed")];
|
|
hint parseText format["<t color='#FF69B4'>Speed set to:%1 Kmph</t>",((_this select 0) getVariable "Speed")];
|
|
@@ -24,7 +24,7 @@ hint parseText format["<t color='#FF69B4'>Speed set to:%1 Kmph</t>",((_this sele
|
|
|
|
|
|
|
|
|
|
comment "Engage";
|
|
comment "Engage";
|
|
-_this addAction ["<t color='#00FF00'>Engage C.R.U.I.S.I.E Control System</t>",
|
|
|
|
|
|
+_this addAction ["<t color='#00FF00'>Engage C.R.U.I.S.I.E Control System -------- U18</t>",
|
|
{
|
|
{
|
|
(_this select 0) setobjecttextureglobal [1,"optre_vehicles\pelican\data\PelicanExterior_Black_CO.paa"];
|
|
(_this select 0) setobjecttextureglobal [1,"optre_vehicles\pelican\data\PelicanExterior_Black_CO.paa"];
|
|
(_this select 0) setvariable ["turnon",true,true];
|
|
(_this select 0) setvariable ["turnon",true,true];
|
|
@@ -39,7 +39,25 @@ _Max_Multiplier = .1;
|
|
_Coef_mul=((_Acceleration*_Multiplier/2)*(15*_sleep_time_acceleration_loop));
|
|
_Coef_mul=((_Acceleration*_Multiplier/2)*(15*_sleep_time_acceleration_loop));
|
|
|
|
|
|
|
|
|
|
-if ((speed (_this select 0)) < ((_this select 0) getVariable "Speed")) then { ((_this select 0)) setVelocity [(velocity ((_this select 0)) select 0)+((vectordir ((_this select 0))) select 0)*_Coef_mul,(velocity ((_this select 0)) select 1)+((vectordir ((_this select 0))) select 1)*_Coef_mul,(velocity ((_this select 0)) select 2)+((vectordir ((_this select 0))) select 2)*_Coef_mul]};
|
|
|
|
|
|
+if ((speed (_this select 0)) < ((_this select 0) getVariable "Speed")) then {
|
|
|
|
+ ((_this select 0)) setVelocity
|
|
|
|
+ [
|
|
|
|
+ (velocity ((_this select 0)) select 0)+((vectordir ((_this select 0))) select 0)*_Coef_mul,
|
|
|
|
+ (velocity ((_this select 0)) select 1)+((vectordir ((_this select 0))) select 1)*_Coef_mul,
|
|
|
|
+ (velocity ((_this select 0)) select 2)+((vectordir ((_this select 0))) select 2)*_Coef_mul
|
|
|
|
+ ]
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+if ((speed (_this select 0)) > ((_this select 0) getVariable "Speed")) then {
|
|
|
|
+_Coef_mul=-1*_Coef_mul;
|
|
|
|
+((_this select 0)) setVelocity
|
|
|
|
+[
|
|
|
|
+(velocity ((_this select 0)) select 0)+((vectordir ((_this select 0))) select 0)*_Coef_mul,
|
|
|
|
+(velocity ((_this select 0)) select 1)+((vectordir ((_this select 0))) select 1)*_Coef_mul,
|
|
|
|
+(velocity ((_this select 0)) select 2)+((vectordir ((_this select 0))) select 2)*_Coef_mul
|
|
|
|
+]
|
|
|
|
+
|
|
|
|
+};
|
|
|
|
|
|
|
|
|
|
if (_Multiplier < _Max_Multiplier) then {_Multiplier = _Multiplier + 0.1*(15*_sleep_time_acceleration_loop)};
|
|
if (_Multiplier < _Max_Multiplier) then {_Multiplier = _Multiplier + 0.1*(15*_sleep_time_acceleration_loop)};
|
|
@@ -51,7 +69,7 @@ turnon=false;
|
|
|
|
|
|
|
|
|
|
comment "Disenage";
|
|
comment "Disenage";
|
|
-_this addAction ["<t color='#FFA500'>Disengage C.R.U.I.S.I.E Control System</t>",
|
|
|
|
|
|
+_this addAction ["<t color='#FFA500'>Disengage C.R.U.I.S.I.E Control System -------- U19</t>",
|
|
{
|
|
{
|
|
(_this select 0) setvariable ["turnon",false,true];
|
|
(_this select 0) setvariable ["turnon",false,true];
|
|
hint parseText "<t color='#FFA500'>DISENGAGING C.R.U.I.S.I.E Control System</t>";
|
|
hint parseText "<t color='#FFA500'>DISENGAGING C.R.U.I.S.I.E Control System</t>";
|
|
@@ -62,7 +80,7 @@ hint parseText "<t color='#FFA500'>DRIVE DOWN</t>";
|
|
|
|
|
|
|
|
|
|
comment "Halt";
|
|
comment "Halt";
|
|
-_this addAction ["<t color='#FF0000'>Stop Driver</t>",
|
|
|
|
|
|
+_this addAction ["<t color='#FF0000'>Stop Driver -------- U20</t>",
|
|
{
|
|
{
|
|
(_this select 0) setvariable ["turnon",false,true];
|
|
(_this select 0) setvariable ["turnon",false,true];
|
|
hint parseText "<t color='#FF0000'>HALTING</t>";
|
|
hint parseText "<t color='#FF0000'>HALTING</t>";
|