Jump to content
Sign in to follow this  
BGF Krätzer

Steering wheels?

Recommended Posts

How i have to code them and where i can find a cfg of an finally coded Truck?

//0x753d947a
/*SkeletonClasses
zil131
transport
EndSkeletonClasses*/

/*ModelClasses
zil131
EndModelClasses*/

/*AnimationClasses
lwheel3
lwheel2
ldrive
rwheel3
rwheel2
rdrive
EndAnimationClasses*/

class CfgSkeletons
{
//skelRefClass
class transport;

//skelClass1
class zil131:transport
{

	isDiscrete=1;
	skeletonInherit = "";
	skeletonBones[]=
	{

		"Glass","",
		"l_wheel1","",
		"l_wheel2","",
		"l_wheel3","",
		"nvatrk_zil131_LOD0","",
		"r_wheel1","",
		"r_wheel2","",
		"r_wheel3","",
		"steer","",
	};
};
//skelClass2

};
class CfgModels
{
class Default
{
	sectionsInherit = "";
	sections[] = {};
};

//modelRefClass

//modelClass1
class zil131:Default
{

	sectionsInherit = "";
	sections[] = 
	{
		//section
	};
	skeletonName = "zil131";
	class Animations
	{
		class rdrive
		{
			type = "rotationX";
			source = "drivingWheel";
			memory = "true";
			angle0 = "rad -360";
			angle1 = "rad 360";
			axis = "r_wheel1_axis";
			selection = "r_wheel1";
		};
		class rwheel2
		{
			type = "rotationX";
			source = "wheelR";
			memory = "true";
			angle0 = "rad -360";
			angle1 = "rad 360";
			axis = "r_wheel2_axis";
			selection = "r_wheel2";
		};
		class rwheel3
		{
			type = "rotationX";
			source = "wheelR";
			memory = "true";
			angle0 = "rad -360";
			angle1 = "rad 360";
			axis = "r_wheel3_axis";
			selection = "r_wheel3";
		};
		class ldrive
		{
			type = "rotationX";
			source = "drivingWheel";
			memory = "true";
			angle0 = "rad -360";
			angle1 = "rad 360";
			axis = "l_wheel1_axis";
			selection = "l_wheel1";
		};
		class lwheel2
		{
			type = "rotationX";
			source = "wheelR";
			memory = "true";
			angle0 = "rad -360";
			angle1 = "rad 360";
			axis = "l_wheel2_axis";
			selection = "l_wheel2";
		};
		class lwheel3
		{
			type = "rotationX";
			source = "wheelR";
			memory = "true";
			angle0 = "rad -360";
			angle1 = "rad 360";
			axis = "l_wheel3_axis";
			selection = "l_wheel3";
		};
		//animszil131
	};
};
//modelClass2

};

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  

×