Jump to content
Sign in to follow this  
sussmori

Turning off static mg lights

Recommended Posts

Is it possible to make an MG addon without lights at night ?

A o2 modeller told me there is nothing in the p3d with lights in the M2 static MG, so I assume it's removed via the addon code.

Anyone know how?

Share this post


Link to post
Share on other sites

You can do it via the cpp, check the code I did for the DSHK and Mortars in the Nam Pack 2. (in the sebnam_wp.pbo)

SelectThis

Share this post


Link to post
Share on other sites

Thanks man. I take it it's the reflector class:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class Reflectors

{

class Left

{

color[] =3D {0.0, 0.0, 0.0, 0.0};

ambient[] =3D {0.0, 0.0, 0.0, 0.0};

position =3D "L svetlo";

direction =3D "konec L svetla";

hitpoint =3D "L svetlo";

selection =3D "L svetlo";

size =3D 00.0;

brightness =3D 0.00;

};

class Right

{

color[] =3D {0.0, 0.0, 0.0, 0.0};

ambient[] =3D {0.0, 0.0, 0.0, 0.0};

position =3D "P svetlo";

direction =3D "konec P svetla";

hitpoint =3D "P svetlo";

selection =3D "P svetlo";

size =3D 0.0;

brightness =3D 0.00;

};

};<span id='postcolor'>

Now we can have MG42 and 30. cal without a huge frikin light coming from it smile.gif

Share this post


Link to post
Share on other sites
Guest BratZ

That how you do it? My plane doesnt fire from the one kulomet, its supposed to look like it fires from the wings, I have yet to figure out how to get rid of the muzzle flash so I can make my own.

I tried:

flash="";

flashSize=0;

In the config of my mgun but that didnt do it, I dont see how the reflector class will?

edit: ignore my post ,you guys are talking about headlights,lol

Share this post


Link to post
Share on other sites

Better still:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class Reflectors {};

This will even remove the "lights on/off" option in the menu.

Share this post


Link to post
Share on other sites

this thread is more than one year old....

u need to read forum rules

Share this post


Link to post
Share on other sites
Quote[/b] ]§5)Do not dig up old threads

Don't reply to old threads unless you have something significant to add. Never reply in threads that have been inactive for more then 4 months.

After looking through the forums, I stumbled accross this one. 5 minutes earlier, I discovered how to remove the "lights on/off" option.

In my opinion, my remark is significant to the topic at hand, and can benefit others looking for a solution using the query "night lights static".

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  

×