Home   Help Search Login Register  

Author Topic: MandoAir - Air units support scripts tutorial mission  (Read 11027 times)

0 Members and 2 Guests are viewing this topic.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
MandoAir tutorial mission v1.1

The file contains a mission ready to play and a folder with the mission and the scripts for the editor.

---------------
For OFP 1.96
Nogova map (use original as some buildings IDs are used)
NO ADDONS NEEDED.

This mission and its intro demostrate:

mandosentry2.sqs: New anti-armour device deployed by air units (explosive and chemical).

mandoairstrike.sqs: Accurate air strikes setting an array of targets.

mandoairstrikeauto.sqs: Close Air Support, only the CAS position is needed, the planes select targets by their own.

mandoheliroute.sqs: No range limit for helicopter moves, landing just where you want, no need of helipads anymore.

mandoscramble.sqs: Planes taking off without runaways.

mandoland.sqs (BETA): Planes landing without runaways.

NOTE: From the editor, activate the markers and check the blue ones, they are good tips.

----------------------------------------------------------------

MandoAir2, Close Air Support in detail

The file contains a mission ready to play and a folder with the mission and the scripts for the editor.

MandoAir2 air support scripts second tutorial mission (Close Air Support in detail)
By Mandoble

For OFP 1.96
NO ADDONS NEEDED.


This mission demostrates:
mandocasinit.sqs <- Initializes CAS arrays for each side (*)
mandocasmapset.sqs <- Enable CAS requests by clicking on map with Shift or Alt keys pressed. (**)
mandocasmapcall.sqs <- Processes a click on map for CAS requests
mandocasmapset.sqs <- CAS request (**)
mandocivcas.sqs <- Controls civilian side CAS planes while not assigned to any CAS mission
mandoeastcas.sqs <- Controls east side CAS planes while not assigned to any CAS mission
mandorescas.sqs <- Controls resistance side CAS planes while not assigned to any CAS mission
mandowestcas.sqs <- Controls west side CAS planes while not assigned to any CAS mission

mandoairstrikeauto.sqs <- Takes control of a plane once it is assigned to a CAS mission
mandocasend.sqs <- Executed by mandoairstrikeauto.sqs when CAS mission ends, marks the plane
                   as available for more CAS missions.
bigbombs.sqs <- Spawns free fall bombs, used by mandoairstrikeauto.sqs to perform freefall bombs attacks.

(*): You only need to execute this and then any (or both) of the (**)


NOTE: From the editor, activate the markers and check the blue ones, they are good tips. Check mission's init.sqs, it has all you need to setup to be able to request CAS missons.
« Last Edit: 30 Sep 2006, 11:19:28 by Mandoble »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: MandoAir - Air units support scripts tutorial mission
« Reply #1 on: 09 Jul 2006, 10:39:56 »
mandoland.sqs had a switchCamera "EXTERNAL" that messed up the cameras in the mission. You may comment that line or download the new version. Link above updated.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re: MandoAir - Air units support scripts tutorial mission
« Reply #2 on: 19 Jul 2006, 23:27:35 »
these are very nice, I was wondering if you could help me with a problem im haveing with an Air support type script of my own.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: MandoAir - Air units support scripts tutorial mission
« Reply #3 on: 19 Jul 2006, 23:38:59 »
Which problem?

EDIT: Penguinman, I missed your problem was not related to mandoair scripts but related to a script by your own. Please, PM me with the problem or just post it in the general or advanced script threads.
« Last Edit: 19 Jul 2006, 23:46:54 by Mandoble »

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re: MandoAir - Air units support scripts tutorial mission
« Reply #4 on: 20 Jul 2006, 01:09:08 »
yes I will thank you.


BTW, it seems like mandoheliroute causes the helecopters to crash a little more often then normal

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: MandoAir - Air units support scripts tutorial mission
« Reply #5 on: 20 Jul 2006, 01:18:34 »
Not a single crash so far with mandoheliroute. Do you mean crashing when landing?

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re: MandoAir - Air units support scripts tutorial mission
« Reply #6 on: 20 Jul 2006, 01:55:28 »
yes

when landing it circles counterclockwise sometimes and hits trees and stuff.


Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: MandoAir - Air units support scripts tutorial mission
« Reply #7 on: 20 Jul 2006, 02:10:17 »
At this point there is no way to know wether there are trees or nor nearby, but you may avoid this by setting the flying height well higher than the trees near the landing point. The helicopter will turn clock or counterclockwise to aim to the descending point, if flying height is too low, they may hit tall buindings or trees when turning or when aproaching the descending point. Third argument of mandoheliroute controls flyingheight (unless you set it to -1).

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re: MandoAir - Air units support scripts tutorial mission
« Reply #8 on: 20 Jul 2006, 03:12:57 »
ok, it seems like it goes into a counterclockwise spin going in ever widening circles until it hits somthing but that is rare, only
about 3 out of the 20 or so times i tried it

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: MandoAir - Air units support scripts tutorial mission
« Reply #9 on: 21 Jul 2006, 00:59:47 »
MandoAir2, Close Air Support (CAS) in detail tutorial mission and scripts added, check first post of this topic.

You may set up CAS groups for every side, then you may request support by clicking on map or by radio.

No addons needed.

Offline Thomas G Vorm

  • Members
  • *
Re: MandoAir - Air units support scripts tutorial mission
« Reply #10 on: 19 Oct 2006, 01:38:20 »
Hey Mandoble,
    I just had a thought about mandoairstrike. I'm wrapping up my mission and I have two bombers set up just like yours in your sample missions. They start in air enroute to a hold waypoint and wait for a radio trigger to find my pos. I was just thinking though, if the player takes awhile getting through the mission and doesn't call the bombers for awhile, will they ever run out of fuel? If they do, is there a loop I could insert? It would probably take a novice player about 30-45 minutes to complete the mission.


Python1

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: MandoAir - Air units support scripts tutorial mission
« Reply #11 on: 19 Oct 2006, 01:58:34 »
You may put your planes in the runaway (if they tend to takeoff automatically, set their initial fuel to 0), then when you call them by radio set their fuel to 1, they might have a single waypoint, into its activation field execute the mandoairstrike script.

If you want to have them in air all the time, you may run a simple script with a simple loop this way:
Code: [Select]
;refuel.sqs
;
;Array of planes
_planes = _this select 0
#refuel
"_x setFuel 1" forEach _planes
~20
goto "refuel"

Execute it with the array of planes you want to fly "forever" (notice the double [[]])

Code: [Select]
[[plane1,plane2,plane3]]exec"refuel.sqs"

Offline Thomas G Vorm

  • Members
  • *
Re: MandoAir - Air units support scripts tutorial mission
« Reply #12 on: 19 Oct 2006, 02:06:28 »
Perfect. Thanks alot. :good:

Python1

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: MandoAir - Air units support scripts tutorial mission
« Reply #13 on: 19 Oct 2006, 02:11:35 »
Of course, you can use also mandoscramble.sqs to start everything  ;)

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: MandoAir - Air units support scripts tutorial mission
« Reply #14 on: 27 Jan 2008, 19:29:19 »
Mandoland.sqs v1.0

Code: [Select]
;Mandoland.sqs v1.0
;By Mandoble
;
;
;
;Forces any plane to land
;AI doesn't need runaways anymore ;)
;
;Arguments:
;plane to land
;aproximate position to land
;plane heading when landing
;parking plane after landing true/false
;parking position
;
; [plane1, getMarkerPos "mk_land", 180, false, [0,0,0]] exec "mandoland.sqs"