Jump to content
Sign in to follow this  
Dr. Madlove

Basic helicopter config.cpp

Recommended Posts

Hi

I'm trying to make a gunship addon for OA, and all was going well until I reached the config.cpp.

Now, I understand the basic principal of inheriting properties from existing classes and configuring

the parametres for your own addon, but I can't seem to get it working. I have no idea where I should

be inheriting from, and my config.cpp's usually result in a "bad vehicle type" error. Is there a basic

"helicopter" to inherit from, and what would that config.cpp look like? I'd appreciate an example

config for a standard helicopter with a turret and some missiles, and how to place the gunner and pilot.

I will be eternally gratefull to anyone who can help me.

Thank you

P.S. I only have Operation Arrowhead

Share this post


Link to post
Share on other sites
Hi

I'd appreciate an example

config for a standard helicopter with a turret and some missiles, and how to place the gunner and pilot.

Feeling with you. I´m working on an hot air balloon,got stock with the config.

Using an old OFP-config works,but there are many failures in the proxys and the little bastard shouldn't make loops and barrel rolls like an sportplane!

I have done weapons and units,but vehicles are a complete new and different thing for me.The Biki is absolutly great, but when you don´t know where to start it makes you crazy!

So, if someone can help us out with a very basic example he will be my hero :bounce3:

@Dr. Madlove: I can help you out with this OFP-config, but it will be only good for a quick view ingame.If there is an interest pm me.

Share this post


Link to post
Share on other sites

Thanks for the help, I should be able to figure it out now:)

---------- Post added at 05:40 PM ---------- Previous post was at 03:42 PM ----------

I'm afraid the config-everything link that pufu posted is a bit daunting at the moment, can anyone post a simple config.cpp for helicopter x? I've put all that effort into my model and don't want to abandon it because of the config.cpp!

Any help will be met with flowers and sweetmeats

Thanks

Share this post


Link to post
Share on other sites

I managed to get it working! Here is my basic config.cpp for helicopters:

// Config written by 'konyo'

// 15:52 22/09/

#define true 1

#define false 0

#define private 0

#define protected 1

#define public 2

class CfgPatches

{

class YourAddon

{

units[] = {"YourUnit"};

weapons[] = {};

requiredAddons[] = {};

};

};

class CfgFactionClasses

{

class UNSC

{

displayName = "UNSC";

priority = 0;

side = 1;

};

};

class cfgVehicles

{

class Helicopter;

class YourAddon : Helicopter

{

scope = public;

model = "\YourModel'sDirectory\YourModel.p3d";

displayName = "YourUnit'sDisplayName";

faction = "UNSC";

vehicleClass = "Air";

side = 1;

crew = "SoldierWPilot";

DriverAction = "AH1Z_Gunner";

maxSpeed = 500; // max speed on level road, km/h

nameSound = "ingame 'target sighted' Description of your unit";

armor = 1000;

transportSoldier = 0;

gearRetracting = false;

cost = 500000;

class ViewPilot

{

initFov = 1;

minFov = 0.3;

maxFov = 1.2;

initAngleX = 25;

minAngleX = -65;

maxAngleX = 80;

initAngleY = 0;

minAngleY = -155;

maxAngleY = 155;

};

class Library

{

libTextDesc = "Describe your unit";

};

};

};

You might also notice that the config was written by someone(or some program?) named "konyo". I have no idea who he/she is but I'm very grateful that their config.cpp was available to steal use.

Thanks to all who helped!

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  

×