zeusVariableAndFunctionPanel.sqf 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // Zeus control panel by Nam and Rexi
  2. namZeusPanelHermes={
  3. params["_objToPlacePanelsOn"];
  4. //makes him handcuffed
  5. ([_objToPlacePanelsOn,true] call ace_captives_fnc_setHandcuffed);
  6. removeGoggles _objToPlacePanelsOn;
  7. _objToPlacePanelsOn AddUniform "SWOP_CloneOf_red_F_CombatUniform";
  8. _objToPlacePanelsOn Addheadgear "SWOP_Cloneofficer_capR";
  9. _toggleColor="<t color='#0000FF'>";
  10. _colorEnd="</t>";
  11. //Hermes Control Panel
  12. _objToPlacePanelsOn addAction ["<t color='#A020F0'> Hermes Control Panel</t>",
  13. {
  14. hint "REeeE-CC Euler Euler stop ReeEeEing--CC Angel Angle 2k18"
  15. }];
  16. //Help Command
  17. _objToPlacePanelsOn addAction ["<t color='#A020F0'>Help</t>",
  18. {
  19. hint "Actions below only work on existing vehicles any vehicles spawned after the action will be default"
  20. }];
  21. //Removes AAT's AI Coxial turrets
  22. _objToPlacePanelsOn addAction ["<t color='#47FF1A'>Remove AAT AI Coxial Turret </t>",
  23. {
  24. {
  25. if ((typeOf _x) in ["O_SWOP_AAT_1"]) then {
  26. _x removeWeaponTurret ["Cannon_EWEBSWBFgun", [0]];
  27. for [{_i=0}, {_i<3}, {_i=_i+1}] do
  28. {
  29. _x removeMagazineTurret ["1000Rnd_Laser_Cannon_EWEBSWBF" ,[0]];
  30. };
  31. };
  32. } forEach vehicles;
  33. hintSilent "Existing AATs have had Coaxial turret removed";
  34. }];//end
  35. //Makes spawned AAT's Blue and gray
  36. _objToPlacePanelsOn addAction ["<t color='#47FF1A'>Make Spawned AAT's Blue Variant</t>",
  37. {
  38. {
  39. if ((typeOf _x) in ["O_SWOP_AAT_1"]) then {
  40. _x setobjecttextureglobal [1,"awing\t_awing_03_cw.paa"];
  41. _x setobjecttextureglobal [0,"awing\t_awing_03_cw.paa"];
  42. };
  43. } forEach vehicles;
  44. hintSilent format["Existing AAT's have had Colours changed to Blue"];
  45. }];//end
  46. //Seriously buffs the Homing Spider Droids with Titan AA missles and Rebel Laser Gun removes standard guns
  47. _objToPlacePanelsOn _this addAction ["<t color='#47FF1A'>Add AA Missles + better gun to Spider Droids </t>",
  48. {
  49. {
  50. if ((typeOf _x) in ["SpiderOG"]) then {
  51. _x removeWeaponTurret ["missiles_titan", [0]];
  52. for [{_i=0}, {_i<5}, {_i=_i+1}] do
  53. {
  54. _x removeMagazineTurret ["4Rnd_Titan_long_missiles" ,[0]];
  55. };
  56. _x removeWeaponTurret ["Cannon_Antana", [0]];
  57. for [{_i=0}, {_i<3}, {_i=_i+1}] do
  58. {
  59. _x removeMagazineTurret ["1000Rnd_Laser_Cannon_Antana" ,[0]];
  60. };
  61. _x removeweapon "Cannon_Spiderdroidog9"
  62. _x addWeaponTurret ["missiles_titan", [0]];
  63. for [{_i=0}, {_i<5}, {_i=_i+1}] do
  64. {
  65. _x addMagazineTurret ["4Rnd_Titan_long_missiles" ,[0]];
  66. };
  67. _x addWeaponTurret ["Cannon_Antana", [0]];
  68. for [{_i=0}, {_i<3}, {_i=_i+1}] do
  69. {
  70. _x addMagazineTurret ["1000Rnd_Laser_Cannon_Antana" ,[0]];
  71. };
  72. };
  73. } forEach vehicles;
  74. }];//end
  75. };
  76. ["B_Protagonist_VR_F", "init",namZeusPanelHermes, true, [], true] call CBA_fnc_addClassEventHandler;