Ver Fonte

fixing boost

Namenai há 7 anos atrás
pai
commit
451ac803cd

+ 4 - 2
Scripts/scripts/zeus3denScripts/vehicleBased/actionMenu/Boost/boostStart.sqf

@@ -4,15 +4,17 @@ try
 
 
 
-	hint "ENGAGING FORWARD THRUSTERS";
+
 	if(speed _vic >= _namMinSpeed) then 
 	{
+		_vic setvariable ["OPTRE_Thruster_EngagedStatus",true,true];
+		hint "ENGAGING FORWARD THRUSTERS";
 		while {((_vic getvariable ["OPTRE_Thruster_EngagedStatus",false]) AND (alive _vic))} do
 		{
 			if (speed _vic <= 600) then {
 				_vel = velocity _vic;
 				_dir = direction _vic;
-				_speed = _namAccel;//10
+				_speed = abs(_namAccel);//10
 				
 				/* optre boost logic
 				_vic setVelocity [

+ 4 - 2
Scripts/scripts/zeus3denScripts/vehicleBased/actionMenu/Boost/boostStop.sqf

@@ -5,13 +5,13 @@ try
 
 
 
-
+	_vic setvariable ["OPTRE_Thruster_EngagedStatus",false,true];
 	hint format["DISENGAGING FORWARD THRUSTERS\n\nACTIVATING AIR BRAKES"];
 	while {(!(_vic getvariable ["OPTRE_Thruster_EngagedStatus",false]) AND (speed _vic > _namMinSpeed))} do
 	{
 		_vel = velocity _vic;
 		_dir = direction _vic;
-		_speed = _namDeAccel;//-10
+		_speed = abs(_namDeAccel);//-10
 		
 		/*optre boost logic
 		_vic setVelocity [
@@ -32,6 +32,8 @@ try
 		
 		sleep 0.5;
 	};
+	_vic setvariable ["OPTRE_Thruster_EngagedStatus",false,true];
+	hint format["THRUSTERS\n\nDOWN"];
 }
 catch 
 {

+ 4 - 3
Scripts/scripts/zeus3denScripts/vehicleBased/vehicleVariants/airBased/LAAT/laatClaymore.sqf

@@ -79,18 +79,19 @@ claymoreI={
 
 	},[1],0,false,true,""," driver  _target == _this "];
 
-	
+	//by default boost is off
+	_vic setvariable ["OPTRE_Thruster_EngagedStatus",false,true];
 	
 	//adds action to engage boost
 	_vic  addAction ["<t color='#00FF00'>Engage C.R.U.I.S.I.E Control System -------- U18</t>",
 	{
-		[_this select 0,620,10,20] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\boostStart.sqf";
+		[_this select 0,620,10,50] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\boostStart.sqf";
 	},[1],0,false,true,"User18"," driver  _target == _this"];
 	
 	//adds action to disengage boost
 	_vic  addAction ["<t color='#FFA500'>Disengage C.R.U.I.S.I.E Control System -------- U19</t>",
 	{
-		[_this select 0,80,20] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\boostStop.sqf";
+		[_this select 0,80,10] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\boostStop.sqf";
 	},[1],0,false,true,"User19"," driver  _target == _this"];
 	
 };