Jump to content
Sign in to follow this  
granQ

Making a flag with new shape?

Recommended Posts

Trying to make a flag with new shape (actually mostly one that supports transparent textures), anyone knows how the model.cfg should look like?

Share this post


Link to post
Share on other sites

The flags in the Arma 2 sample models pack (\A2SM_Data_APL\Wheeled\CA\Wheeled\flag_alone.p3d and \A2SM_Data_APL\Wheeled\CA\Wheeled\flag_AUTO.p3d) only seem to have the following properties in the model.cfg:

class cfgModels
{
	class Flag;
	class Flag_alone: Flag
	{
		sections[] = {"latka"};
		vertexSelections[]={"latka"};
	};
	class FLAG_auto: Flag
	{
		sections[] = {"latka"};
		vertexSelections[]={"latka"};
	};
};

The most interesting parts are the named properties inside the .p3d which appear to describe the size of the flag plane and how it is subdivided:

xsize = 0.99
ysize = 0.52
xcount = 6
y count = 5

I assume this is used to create some sort of automated, "random" animation matrix of the vertex points, in the manner of a flag blowing in the wind.

 

Named selections are all in Czech so I conclude the flag simulation is pretty "legacy" stuff from the OFP/Arma 1 era.

 

Latka = "cloth"

Pevne = "firm/fixed" I assume this is because this selection corresponds to the verts on the hoist side, which would be under tension

Volne = "loose"

Zbytek = "the rest"

  • Like 2

Share this post


Link to post
Share on other sites

Trying to make a flag with new shape (actually mostly one that supports transparent textures), anyone knows how the model.cfg should look like?

 

Have you made any progress on this?

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  

×