where is the lua file for the default smoke? - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 01-13-2019, 03:12 PM   #1
happy cavin
Member
 
Join Date: Apr 2014
Location: China
Posts: 163
Default where is the lua file for the default smoke?

where is the lua file for the default smoke for demonstrtion in the dcsw?

Thank you.
happy cavin is offline   Reply With Quote
Old 01-14-2019, 01:28 AM   #2
Sirius
Member
 
Join Date: Mar 2017
Location: North Carolina, USA
Posts: 205
Default

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:

Code:
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.

Code:
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!
Sirius is offline   Reply With Quote
Old 01-14-2019, 11:43 PM   #3
happy cavin
Member
 
Join Date: Apr 2014
Location: China
Posts: 163
Default

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}
happy cavin is offline   Reply With Quote
Old 01-15-2019, 10:18 AM   #4
Sirius
Member
 
Join Date: Mar 2017
Location: North Carolina, USA
Posts: 205
Default

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.
Sirius is offline   Reply With Quote
Old 01-18-2019, 03:31 AM   #5
happy cavin
Member
 
Join Date: Apr 2014
Location: China
Posts: 163
Default

thank you ,young man.
happy cavin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:26 AM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.