Home   Help Search Login Register  

Author Topic: Clickable Cluster Bomb strike  (Read 481 times)

0 Members and 1 Guest are viewing this topic.

armybikos

  • Guest
Clickable Cluster Bomb strike
« on: 02 Jul 2003, 17:43:59 »
I have been using a script modified by LCD for all my close air support needs, I modified this script a little and then decide it would be cool to have a CBU strike, I changed the aircraft to a (RAD) FA-18 and set the bomb to a CBU87, but the bomb continues to fall like a LGB and no cluster bombs explode, what am I doing wrong, everything else seems to work? If anyone can figure out if it is possible to change the weapon this script could be used for a simulated AC-130 Spectre Gunship run, all that you would have to do would be to change the amount fired. Well if you can help let me know.

Here is my CBU script, I will attach the ones for the naplam and LGB, and a demo mission


onMapSingleClick {}
1 setRadioMsg "Null"
2 setRadioMsg "Null"
3 setRadioMsg "Null"

_pos = _this select 0
[_pos, "Requesting CAS at grid ", ". Over.", ["SideChat", player]] exec "gridcoordinates_pipe.sqs"
~5
"target" setMarkerPos _pos
"target" setMarkerType "destroy"

strikePlane = "Rad_Hornet_CBU87G" camCreate (getMarkerPos "spawn")
strikePlane setPos [(getPos strikePlane select 0),(getPos strikePlane select 1),(getPos strikePlane select 2)+1000]
strikePlane setDir 180

strikePilot assignAsDriver strikePlane
strikePilot moveInDriver strikePlane
strikePilot doMove _pos
strikePilot sideChat "Coming in hot, keep your heads down"

@ unitReady strikePilot
strikePilot sideChat "Starting Run"

_num = 4
_i = 0

#loop
_bomb = "Rad_CBU87" camCreate [(getPos strikePlane select 0)+((random 10)-5),(getPos strikePlane select 1)+((random 10)-5),(getPos strikePlane select 2)-3]
_bomb setDir (getDir strikePlane)
_bomb setVelocity [(velocity strikePlane select 0)*0.2,(velocity strikePlane select 1)*0.2,(velocity strikePlane select 2)*0.2]
_i = _i + 1
~0.3
? _i < _num : goto "loop"

strikePilot doMove (getMarkerPos "spawn")
strikePilot sideChat "Pass Complete"

"target" setMarkerType "empty"

@ unitReady strikePilot
deleteVehicle strikePlane
strikePilot setVelocity [0,0,0]
strikePilot setPos (getMarkerPos "safe")
strikePilot sideChat "In orbit again above target area"

1 setRadioMsg "Air Strike MK83 1000lb"
2 setRadioMsg "Air Strike Napalm"
3 setRadioMsg "CBU Strike"
exit

Viriato

  • Guest
Re:Clickable Cluster Bomb strike
« Reply #1 on: 03 Jul 2003, 10:26:02 »
The Rad cbu has to be launched from the f-18 (fired) to activate the eventhandler that activates the disperssion script.

I have already managed to do what you are triying to do, the script is released at the editors depot, unther the rapeeling, aircreft and such.

It is named "simplified airstrike script" by Viriato ( ;-) )

On it you will find a modified version of toad and Lcd script, wich work great and had a cluster bomb version also disponible.

armybikos

  • Guest
Re:Clickable Cluster Bomb strike
« Reply #2 on: 03 Jul 2003, 17:47:16 »
only problem is that script is not a click and shoot, you have to have a marker out for it to work.

Viriato

  • Guest
Re:Clickable Cluster Bomb strike
« Reply #3 on: 03 Jul 2003, 17:59:56 »
Error, you need the marker with the version of Todlife and LCD, with my version, youÂ'll only need the trigger that launches the script.

Test this script and youÂ'll realizes what i am saying.
Just click and hit!