Jump to content

where is the lua file for the default smoke?


happy cavin

Recommended Posts

There are already ID tags for you to add smoke in your pylon code. There are 6 types for each version of smoke. Here is the list from db_weapons_data.lua:

 

R-73's:
{D3F65166-1AB8-490f-AF2F-2FB6E22568B1}
{D3F65166-1AB8-490f-AF2F-2FB6E22568B2}
{D3F65166-1AB8-490f-AF2F-2FB6E22568B3}
{D3F65166-1AB8-490f-AF2F-2FB6E22568B4}
{D3F65166-1AB8-490f-AF2F-2FB6E22568B5}
{D3F65166-1AB8-490f-AF2F-2FB6E22568B6}

Smokewinder's:
{A4BCC903-06C8-47bb-9937-A30FEDB4E741}
{A4BCC903-06C8-47bb-9937-A30FEDB4E742}
{A4BCC903-06C8-47bb-9937-A30FEDB4E743}
{A4BCC903-06C8-47bb-9937-A30FEDB4E744}
{A4BCC903-06C8-47bb-9937-A30FEDB4E745}
{A4BCC903-06C8-47bb-9937-A30FEDB4E746}

Invisible: 
{INV-SMOKE-RED}
{INV-SMOKE-GREEN}
{INV-SMOKE-BLUE}
{INV-SMOKE-WHITE}
{INV-SMOKE-YELLOW}
{INV-SMOKE-ORANGE}

 

Additionally, you are also able to create your own smoke if you prefer. This is usually done in the manner of putting it in a separate Weapons.lua file. (as far as I have seen in mods/modules, however you are able to do it however you wish)

 

P.S., replace the variables in the code with the corresponding values as needed.

 

declare_loadout(
{
	category		= CAT_PODS,
	CLSID			= "{NAME-CLSID-HERE-WHITE}",
	Picture	= "white_color.png", -- not sure if needed
	PictureBlendColor={r  = 255,g  = 255,b  = 255,a = 1},		
	displayName		= _("White Smoke"),
	
	attribute	= {4,	15,	50,	WSTYPE_PLACEHOLDER},			
	
               Smoke  = {
		alpha = 180,
		r  = 255,
		g  = 255,
		b  = 255,
		dx = -1.455,
		dy = -0.062
	},
	
	shape_table_data = 
	{
		{
			name 	= "MODEL_NAME",
			file	= "MODEL_NAME";
			life	= 1;
			fire	= { 0, 1};
			username	= "USERNAME_HERE";
			index	= WSTYPE_PLACEHOLDER;
		},
	},
	Weight			= WEIGHT,
	Count 			= 1,
	Cx_pil			= 0.001,
	Elements		={{
							ShapeName	=	"MODEL_NAME", 
							Position	=	{0,0}, 
							DrawArgs	=	{}
						}}
}
)

 

Hope that helps!

Link to comment
Share on other sites

Thanks ,I know that.but that is not i am looking for.what i am looking for is where the codes are that for the default ones:

R-73's:

{D3F65166-1AB8-490f-AF2F-2FB6E22568B1}

{D3F65166-1AB8-490f-AF2F-2FB6E22568B2}

{D3F65166-1AB8-490f-AF2F-2FB6E22568B3}

{D3F65166-1AB8-490f-AF2F-2FB6E22568B4}

{D3F65166-1AB8-490f-AF2F-2FB6E22568B5}

{D3F65166-1AB8-490f-AF2F-2FB6E22568B6}

 

Smokewinder's:

{A4BCC903-06C8-47bb-9937-A30FEDB4E741}

{A4BCC903-06C8-47bb-9937-A30FEDB4E742}

{A4BCC903-06C8-47bb-9937-A30FEDB4E743}

{A4BCC903-06C8-47bb-9937-A30FEDB4E744}

{A4BCC903-06C8-47bb-9937-A30FEDB4E745}

{A4BCC903-06C8-47bb-9937-A30FEDB4E746}

Link to comment
Share on other sites

To my understanding, there is no "default" and you have to use what is given by the ones in db_weapons_data. The 2 lists you have both mentioned are physical means of showing the smoke. {INV-xxx} is for invisible smoke pylons as stated, if you have it in a spot ie. the engine.

Link to comment
Share on other sites

  • 1 year later...

Hi Guys,

I am experimenting with adding smoke to the F-86, but not from a wing pylon. I have manged to move the smoke pod to the exhaust pipe of the jet but it just looks a bit daft having a smoke pod laid in the tail pipe. Is there a way to remove the 'graphic' for the pod but still have it active?

Sinclair ZX81 - 1K RAM - 16K Wobbly Ram Pack - Tape Drive - Kempston Joystick :helpsmilie:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...