瀏覽代碼

changed boost script,added to laat,added hermes back,fixed trident class at-te updated readme

Namenai 7 年之前
父節點
當前提交
71a1a1e528

+ 103 - 0
Scripts/scripts/zeus3denScripts/globalFncAndVarPanel/zeusVariableAndFunctionPanel.sqf

@@ -0,0 +1,103 @@
+// Zeus control panel by Nam and Rexi
+namZeusPanelHermes={
+	params["_objToPlacePanelsOn"];
+	
+	//makes him handcuffed
+	([_objToPlacePanelsOn,true] call ace_captives_fnc_setHandcuffed);
+	
+	 removeGoggles _objToPlacePanelsOn;
+	_objToPlacePanelsOn AddUniform "SWOP_CloneOf_red_F_CombatUniform";
+	_objToPlacePanelsOn Addheadgear "SWOP_Cloneofficer_capR";
+	
+	_toggleColor="<t color='#0000FF'>";
+	_colorEnd="</t>";
+
+	
+	//Hermes Control Panel
+	_objToPlacePanelsOn addAction ["<t color='#A020F0'> Hermes Control Panel</t>", 
+	{
+		hint "REeeE-CC Euler    Euler stop ReeEeEing--CC Angel Angle 2k18"
+	}];
+	
+	//Help Command
+	_objToPlacePanelsOn addAction ["<t color='#A020F0'>Help</t>", 
+	{
+		hint "Actions below only work on existing vehicles any vehicles spawned after the action will be default"
+	}];
+	
+	
+	//Removes AAT's AI Coxial turrets 
+	_objToPlacePanelsOn  addAction ["<t color='#47FF1A'>Remove AAT AI Coxial Turret </t>",                
+	{
+    {
+    if ((typeOf _x) in ["O_SWOP_AAT_1"]) then {
+            
+	_x removeWeaponTurret ["Cannon_EWEBSWBFgun", [0]];
+	for [{_i=0}, {_i<3}, {_i=_i+1}] do
+	{
+	_x removeMagazineTurret ["1000Rnd_Laser_Cannon_EWEBSWBF" ,[0]];
+
+	};
+         
+        };
+    } forEach vehicles;
+	
+	hintSilent "Existing AATs have had Coaxial turret removed";
+	
+	}];//end
+
+	//Makes spawned AAT's Blue and gray
+	_objToPlacePanelsOn  addAction ["<t color='#47FF1A'>Make Spawned AAT's Blue Variant</t>",                
+	{
+	  {
+    if ((typeOf _x) in ["O_SWOP_AAT_1"]) then {
+    _x setobjecttextureglobal [1,"awing\t_awing_03_cw.paa"];
+	_x setobjecttextureglobal [0,"awing\t_awing_03_cw.paa"]; 
+         
+        };
+    } forEach vehicles;
+	hintSilent format["Existing AAT's have had Colours changed to Blue"];
+	}];//end
+		
+	//Seriously buffs the Homing Spider Droids with Titan AA missles and Rebel Laser Gun removes standard guns
+	_objToPlacePanelsOn _this  addAction ["<t color='#47FF1A'>Add AA Missles + better gun to Spider Droids </t>",                
+{
+    {
+    if ((typeOf _x) in ["SpiderOG"]) then {
+    _x removeWeaponTurret ["missiles_titan", [0]];
+	for [{_i=0}, {_i<5}, {_i=_i+1}] do
+	{
+	_x removeMagazineTurret ["4Rnd_Titan_long_missiles" ,[0]];
+	};
+    _x removeWeaponTurret ["Cannon_Antana", [0]];
+	for [{_i=0}, {_i<3}, {_i=_i+1}] do
+	{
+	_x removeMagazineTurret ["1000Rnd_Laser_Cannon_Antana" ,[0]];
+	}; 
+	_x removeweapon "Cannon_Spiderdroidog9"
+	
+	_x addWeaponTurret ["missiles_titan", [0]];
+	for [{_i=0}, {_i<5}, {_i=_i+1}] do
+	{
+	_x addMagazineTurret ["4Rnd_Titan_long_missiles" ,[0]];
+	};
+     	_x addWeaponTurret ["Cannon_Antana", [0]];
+	for [{_i=0}, {_i<3}, {_i=_i+1}] do
+	{
+	_x addMagazineTurret ["1000Rnd_Laser_Cannon_Antana" ,[0]];
+	};    
+
+			
+        };
+    } forEach vehicles;
+	}];//end
+
+
+};
+
+
+
+["B_Protagonist_VR_F", "init",namZeusPanelHermes, true, [], true] call CBA_fnc_addClassEventHandler; 
+
+
+

+ 4 - 1
Scripts/scripts/zeus3denScripts/namenaisInit.sqf

@@ -1,4 +1,4 @@
-//last update 3/25/2018 3:04 pm est by namenai
+//last update 3/26/2018 3:27 pm est by namenai
 
 //global variables that are used----------------------- decommissioned due to public variables being too hard-------------------- 
 	//[] execVM "scripts\zeus3denScripts\globalVars\globalVar.sqf";
@@ -35,4 +35,7 @@
 //Adds random star wars uniforms to the AAF vr entity soldier ---H
     [] execVM "scripts\zeus3denScripts\aiBased\factionBased\independent\AAF\RandomSWCIV.sqf"; 	
 	
+//Hermes Panel
+	[] execVM "scripts\zeus3denScripts\globalFncAndVarPanel\zeusVariableAndFunctionPanel.sqf";
+	
 

+ 7 - 2
Scripts/scripts/zeus3denScripts/readme.txt

@@ -1,4 +1,4 @@
-last update 3/26/2018 2:05 PM  est by namenai
+last update 3/26/2018 3:26 PM  est by namenai
 
 Here is the file path of various scripts,if its not listed here then its probably 1)scripts being prepped or 2) we forgot :P
 
@@ -40,7 +40,9 @@ Here is the file path of various scripts,if its not listed here then its probabl
 		//setter ---P ---EXP
 			[] execVM "scripts\zeus3denScripts\globalFnc\namEnableConfigAAT\setnamEnableConfigAAT.sqf";
 
-
+//globalFncAndVarPanel 	
+			//To allow zeus ease of changing variables for a mission as getters and setters are too hard for them ,sad bois
+			[] execVM "scripts\zeus3denScripts\globalFncAndVarPanel\zeusVariableAndFunctionPanel.sqf";
 			
 */
 //---------------------END DECOMMISSIONED--------------------------
@@ -107,6 +109,9 @@ Here is the file path of various scripts,if its not listed here then its probabl
 			//zeus use,note dont use both,working on fixing so that both can be used
 			[_this] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\forwardKappa.sqf";
 			[_this] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\reverseKappa.sqf";
+		//Optre-f18 hybrid boost
+			["_vic","_namMaxSpeed","_namMinSpeed","_namAccel"] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\boostStart.sqf";
+			["_vic","_namMinSpeed","_namDeAccel"] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\boostStop.sqf";
 
 
 			

+ 35 - 15
Scripts/scripts/zeus3denScripts/vehicleBased/actionMenu/Boost/boostStart.sqf

@@ -1,22 +1,42 @@
-params["_vic","_namMaxSpeed","_namMinSpeed","_namAccel"];
+try
+{
+	params["_vic","_namMaxSpeed","_namMinSpeed","_namAccel"];
 
 
 
-hint "ENGAGING FORWARD THRUSTERS";
-if(speed _vic >= _namMinSpeed) then 
-{
-	while {((_pelican getvariable ["OPTRE_Thruster_EngagedStatus",false]) AND (alive _vic))} do
+	hint "ENGAGING FORWARD THRUSTERS";
+	if(speed _vic >= _namMinSpeed) then 
 	{
-		if (speed _vic <= 600) then {
-			_vel = velocity _vic;
-			_dir = direction _vic;
-			_speed = _namAccel;//10
-			_vic setVelocity [
-			(_vel select 0) + (sin _dir * _speed), 
-			(_vel select 1) + (cos _dir * _speed), 
-			(_vel select 2)
-			];
+		while {((_pelican getvariable ["OPTRE_Thruster_EngagedStatus",false]) AND (alive _vic))} do
+		{
+			if (speed _vic <= 600) then {
+				_vel = velocity _vic;
+				_dir = direction _vic;
+				_speed = _namAccel;//10
+				
+				/* optre boost logic
+				_vic setVelocity [
+				(_vel select 0) + (sin _dir * _speed), 
+				(_vel select 1) + (cos _dir * _speed), 
+				(_vel select 2)
+				];
+				*/
+				
+				//f-18 black super mega horent boost logic
+				 (_vic) setVelocity 
+				 [
+				 (velocity (_vic) select 0)+((vectordir (_vic)) select 0)*_speed,
+				 (velocity (_vic) select 1)+((vectordir (_vic)) select 1)*_speed,
+				 (velocity (_vic) select 2)+((vectordir (_vic)) select 2)*_speed
+				 ];
+				
+				
+			};
+			sleep 0.5;
 		};
-		sleep 0.5;
 	};
+}
+catch
+{
+	hint "wrong parameters passed";
 };

+ 34 - 14
Scripts/scripts/zeus3denScripts/vehicleBased/actionMenu/Boost/boostStop.sqf

@@ -1,20 +1,40 @@
-params["_vic","_namMinSpeed","_namDeAccel"];
+try 
+{
+	params["_vic","_namMinSpeed","_namDeAccel"];
 
 
 
 
 
-hint format["DISENGAGING FORWARD THRUSTERS\n\nACTIVATING AIR BRAKES"];
-while {(!(_vic getvariable ["OPTRE_Thruster_EngagedStatus",false]) AND (speed _vic > _namMinSpeed))} do
+	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
+		
+		/*optre boost logic
+		_vic setVelocity [
+		(_vel select 0) + (sin _dir * _speed), 
+		(_vel select 1) + (cos _dir * _speed), 
+		(_vel select 2)
+		];
+		*/ 
+		
+		//f-18 blakc mega hornet boost logic in reverse
+		(_vic) setVelocity 
+		 [
+		 (velocity (_vic) select 0)+((vectordir (_vic)) select 0)*-1*_speed,
+		 (velocity (_vic) select 1)+((vectordir (_vic)) select 1)*-1*_speed,
+		 (velocity (_vic) select 2)+((vectordir (_vic)) select 2)*-1*_speed
+		 ];
+		
+		
+		sleep 0.5;
+	};
+}
+catch 
 {
-	_vel = velocity _vic;
-	_dir = direction _vic;
-	_speed = _namDeAccel;//-10
-	_vic setVelocity [
-	(_vel select 0) + (sin _dir * _speed), 
-	(_vel select 1) + (cos _dir * _speed), 
-	(_vel select 2)
-	];
-	sleep 0.5;
-};
- 
+	hint "wrong parameters passed";
+
+};

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

@@ -1,7 +1,8 @@
 claymoreI={
 	params["_vic"];
-
 	
+		//for Ai
+		_vic limitSpeed 190;
 	
 	
 		comment "data for weapons";
@@ -78,12 +79,19 @@ claymoreI={
 
 	},[1],0,false,true,""," driver  _target == _this "];
 
-
-
-
 	
 	
+	//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";
+	},[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";
+	},[1],0,false,true,"User19"," driver  _target == _this"];
 	
 };
 

+ 1 - 1
Scripts/scripts/zeus3denScripts/vehicleBased/vehicleVariants/landBased/ATTE/atteTridentClass.sqf

@@ -115,7 +115,7 @@
 	ATTE_gun1 addMagazineTurret ["1000Rnd_Laser_Cannon_LAAT",[0]];    
 	createVehicleCrew ATTE_gun1;
 	atte_gun1 allowCrewInImmobile true;
-	([atte_gun1 ,true] call ace_captives_fnc_setHandcuffed
+	([atte_gun1 ,true] call ace_captives_fnc_setHandcuffed)
 	
 //turrets that fire the laat cannons 2
 	atte_gun2 = "B_HMG_01_A_F" createVehicle (position _dropTurret);