Lesson 6: Creating your first airplane

The Configfile


As usual, I give a short overview of the configfile. Im not teaching C++, so dont ask me about what classes are or such questions. If you dont have a CLUE on what this config does, you need to hook up with someone who knows if you want your addon in the game.


Part 1 of the configfile

In the first part, we have the usual declarations, the CfgPatches class and where out model is introduced to the game for the first time, and the CfgModel class where we specify which type of addon this will be and what subclasses we need.


Part 2 of the configfile

The last part is the interesting one. Here, teh usual stuff about any vehicles are defined. Many of the values in here should be familiar to you now (model, side, displayname). Note the value "gearRetracting=true" indicating that this plane has retracting gear, like the A10 does. The Cessna havent. Then there is a lot of physics values that can be tweaked for the plane, like brake distance and control surface sensititivy. Note that no weapons are onboard the plane right now (thats for another tutorial, for sure ;) ).

Ok, bored now? Me too, lets compile and get this thing over with!

Back__Home__Next