Jump to content
Sign in to follow this  
hardrock

Global ils for ofp

Recommended Posts

I was thinking of improving a new global ILS technology:

it's based on 3 arrays:

- ILSOBJ

carries the carrier object, if it's a base, it's objNull

- ILSDIR

carries the relative direction of the runway to the carrier

if it's a base it carries the absolute direction of the runway

- ILSPOS

if it's a carrier, that contains the relative position of a point

on the beginning of the runway

if it's a base, it contains the absolute position of this point

you can see that point on the graphics below

the first 3 (6 if you take both directions 360 and 180) entries in those 3 arrays are predefined, the islands EVERON,MALDEN and NOGOVA

if now somebody wants to add a base or a carrier addon, he just hast to put this in init.sqs:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ILSOBJ=ILSOBJ+[mycarrier]

ILSDIR=ILSDIR+[mydirection]

ILSPOS=ILSPOS+[[myxpos],[myypos],[myzpos]]

but because of this global method without TAGs it had to be improved together with other addon makers, so what do you think of it?

plane addons now had to have that in their init:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?(count ILSOBJ)>3 : add actionmenuentries for carriers and airbases

These actionmenu entries call another script (ILS.sqs):

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_plane=_this select 0

_carrier=_this select 1

_dir=_this select 2

_pos=_this select 3

?(_carrier==objNull) : goto "startILS"

Here some code to slow down and stop the carrier

#startILS

Here had to be the (individual) code that activates the ILS for the plane

?(Plane is landed) : speedup Carrier

so please addon makers give your comments to this idea

carrierils.gif

Share this post


Link to post
Share on other sites

I don't think worrying about how to land a plane on a carrier right now is a priority........

........you gotta figure out how to make a good carrier in the first place dammit crazy_o.gif

Share this post


Link to post
Share on other sites
I don't think worrying about how to land a plane on a carrier right now is a priority........

........you gotta figure out how to make a good carrier in the first place dammit crazy_o.gif

Don't be so harsh, I think that an ILS system could be of great utility.

edit: could you create a demo mission?

Share this post


Link to post
Share on other sites

@one: I know there's still no good carrier addon, but if anyone makes a plane addon he could use this feature to make it compatible with all upcoming carrier and plane addons

maybe you saw that this system is also for islands editors who could add there static non-carrier runway

I'll look to make a demo-mission

Share this post


Link to post
Share on other sites

someone already made a basic sort of ILS, "take off tim" or something (its on OFPEC) but it worked in SP only

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×