Jump to content
Sign in to follow this  
g-man-853

C-130 Carpet bomb script

Recommended Posts

Hi all,

I have modified Xeno's Co30 Domination west. most of the scripts that I've used in there are working well.One of the scripts I am using is the C-130J Carpet Bomber by Nicolas.here

There are a few things I would like to fix on the mission.

1.The fact that the pilot of the C-130j does not have his kills registered or have points deducted for TK's.

2.The action to drop the bombs is in the action menu, I would like to create a key bind instead.

3. The bombs are endless you can keep bombing to your shot down.I would like to limit the amount of bombs so you would have to rearm after a couple of runs.

I am using it with a trigger On Act: C_130 addaction ["Bombs away!", "carpet.sqf",[],1,false,true,"","_this == driver _target"];

I am not using it in the initialization of the C-130 as I am using the

Simple Vehicle Respawn by Tophe with the Put car in C-130 by norrin which looks like this: res= [this] execVM "c130cargo.sqf";veh = [this, 60, 600, 0, TRUE, FALSE,"res= [this] execVM ""c130cargo.sqf"""] execVM "vehicle.sqf";

This is the C-130J Carpet Bomber script.

// Author: Nicolas
// version: 1.0


//variables
_bomb = "RHIB";
_bomb2 = "RHIB";
_plane = _this select 0;
_i= 0;
player globalChat format["%1","Bombs away!"];


//spawning bombs
for [{_i=1}, {_i<6}, {_i=_i+1}] do  //change 6 for whatever number of bombs you want the c-130 to be able to drop (here its  6x2 = 12 bombs)
{
_bomb = "Bo_GBU12_LGB" createVehicle [1000, 1000, 1000];
_bomb attachTo [_plane, [4, 0, -5]]; //spawn under left wing
sleep 0.01;  //allow the bomb to be attached before detaching it
detach _bomb;
sleep 0.15;


_bomb2 = "Bo_GBU12_LGB" createVehicle [1000, 1000, 1000];
_bomb2 attachTo [_plane, [-4, 0, -5]]; //spawn under right wing
sleep 0.01;  //allow the bomb to be attached before detaching it
detach _bomb2;
sleep 0.15;
};

//destroying variables
_bomb = nil;
_bomb2 = nil;
_plane = nil;
_i = nil;

Please could help me out with this.

Thanks

Share this post


Link to post
Share on other sites

Hi,

I am the one who made this script. It wasn't really complete, but someone asked for it, so I released it.

I'm now working on version 1.1.

-It will include a limited number of ammo and an easy way to customize the script according to your mission needs.

but:

-I don't know how to make the kill registered

-I don't know how to bind a key instead of using the action menu (I would like to know too)

version 1.1 is pretty much ready, but I haven't done extensive testing to make sure it's bug free.

Share this post


Link to post
Share on other sites

Great look forward to seeing it:). If I find out how to make the kill register or bind the key I will post the solution here.

Share this post


Link to post
Share on other sites

Am i to guess there was never a 1.1 uploaded to the forum? Anybody know if it was? ... and yes i have done lots of time with the search function.

Never yet got any of these scripts on bombing to work. I'b betting it's my application of them thats to blame.

What i'm trying to do is just bomb a town rather than bomb units, looking at using the IED idea but i would rather have the aircraft actully bombing the town.

Share this post


Link to post
Share on other sites

The script does not reload after the plane has been destroyd.

I use simple re-spawn script aswell.

I am a edit noob so there is probably an easy fix for this. any1 ?

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  

×