Lesson 3: Creating your first Weapon

The muzzle flash


Well, ok so we werent all done with the modelling stuff. I guess I lied a bit there. But this is very simple.

If you dont already know, the flash that occurs when firing most guns in OFP is no fancy special lightingeffect or anything. Nope, its just a simple model with transparent smoke-textures on it that occur the split-second the weapon is fired. Disappointed? Dont be, because its easy to make and looks good enough anyway.

Have a look in your stalker-folder and check out the two textures flash_side.paa and flash_front.paa.

Lets get this over with quickly, then:

We need one other muzzle flash, a circle for the flash_front.paa so that the flash is visible when looking strait at the firing gun (aka getting shot at).

Now we need to texture it. Thats easy, aint it? You`ve done it many times before. Just select the circle using F2, hit "A", load the flash_front.paa, draw around circle in side view then apply it using B-key. Routine, isnt it?. Soon second-nature, I hope. Well, anyway, this is the final result:

Ok, almost done with our model now..hang in there. We need two simple named selections in our primary LOD, "0.000". OFP needs to know what parts are the gun model and what parts are the muzzle flash. So select all the muzzle flash parts (3 structures, two planes and a circle), and name them "zasleh" ("flash") in the named selection window. Then you need to select all the other parts; muzzle, main gun body, two scope holders and scope, trigger, hmm..anything else?..no. Name that selection "zbran" (weapon).

And if everything is done correctly, you are now finnished with the model! Great job. Look trought the previous steps and make sure everything is right. And check that the texture paths are right (we learned how in lesson 1). Ok, done?. Configfile next, then.

Back__Home__Next