zeusVariableAndFunctionPanel.sqf 2.8 KB

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