Jump to content
riten

[Solved] Vehicle player dead animation

Recommended Posts

Hello,

I'm trying to make animation for dead driver, but it doesn't works. I mean dead animation works when I use switchmove, but it doesn't switch when driver dies.. Here is my config:

class CfgMovesBasic {
	
	class DefaultDie;
	class manActions {
		JPdriver= "JPdriver";
		KIA_JPdriver="KIA_JPdriver";
	};
	
};

class CfgMovesMaleSdr: CfgMovesBasic
{
	skeletonName = "OFP2_ManSkeleton";
	gestures = "CfgGesturesMale";
	class states
	{
		class crew;
		class JPdriver: crew
		{
			file = "\Jetpack\data\anims\JPdriver.rtm";
			interpolateTo[] = {"KIA_JPdriver",1};
			die= "KIA_JPdriver";
		};
		
		class KIA_JPdriver: DefaultDie
		{			
			file="\Jetpack\data\anims\KIA_JPdriver.rtm";
			actions = "DeadActions";
			speed = 0.5;
			looped = "false";
			terminal = "true";
		};
		

	};
};

I know there is ejectdead, but I want driver to stay in vehicle. Also tried with die="KIA_JPdriver" and  die = "DeadState", but both failed. Is it something with my animation that should be added or just Arma 3 fault? I've idea how to fix it with simple script, but I'd like to try something "clean" first if it is possible :(

Share this post


Link to post
Share on other sites

hm. i just took a quick glance at the vanilla configs and the only obvious difference is you missing hte following in the death anim class:

connectTo[] = {"Unconscious",0.1};
  • Like 1

Share this post


Link to post
Share on other sites

@bad benson

 

I've just found solution aswell, checked arma configs and it worked! That is how it looks now:

class CfgMovesBasic {
	
	class DefaultDie;
	class manActions {
		JPdriver= "JPdriver";
		KIA_JPdriver="KIA_JPdriver";
	};
	
};

class CfgMovesMaleSdr: CfgMovesBasic
{
	skeletonName = "OFP2_ManSkeleton";
	gestures = "CfgGesturesMale";
	class states
	{
		class crew;
		class JPdriver: crew
		{
			file = "\Jetpack\data\anims\JPdriver.rtm";
			interpolateTo[] = {"KIA_JPdriver",1};
			ConnectTo[]={"KIA_JPdriver", 1};
		};
		
		class KIA_JPdriver: DefaultDie
		{			
			file="\Jetpack\data\anims\KIA_JPdriver.rtm";
			actions = "DeadActions";
			terminal = "true";
			speed = 1e+010;
			ragdoll = 1;
			ConnectTo[] = {"Unconscious",1.0};
			InterpolateTo[] = {};
		};
		

	};
};
  • Like 1

Share this post


Link to post
Share on other sites

Edit: nevermind, I see you solved it with BB's suggestion, cross-posted

 

Maybe add

connectTo[] = {"DeadState", 0.1};
  • Like 1

Share this post


Link to post
Share on other sites

@uk_apollo

 

Tried it before, looks like it doesn't works. Only connectTo[] = {"Unconscious",0.1}; from DefaultDie configs works:)

 

@bad benson

?interpolation=lanczos-none&output-forma

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

×