Jump to content
Sign in to follow this  
Tanelorn

A warning for rockets and vertex lighting

Recommended Posts

Ok folks, much to my dismay I discovered this bit of O2 trivia:

Any face on a rocket model with vertices set to "shining" will disappear when a rocket's fuel runs out.

Now you may be thinking... "COOL! Now I know how to do rocket flares and all that neeto stuff!"

Well you're right, that's how to do it. However, theres a serious downside...

WHat if you want your entire rocket to be shining? Consider an aircraft that fires energy bolts as rockets so they will alternate from left to right when fired. Actually, the only way to fire anything but a bullet from an aircraft is to use rockets or missiles. SHells don't work.

So, if you do like I have done, and make your rockets all shining (so they glow in the dark without the lens flare), be prepared for your rockets to disappear on you.

Share this post


Link to post
Share on other sites

YAAAAAHOOOO!

I discovered the perfect workaround! Works like a charm!

In your rocket you want to glow, add a proxy object. THat proxy will point to another model of your rocket that is all shining. Make sure both rockets are set to shining so one disappears (otherwise you won't see the shining through the non-shining).

Now in the config file, add this:

class CfgNonAIVehicles

{

    class ProxyWeapon {};

    class Proxymyproxyname: ProxyWeapon {model = "\myaddon\myproxymodel"; simulation = "alwaysshow";}

};

YOu will use your own names of course.

Wala! YOur rocket model will disappear when it runs out of fuel, but the proxy that tags along with it remains aglow.

ALL HAIL GLOW-IN-THE-DARK ROCKETS!

Share this post


Link to post
Share on other sites

Cool! Now if i only knew how to make a rocket in the first place smile.gif

Any chance of someone sharing that bit of knowledge..?

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  

×