Просмотр исходного кода

Switch to included zeus module and change name and icon

thefloff 4 лет назад
Родитель
Сommit
5c6cad8f89

+ 3 - 1
addons - Copy/RD501_Zeus/XEH_preInit.sqf

@@ -1 +1,3 @@
-#include "XEH_PREP.sqf"
+#include "XEH_PREP.sqf"
+
+[] spawn tts_beam_fnc_customZeusModules;

+ 0 - 12
addons - Copy/RD501_Zeus/config.cpp

@@ -146,18 +146,6 @@ class CfgVehicles
 		delete Arguments;
 
 	};
-     class macro_new_ordnance(OrbitalLaser): Module_F {
-		author = "RD501";
-        curatorCanAttach = 1;
-		isGlobal = 1;
-		scope = 1;
-		scopeCurator = 2;
-        isTriggerActivated = 0;
-        category = "Ordnance";
-		displayName = "Orbital Laser";
-        function = "tts_beam_fnc_beam";
-		portrait = "RD501_Zeus\ui\explosion_zeus_icon_small.paa";
-    };
 };
 class CfgAmmo
 {

+ 3 - 2
addons - Copy/RD501_Zeus/functions/fn_customZeusModules.sqf

@@ -57,7 +57,7 @@ if (!isNull (getAssignedCuratorLogic player) && {isClass (configFile >> "CfgPatc
 };
 
 if (!isNull (getAssignedCuratorLogic player) && {isClass (configFile >> "CfgPatches" >> "zen_main")}) then {
-	["Fire Support", "Beam Laser Strike",
+	["Fire Support", "Orbital Laser",
 	{
 		params [["_position", [0,0,0], [[]], 3], ["_attachedObject", objNull, [objNull]]];
 
@@ -109,6 +109,7 @@ if (!isNull (getAssignedCuratorLogic player) && {isClass (configFile >> "CfgPatc
 				_beamTarget spawn {sleep 60; deleteVehicle _this;}; // wait and cleanup target pos
 			}, {}, [_position] // args
 		] call zen_dialog_fnc_create;
-	}] call zen_custom_modules_fnc_register
+	}, 
+	"RD501_Zeus\ui\explosion_zeus_icon_small.paa"] call zen_custom_modules_fnc_register
 };