atteTridentClass.sqf 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. //ye ole drop turret on which all stands
  2. params["_vic"];
  3. //The object that has the action menu to deploy this at-te
  4. _dropTurret=_vic;
  5. //The stomper that makes at-te move
  6. atte_drive = "B_UGV_01_rcws_F" createVehicle (position _dropTurret);
  7. //sleep 1;
  8. // create the ai crew to allow you to control the uav;
  9. createVehicleCrew atte_drive;
  10. // make invis,the uav that is; 0,1,2,3
  11. for [{_i=0}, {_i<(4)}, {_i=_i+1}] do
  12. {
  13. atte_drive setobjecttextureglobal [_i,""];
  14. };
  15. // remove cargo space of uav;
  16. [atte_drive, -1] call ace_cargo_fnc_setSpace;
  17. // damage the wheels of uav to set top speed: gives 3 speeds slow forward = 10km forward = 20km fast forward = 29km;
  18. {atte_drive setHitPointDamage[_x,0.90]} forEach ["HitLF2Wheel","HitRF2Wheel"];
  19. {atte_drive setHitPointDamage[_x,0.90]} forEach ["HitLFWheel","HitRFWheel"];
  20. {atte_drive setHitPointDamage[_x,0.90]} forEach ["HitLmWheel","HitRmWheel"];
  21. //dmgs lights
  22. atte_drive setHitIndex [20, 1];
  23. atte_drive setHitIndex [21, 1];
  24. atte_drive setHitIndex [22, 1];
  25. atte_drive setHitIndex [23, 1];
  26. atte_drive setHitIndex [24, 1];
  27. //cant take dmg the stomper
  28. atte_drive allowDamage false;
  29. atte_drive lockTurret [[1], true];
  30. // Remove the stompers weapons and add in smoke launcher and laser desig;
  31. atte_drive removeWeapon "HMG_127_UGV";
  32. atte_drive removeWeapon "GMG_40mm";
  33. atte_drive addWeaponTurret ["SmokeLauncher",[0]];
  34. for [{_i=0}, {_i<(5)}, {_i=_i+1}] do
  35. {
  36. atte_drive addMagazineTurret ["smokelaunchermag",[0]];
  37. };
  38. atte_drive addWeaponTurret ["Laserdesignator_mounted",[0]];
  39. atte_drive addMagazineTurret ["Laserbatteries",[0]];
  40. // create the infantry cargo;
  41. clearMagazineCargoGlobal atte_drive;
  42. atte_drive addMagazineCargoGlobal ["SWOP_DC15ABlasterRifle_Low_Mag", 40];
  43. atte_drive addMagazineCargoGlobal ["SWOP_DC15ABlasterRifle_Full_Mag", 10];
  44. atte_drive addMagazineCargoGlobal ["SWOP_DC15ABlasterRifle_Mag", 20];
  45. atte_drive addMagazineCargoGlobal ["SWOP_DC15_Mag", 10];
  46. clearItemCargoGlobal atte_drive;
  47. atte_drive addItemCargoGlobal ["ACE_elasticBandage", 40];
  48. atte_drive addItemCargoGlobal ["ACE_quikclot", 40];
  49. atte_drive addItemCargoGlobal ["ACE_morphine", 15];
  50. atte_drive addItemCargoGlobal ["ACE_epinephrine", 15];
  51. atte_drive addItemCargoGlobal ["ACE_plasmaIV_500", 40];
  52. atte_drive addItemCargoGlobal ["ACE_packingBandage", 20];
  53. atte_drive addItemCargoGlobal ["SW_SquadShield_Mag", 3];
  54. atte_drive addItemCargoGlobal ["B_UavTerminal", 5];
  55. //spawns a at-te on the dropturrets pos
  56. atte_body = "Republic_ATTE" createVehicle (position _dropTurret);
  57. atte_body attachTo [atte_drive,[0,-0.5,-2]];
  58. // ITT for troop transport;
  59. atte_mens = "O_SWOP_HoverTa_2" createVehicle (position _dropTurret);
  60. // Set the name and attach it to the Stomper;
  61. atte_mens attachTo [ATTE_DRIVE,[0,-4.2,1.9]];
  62. // make it invisible;
  63. (atte_mens) setobjecttextureglobal [0,""];
  64. // make it invulnerable remove the ammo
  65. atte_mens allowDamage false;
  66. atte_mens setvehicleammo 0;
  67. atte_mens lockDriver true;
  68. [atte_mens, 9] call ace_cargo_fnc_setSpace;
  69. // crewITT,purpose allows uav driver to sit there;
  70. atte_mens2 = "O_SWOP_HoverTa_2" createVehicle (position _dropTurret);
  71. // Set the name and attach it to the Stomper;
  72. atte_mens2 attachTo [ATTE_DRIVE,[0,1.9,1.9]];
  73. // make it invisible;
  74. (atte_mens2) setobjecttextureglobal [0,""];
  75. // "make it invulnerable remove the ammo and turn the lights and engine on";
  76. atte_mens2 allowDamage false;
  77. atte_mens2 setvehicleammo 0;
  78. atte_mens2 engineOn true;
  79. atte_mens2 setPilotLight true;
  80. atte_mens2 lockDriver true;
  81. [atte_mens2, -1] call ace_cargo_fnc_setSpace;
  82. // "remote desig,commanders laz dezer";
  83. atte_com = "B_Static_Designator_01_F" createVehicle (position _dropTurret);
  84. // Set the name and attach it to the Stomper;
  85. atte_com attachTo [ATTE_DRIVE,[0,0.9,6.8]];
  86. atte_com allowDamage false;
  87. createVehicleCrew atte_com;
  88. [atte_com, true] remoteExec ["hideObjectglobal", 0];
  89. //turrets that fire the laat cannons 1
  90. atte_gun1 = "B_HMG_01_A_F" createVehicle (position _dropTurret);
  91. ATTE_gun1 attachTo [ATTE_drive,[1.25,3.92,3.55]];
  92. ATTE_gun1 removeWeapon "HMG_static";
  93. ATTE_gun1 addWeaponTurret ["Cannon_LAAT",[0]];
  94. ATTE_gun1 addMagazineTurret ["1000Rnd_Laser_Cannon_LAAT",[0]];
  95. createVehicleCrew ATTE_gun1;
  96. atte_gun1 allowCrewInImmobile true;
  97. ([atte_gun1 ,true] call ace_captives_fnc_setHandcuffed
  98. //turrets that fire the laat cannons 2
  99. atte_gun2 = "B_HMG_01_A_F" createVehicle (position _dropTurret);
  100. ATTE_gun2 attachTo [ATTE_drive,[-1.05,3.92,3.54]];
  101. atte_gun2 removeWeapon "HMG_static";
  102. atte_gun2 addWeaponTurret ["Cannon_LAAT",[0]]; ;
  103. atte_gun2 addMagazineTurret ["1000Rnd_Laser_Cannon_LAAT",[0]];
  104. createVehicleCrew ATTE_gun2;
  105. atte_gun2 allowCrewInImmobile true;
  106. ([atte_gun2 ,true] call ace_captives_fnc_setHandcuffed
  107. //turrets that fire the laat cannons 3
  108. atte_gun3 = "B_HMG_01_A_F" createVehicle (position _dropTurret);
  109. ATTE_gun3 attachTo [ATTE_drive,[-0.75,-7.8,3.733]];
  110. atte_gun3 removeWeapon "HMG_static";
  111. atte_gun3 addWeaponTurret ["Cannon_LAAT",[0]];
  112. atte_gun3 addMagazineTurret ["1000Rnd_Laser_Cannon_LAAT",[0]];
  113. createVehicleCrew ATTE_gun3;
  114. ([atte_gun3 ,true] call ace_captives_fnc_setHandcuffed)
  115. atte_gun3 setdir 180;
  116. atte_gun3 allowCrewInImmobile true;
  117. //Stores the varible names of all objects
  118. atte_body setVariable ["atteObjectsOnIt", [atte_drive,atte_com,atte_gun1,atte_gun2,atte_gun3],true];
  119. //deleted the drop turret
  120. deleteVehicle _dropTurret;