Jump to content
Sign in to follow this  
Adacas

No death animation

Recommended Posts

I'm porting Arma 2 Yamaha TT650 Motorcycle. So far I got it ingame it and it works. Driver and cargo animations works perfectly, but when killed the animation stays the same. Here is my code. Maybe I did mistake somewhere?

class CfgMovesBasic
{
	class DefaultDie;	
	class ManActions
	{
		TT650_Cargo = "TT650_Cargo";
		TT650_Driver = "TT650_Driver";
	};
};

class CfgMovesMaleSdr : CfgMovesBasic
{

	class States
	{
		class Crew;
		class KIA_TT650_Driver: DefaultDie
		{
			actions = "DeadActions";
			file = "laf_vehicles\Yamaha_TT650\ANIM\KIA_TT650_Driver.rtm";
			speed = 0.5;
			looped = "false";
			terminal = 1;
			connectTo[] = {"Unconscious",0.1};
			soundEnabled=0;
		};
		class TT650_Driver: Crew
		{
			file = "laf_vehicles\Yamaha_TT650\ANIM\TT650_Driver.rtm";
			interpolateTo[]={"KIA_TT650_Driver",1};
			leftHandIKCurve[] = {1};
			rightHandIKCurve[] = {1};
		};	
		class KIA_TT650_Cargo: KIA_TT650_Driver
		{
			file= "laf_vehicles\Yamaha_TT650\ANIM\KIA_TT650_Cargo.rtm";
		};
		class TT650_Cargo: Crew
		{
			file= "laf_vehicles\Yamaha_TT650\ANIM\TT650_Cargo.rtm";
			interpolateTo[]={"KIA_TT650_Cargo",0.1};
		};		
	};
};

Share this post


Link to post
Share on other sites

Did the Arma 2 version even have a proper KIA animation for the driver? My memory of the bikes in Arma 2 are fuzzy but I would have thought that motorcycles used

ejectDeadCargo = true;
ejectDeadDriver = true;

ejectDead...

 

So that the unit "fell off" the bike when they were dead, rather than remaining inside the vehicle in a static death pose like someone buckled in to a car seat.

  • Like 1

Share this post


Link to post
Share on other sites

Did the Arma 2 version even have a proper KIA animation for the driver? My memory of the bikes in Arma 2 are fuzzy but I would have thought that motorcycles used

ejectDeadCargo = true;
ejectDeadDriver = true;

ejectDead...

 

So that the unit "fell off" the bike when they were dead, rather than remaining inside the vehicle in a static death pose like someone buckled in to a car seat.

Thanks man works great now. And in A2 the unit indeed gets ejected when dead

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  

×