Jump to content
Ex3B

Adding arrestor wire functionality to ships

Recommended Posts

I'm in the process of turning an Arma 2 LHD port into a "light carrier"/"escort carrier" for CSAT (with modified buzzards using the CSAT textures and testplane sample .p3d), and I've got catapults working easily, but how do I configure arrestor wires? I can't find anything in the USS freedom config about them.

Share this post


Link to post
Share on other sites

See BIS_fnc_aircraftTailhook where the plane is slowed based on distance to..

private _carrierWirePos = _carrier modelToWorld (_carrier selectionPosition "pos_cable_1");

There is also an info dump here.

Share this post


Link to post
Share on other sites

So I looked at the BIS tailhook function, and its a bit concerning:

Quote

private _carrierPart = "Land_Carrier_01_hull_08_1_F";

...

private _objects = _plane nearObjects [_carrierPart, 150]; if (count _objects == 0) exitWith {EXIT_CODE};
private _carrier = _objects param [0, objNull];
private _carrierWirePos = _carrier modelToWorld (_carrier selectionPosition "pos_cable_1");

 

As far as I can tell, if the part isn't "Land_Carrier_01_hull_08_1_F"; then the tailhook fnc will not recognize any memory point called pos_cable_1

 

Is there any way to add a new function?

In the cfg for the black wasp for instance, it has a line "[this] spawn BIS_fnc_AircraftTailhook;";

I'm thinking I could make a modded plane that would for instance have this instead " [this] spawn EX3B_fnc_AircraftTailhook;";"

The question is, how do I add such a function. I found in functions_f_jets\functions\fn_aircrafttailhook.sqf

I could copy that and modify what _carrierPart equals, but then I don't see how it would get from a file named fn_aircrafttailhook.sqf to a function called by BIS_fnc_AircraftTailhook ... so likewise I don't see how a modified fn_aircrafttailhook.sqf would take on a EX3B_fnc_AircraftTailhook

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

×