Lesson 7: Creating your first ARMED airplane

Setting up the machinegun


First up is the common machinegun that most warplanes have. We will make some sort of gunbarrel pointing out of the plane near the nose (to make this tut simple, im not gonna make an accurate machinegun model in this tut) pointing strait forward. The sad limit here is that an airplane cant have a gunturret like you can have on a helicopter (like hte UH60) or my gunboat from lesson 5. You cant like a tailgunner like on a german ww2 Stuka plane or something like that. Guns on airplanes can only fire strait forward in a fixed position.

NB: This lack of turret on planes has been a limit for very long time. But after patch 1.90, there was some features added that indicated that this could now be done. But since its very new info and still onthe experimental level for the time being, im gonna assume that moveable turrets on planes are not possible.

Argh, too much text and info to remember there. Lets go, go go go!:

Ok, the totally ultra-high-detailed (a little bit of irony there) machinegun model is in place. But as for all guns, we need a muzzleflash. You should be able to do this one in your sleep if you have dont tut 3. Its simple, just 3 flat structures (two planes, one circle), all doublesided (hit F6 twice when creating the faces) with a muzzleflash texture on it. But to save you people who avoided the dauting-looking tutorial 3, i have made the muzzleflash for you. Its in a seperate file in the projectfolder and we need it on the plane. Good time to learn what the "merge" function does, eh?

Hmm, nothing really new yet, is it? Not if you have done lesson 3 or lesson 5. But it will come along eventually. Now lets head for Memory LOD.

Tada, the machinegun is ready! WHAT you might say? Bhaw, humburg, what about all the other stuff we made on eariler gun models, all the crazy stuff about "osaVeze", "Konec Hlavne", and all that crazy czech gibberish? Well, remember the thing about us not being able to do movable turrets on planes? Yep, with a fixed gun position all the selection stuff before is not needed. We need just a muzzleflash in model lod and a singel vertex in mem to indicate where we want the bullet to start from. It will always go in the plane direction.

The only usable selection we have left might be the nabojnicestart&end (indicate where the empty cartridges are shot ouf from), but i dont want out plane to shoot them out of the body and maybe risk getting one in the propeller or something like that.

Our plane with the new machinegun and flash

Ok the gun is done. Except it needs a proper configfile to work. As usual, I do configfile editing at the very end so you must wait to the end of tut before compiling and testing your machinegun plane. Sorry. Move on then:

Back__Home__Next