Jump to content
Sign in to follow this  
HunterKiller

C130 - spectre gunship!

Recommended Posts

the AI flys a perfect circle around the target. the only problem wit the script for the AC47 is the targeting method (laser designator).gonna tap into the coc_us and see if i cant figure out how they did the map click targeting and mabe implement that instead for the AC47. and for the AC130 ill just leave it as laser designation

Share this post


Link to post
Share on other sites

you don't need to tap into coc_ua to find that out.

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

_MapClickHandler = {CoCIFMApClicked = true; CoCIFMapPoint = _pos}

if ({count _x > -1} count [CoCMapClickHandlers] > 0) then {CoCMapClickHandlers = CoCMapClickHandlers + [_mapClickHandler]} else {CoCMapClickHandlers = [_MapClickHandler]}

OnMapSingleClick _MapClickHandler

#WaitForClick

_timeout = _time + 60

@(CoCIFMapClicked or (_time > _timeout))

CoCIFMapClicked = false

CoCMapClickHandlers = CoCMapClickHandlers - [_MapClickHandler]

?count CoCMapClickHAndlers > 0:OnMapSingleClick (CoCMapClickHandlers select ((count CoCMapClickHandlers)-1))

?_time > _timeout:hint "SET AIMPOINT TIMEOUT";goto "end"

_Aimpoint = [CoCIFMapPoint select 0, CoCIFMapPoint select 1, 0]

#end

exit

Share this post


Link to post
Share on other sites

very cool. good to see that somebody finally decided to give implementing a spectre a try

kdog

Share this post


Link to post
Share on other sites

I had an idea as how to work it. Have one gunner control all guns. He'd only be able to fire one at a time, and could cycle through all the diffrent guns, just like anyother aircraft with more than one weapon type. Plain and simple.

Share this post


Link to post
Share on other sites

or maybe someone could somehow script the aircraft into different sections, so you could have a gunner in each section (sort of like falkand's mod's HMS Hermes).

Share this post


Link to post
Share on other sites

Okay, here's how it boils down:

Limitations:

A) no turret on airplanes

B) viewdistance insufficient for standing off on the gunship.

Solutions to A:

1) Move turret with airplane

Problem: It'll look like crap in MP, since the turret won't fly with the aircraft.

2) Make AC-130 a helo.

Problem: ugh

solution to A and B:

3)

a) Make the AC-130 entirely AI-driven, with a control system that moves it around, and follows requests for targets (yeah, UA-style)

b) Have all weapon systems pop out the front wtih minimum speed.

c) In firing mode, a fire-control system constantly reads the aircraft's elevation ASL, the speed, and calculates the trajectory to target, throws in a little error, and publishes that information to a series of variables dynamically assigned to the aircraft.

d) A Fired EH that grabs the shells, reads the corresponding variable, and flings them earthward.

The problem:

minigun will probably not work well.

Share this post


Link to post
Share on other sites
solution to A and B:

3)

  a) Make the AC-130 entirely AI-driven, with a control system that moves it around, and follows requests for targets (yeah, UA-style)

  b) Have all weapon systems pop out the front wtih minimum speed.

  c) In firing mode, a fire-control system constantly reads the aircraft's elevation ASL, the speed, and calculates the trajectory to target, throws in a little error, and publishes that information to a series of variables dynamically assigned to the aircraft.

  d) A Fired EH that grabs the shells, reads the corresponding variable, and flings them earthward.

The problem:

minigun will probably not work well.

minigun works perfect.

you are right about one thing thou. the plane DOES have to be AI drivin. but when ur butt is stuck behind a sandbag with 40 AI movin in. .that AI drivin AC130 (or AC47) will be a sight for sore eyes wink_o.gif

and if its not possible. then why do i have an AC47 making advancing VC's misison a living hell? quite a beautiful site to see those tracer rounds fired at high volecity toward the earth.

Share this post


Link to post
Share on other sites

hummmm, seems this lovely script would shut many ppls mouth for a long~~~~ time, or through it is script, but as far as it works, who cares? biggrin_o.gif

Share this post


Link to post
Share on other sites

u cud make a c130 with out using a turret all u need to do is make its "moveable weapons" point in a decent direction for firing

i have started to make a new ac130 with a ac130 3d model thing so it shud look more realisitc than a modyfied c130!

Share this post


Link to post
Share on other sites

lol been bussy with work these days m8 I am just back from work again this was my last day as night work now I am gonna sleep and till next monday I am free from work so we can discuss and speak about further plans today or tommorow cause I am like drunk now really tired I hate working at night tounge_o.gif

Tommorow all day or today late in evening when I wake up I am on msn m8 wink_o.gif

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  

×