Jump to content
Sign in to follow this  
Richards.D

Bizarre vehicle axis / view Issue

Recommended Posts

Hello everyone..

I built a lovely police car this week and it worked! The light bar and all those fun items work fine, which was a huge relief. Unfortunately.. when I sent the model to my friends to play with they encountered a serious set of errors. These errors are not always current, and seem to come and go. When you enter the vehicle, your character disappears. Then, when you enter first person your view gets locked to the roof of the vehicle. Finally, the tires no longer spin around their proper axes, instead they fly around the car along with the tail lights. I shall include a reference diagram to illustrate something I really cannot explain in text form. Below I will also post the Model.CFG and Config.CPP. I would just screenshot it, but unfortunately I cannot reproduce the error myself as it seems to be by chance. As far as I can tell it is A problem with the Model.CFG, but I do not know enough about what could be causing it to attempt a solution.

EDIT: Post too long, will post MODEL.CFG in a reply.

Richards

crudeissue.png

#include "basicdefines_A3.hpp"
class DefaultEventhandlers;	// External class reference

class CfgVehicleClasses {
class DARPol_Vehicles {
	displayName = "DAR ILPD Vehicles";
};
};

class CfgSounds {
sounds[] = {"Siren", "Yelp"};

class Siren {
	name = "Siren";
	sound[] = {"DAR_ImpalaPI\Sound\siren.ogg", 1, 1};
	titles[] = {};
};

class Yelp {
	name = "Yelp";
	sound[] = {"DAR_ImpalaPI\Sound\yelp.ogg", 1, 1};
	titles[] = {};
};	
class DAR_siren_a {
	sound[] = {"\DAR_ImpalaPI\Sound\siren_a.wav", 0.95, 1};
	name = "Takedown";
	titles[] = {};
};

class DAR_siren_b {
	sound[] = {"DAR_ImpalaPI\Sound\siren_b.wav", 0.95, 1};
	name = "Priority";
	titles[] = {};
};
};

class CfgPatches {
class DAR_Impala_F {
	units[] = {"DAR_ImpalaPol"};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Soft_F"};
};
};

class cfgWeapons {
class SportCarHorn;	// External class reference
class DAR_siren_a:SportCarHorn{
	displayname="Takedown";
	reloadTime=1.4;
	scope=public;
	drySound[] = {"DAR_ImpalaPI\Sound\siren_a.wav",1,1};
};

class DAR_siren_b:SportCarHorn{
	displayname="Priority";
	reloadTime=4.0;
	drySound[] = {"DAR_ImpalaPI\Sound\siren_b.wav",1,1};
	scope=public;
};
};

class CfgVehicles {
class LandVehicle;	// External class reference

class Car : LandVehicle {
	class HitPoints;	// External class reference
	class NewTurret;	// External class reference
};

class Car_F : Car 
{

	class HitPoints {
		class HitLFWheel;	// External class reference
		class HitLF2Wheel;	// External class reference
		class HitRFWheel;	// External class reference
		class HitRF2Wheel;	// External class reference
		class HitBody;	// External class reference

		class HitGlass1;
		class HitGlass2;
		class HitGlass3;
		class HitGlass4;	// External class reference
	};
	class EventHandlers;	// External class reference
	class AnimationSources;	// External class reference
};

class DAR_ImpalaPolBase : Car_F {
	mapSize = 3.56;
	author = "Ported by RichardsD, from BxBugs123";
	_generalMacro = "";
	displayName = "Chevrolet Impala Police Interceptor";
	vehicleclass = "DARPol_Vehicles";

	class Library {
		libTextDesc = "";
	};
	hiddenSelections[] = {"jump", "lb-left-front-corner", "lb-left-takedown", "lb-front-blue-1", "lb-front-blue-2", "lb-front-red-2", "lb-front-red-1", "lb-right-takedown", "lb-right-front-corner", "lb-right-back-corner", "lb-back-red-1", "lb-back-red-2", "lb-back-red-3", "lb-back-blue-3", "lb-back-blue-2", "lb-back-blue-1", "lb-left-back-corner", "lb-back-yellow-1", "lb-back-yellow-2", "lb-back-yellow-3", "lb-back-yellow-4", "lb-back-yellow-5", "lb-back-yellow-6", "lb-left-alley", "lb-right-alley", "lb-ion-blue", "lb-ion-red", "radar_patrol_c", "radar_patrol_d", "radar_patrol_u", "radar_fast_c", "radar_fast_d", "radar_fast_u", "radar_target_c", "radar_target_d", "radar_target_u"};
	hiddenSelectionsTextures[] = {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""};

	picture	= "\DAR_ImpalaPI\Data\UI\ImpalaIcon.paa"; 
	Icon	= "\DAR_ImpalaPI\Data\UI\map_impala.paa"; 

	terrainCoef 	= 6.5; 	
	turnCoef 		= 2.5; 	
	precision 		= 10; 	
	brakeDistance 	= 3.0; 	
	acceleration 	= 15; 	

	fireResistance 	= 5; 	
	armor 			= 60; 	
	cost			= 50000; 

	transportMaxBackpacks 	= 10; 
	transportSoldier 		= 3; 


	wheelDamageRadiusCoef 	= 0.9; 			
	wheelDestroyRadiusCoef 	= 0.4;			
	maxFordingDepth 		= 0.5;			
	waterResistance 		= 1;			
	crewCrashProtection		= 0.7;	

	class Exhausts {
		class Exhaust1 {
			position = "exhaust1";
			direction = "exhaust1_dir";
			effect = "ExhaustEffectOffroad";
		};
	};
	ejectDeadCargo = true;
	ejectDeadDriver = true;

	class Turrets {};
	showNVGCargo[] = {0};
	showNVGDriver = 0;
	hideWeaponsDriver = false;
	hideWeaponsCargo = false;
	weapons[] = {"SportCarHorn", "DAR_siren_a", "DAR_siren_b"};
	driverAction = "driver_offroad01";
	getInAction = "GetInOffroad";
	getOutAction = "GetOutLow";
	cargoAction[] = {"passenger_low01", "passenger_generic01_leanright", "passenger_generic01_foldhands"};
	cargoGetInAction[] = {"GetInLow"};
	cargoGetOutAction[] = {"GetOutLow"};

	#include "sounds.hpp"	
	#include "pip.hpp"		
	#include "physx.hpp"

	class AnimationSources {
		class HitLFWheel {
			source = "Hit";
			hitpoint = "HitLFWheel";
			raw = 1;
		};

		class HitRFWheel {
			source = "Hit";
			hitpoint = "HitRFWheel";
			raw = 1;
		};

		class HitLBWheel {
			source = "Hit";
			hitpoint = "HitLF2Wheel";
			raw = 1;
		};

		class HitRBWheel {
			source = "Hit";
			hitpoint = "HitRF2Wheel";
			raw = 1;
		};
	};

	class HitPoints : HitPoints {
		class HitLFWheel : HitLFWheel {
			armor = 0.5;
			explosionShielding = 0.8;
			material = -1;
		};

		class HitLF2Wheel : HitLF2Wheel {
			armor = 0.5;
			explosionShielding = 0.8;
			material = -1;
		};

		class HitRFWheel : HitRFWheel {
			armor = 0.5;
			explosionShielding = 0.8;
			material = -1;
		};

		class HitRF2Wheel : HitRF2Wheel {
			armor = 0.5;
			explosionShielding = 0.8;
			material = -1;
		};

		class HitEngine {
			armor = 0.8;
			material = -1;
			name = "engine";
			visual = "";
			passThrough = 0.1;
		};

		class HitGlass1:HitGlass1 {armor=0.25;}; 
		class HitGlass2:HitGlass2 {armor=0.25;};
		class HitGlass3:HitGlass3 {armor=0.25;};
		class HitGlass4:HitGlass4 {armor=0.25;};
	};

	class Damage {
		tex[] = {};
		mat[] = {"A3\soft_F\Quadbike_01\Data\Quadbike_01_base.rvmat", "A3\soft_F\Quadbike_01\Data\Quadbike_01_base_damage.rvmat", "A3\soft_F\Quadbike_01\Data\Quadbike_01_base_destruct.rvmat"};
	};

	class Reflectors
	{
		class LightCarHeadL01
		{
			color[] 		= {1900, 1800, 1700};		
			ambient[]		= {5, 5, 5};				
			position 		= "LightCarHeadL01";		
			direction 		= "LightCarHeadL01_end";	
			hitpoint 		= "Light_L";				
			selection 		= "Light_L";				
			size 			= 1;						
			innerAngle 		= 100;						
			outerAngle 		= 179;						
			coneFadeCoef 	= 10;						
			intensity 		= 1;						
			useFlare 		= true;						
			dayLight 		= false;					
			flareSize 		= 1.0;						
			class Attenuation
			{
				start 			= 1.0;
				constant 		= 0; 
				linear 			= 0; 
				quadratic 		= 0.25; 
				hardLimitStart 	= 30;		
				hardLimitEnd 	= 60;
			};
		};		
		class LightCarHeadL02:LightCarHeadL01
		{
			position 	= "LightCarHeadL02";
			direction 	= "LightCarHeadL02_end";
			FlareSize 	= 0.5;
		};
		class LightCarHeadR01:LightCarHeadL01
		{
			position 	= "LightCarHeadR01";
			direction 	= "LightCarHeadR01_end";
			hitpoint 	= "Light_R";
			selection 	= "Light_R";
		};
		class LightCarHeadR02:LightCarHeadR01
		{
			position 	= "LightCarHeadR02";
			direction 	= "LightCarHeadR02_end";
			FlareSize 	= 0.5;
		};
	};
	aggregateReflectors[] = {{"LightCarHeadL01", "LightCarHeadL02"}, {"LightCarHeadR01", "LightCarHeadR02"}}; 
};

class DAR_ImpalaPolice : DAR_ImpalaPolBase {
	author = "Ported by RichardsD, from BxBugs123";
	displayname = "Chevrolet Impala PI Patrol";
	model = "DAR_ImpalaPI\DAR_ImpalaPIM.p3d";
	scope = public;
	side = TCivilian;
	faction = CIV_F;
	crew = "C_man_1";
	typicalCargo[] = {"C_man_1"};
	hiddenSelections[] = {"jump", "lb-left-front-corner", "lb-left-takedown", "lb-front-blue-1", "lb-front-blue-2", "lb-front-red-2", "lb-front-red-1", "lb-right-takedown", "lb-right-front-corner", "lb-right-back-corner", "lb-back-red-1", "lb-back-red-2", "lb-back-red-3", "lb-back-blue-3", "lb-back-blue-2", "lb-back-blue-1", "lb-left-back-corner", "lb-back-yellow-1", "lb-back-yellow-2", "lb-back-yellow-3", "lb-back-yellow-4", "lb-back-yellow-5", "lb-back-yellow-6", "lb-left-alley", "lb-right-alley", "lb-ion-blue", "lb-ion-red", "radar_patrol_c", "radar_patrol_d", "radar_patrol_u", "radar_fast_c", "radar_fast_d", "radar_fast_u", "radar_target_c", "radar_target_d", "radar_target_u"};
	hiddenSelectionsTextures[] = {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""};

	class eventhandlers {
		init = "_this execVM '\DAR_ImpalaPI\PoliceData\Scripts\init.sqf';";
	};

	class UserActions {
		class codeOne {
			displayName = "<t color='#0000ff'>Lightbar Off</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0)";
			statement = "this animate ['ani_lightbar', 0]";
			onlyForplayer = 0;
		};

		class LightMode1 {
			displayName = "<t color='#0000ff'>Light Mode 1</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.1)";
			statement = "this animate ['ani_lightbar', 0.1]";
			onlyForplayer = 0;
		};

		class LightMode2 {
			displayName = "<t color='#0000ff'>Light Mode 2</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.2)";
			statement = "this animate ['ani_lightbar', 0.2]";
			onlyForplayer = 0;
		};

		class LightMode3 {
			displayName = "<t color='#0000ff'>Light Cruise</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.3)";
			statement = "this animate ['ani_lightbar', 0.3]";
			onlyForplayer = 0;
		};

		class sirenon {
			displayName = "<t color='#ff0000'>Siren On</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_siren' != 0.2)";
			statement = "this animate ['ani_siren', 0.2]";
			onlyForplayer = 0;
		};

		class yelp {
			displayName = "<t color='#ff0000'>Yelp</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_siren' == 0.2)";
			statement = "this animate ['ani_siren', 0.4]";
			onlyForplayer = 0;
		};

		class sirenoff {
			displayName = "<t color='#ff0000'>Siren OFF</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_siren' != 0)";
			statement = "this animate ['ani_siren', 0]";
			onlyForplayer = 0;
		};

		class directionaloff {
			displayName = "<t color='#ffff00'>Directional OFF</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0)";
			statement = "this animate ['ani_directional', 0]";
			onlyForplayer = 0;
		};

		class directional1 {
			displayName = "<t color='#ffff00'>Directional Warning</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.1)";
			statement = "this animate ['ani_directional', 0.1]";
			onlyForplayer = 0;
		};

		class directional2 {
			displayName = "<t color='#ffff00'>Directional Flashing</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.2)";
			statement = "this animate ['ani_directional', 0.2]";
			onlyForplayer = 0;
		};

		class directional3 {
			displayName = "<t color='#ffff00'>Directional Right</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.3)";
			statement = "this animate ['ani_directional', 0.3]";
			onlyForplayer = 0;
		};

		class directional4 {
			displayName = "<t color='#ffff00'>Directional Left</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.4)";
			statement = "this animate ['ani_directional', 0.4]";
			onlyForplayer = 0;
		};

		class directional5 {
			displayName = "<t color='#ffff00'>Directional Both</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.5)";
			statement = "this animate ['ani_directional', 0.5]";
			onlyForplayer = 0;
		};

		class takedownoff {
			displayName = "<t color='#ffffff'>Takedowns off</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_takedown' != 0)";
			statement = "this animate ['ani_takedown', 0]";
			onlyForplayer = 0;
		};

		class takedown1 {
			displayName = "<t color='#ffffff'>Takedowns Alternative Flash</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_takedown' != 0.1)";
			statement = "this animate ['ani_takedown', 0.1]";
			onlyForplayer = 0;
		};

		class takedown2 {
			displayName = "<t color='#ffffff'>Takedowns Both Flash</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_takedown' != 0.2)";
			statement = "this animate ['ani_takedown', 0.2]";
			onlyForplayer = 0;
		};

		class takedown3 {
			displayName = "<t color='#ffffff'>Takedowns ON</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_takedown' != 0.3)";
			statement = "this animate ['ani_takedown', 0.3]";
			onlyForplayer = 0;
		};

		class radaron {
			displayName = "<t color='#000000'>Radar ON</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_radar' == 0)";
			statement = "this animate ['ani_radar', 0.3]";
			onlyForplayer = 0;
		};

		class radaroff : radaron {
			displayName = "<t color='#000000'>Radar OFF</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_radar' != 0)";
			statement = "this animate ['ani_radar', 0]";
			onlyForplayer = 0;
		};
	};

	class AnimationSources : AnimationSources {
		class Zeroanimation {
			source = "user";
			animPeriod = 0;
			initPhase = 0;
		};

		class LightAnim {
			source = "user";
			animPeriod = 1;
			initPhase = 1;
		};

		class ani_lightbar {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_siren {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_alley {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_takedown {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_directional {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_radar {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};
	};
};

class DAR_ImpalaPoliceSlick : DAR_ImpalaPolBase {
	author = "Ported by RichardsD, from BxBugs123";
	displayname = "Chevrolet Impala PI Slicktop";
	model = "DAR_ImpalaPI\DAR_ImpalaPIS.p3d";
	scope = public;
	side = TCivilian;
	faction = CIV_F;
	crew = "C_man_1";
	typicalCargo[] = {"C_man_1"};
	hiddenSelections[] = {"jump", "lb-left-front-corner", "lb-left-takedown", "lb-front-blue-1", "lb-front-blue-2", "lb-front-red-2", "lb-front-red-1", "lb-right-takedown", "lb-right-front-corner", "lb-right-back-corner", "lb-back-red-1", "lb-back-red-2", "lb-back-red-3", "lb-back-blue-3", "lb-back-blue-2", "lb-back-blue-1", "lb-left-back-corner", "lb-back-yellow-1", "lb-back-yellow-2", "lb-back-yellow-3", "lb-back-yellow-4", "lb-back-yellow-5", "lb-back-yellow-6", "lb-left-alley", "lb-right-alley", "lb-ion-blue", "lb-ion-red", "radar_patrol_c", "radar_patrol_d", "radar_patrol_u", "radar_fast_c", "radar_fast_d", "radar_fast_u", "radar_target_c", "radar_target_d", "radar_target_u"};
	hiddenSelectionsTextures[] = {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""};

	class eventhandlers {
		init = "_this execVM '\DAR_ImpalaPI\PoliceData\Scripts\init.sqf';";
	};

	class UserActions {
		class codeOne {
			displayName = "<t color='#0000ff'>Lightbar Off</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0)";
			statement = "this animate ['ani_lightbar', 0]";
			onlyForplayer = 0;
		};

		class LightMode1 {
			displayName = "<t color='#0000ff'>Light Mode 1</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.1)";
			statement = "this animate ['ani_lightbar', 0.1]";
			onlyForplayer = 0;
		};

		class LightMode2 {
			displayName = "<t color='#0000ff'>Light Mode 2</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.2)";
			statement = "this animate ['ani_lightbar', 0.2]";
			onlyForplayer = 0;
		};

		class LightMode3 {
			displayName = "<t color='#0000ff'>Light Cruise</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.3)";
			statement = "this animate ['ani_lightbar', 0.3]";
			onlyForplayer = 0;
		};

		class sirenon {
			displayName = "<t color='#ff0000'>Siren On</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_siren' != 0.2)";
			statement = "this animate ['ani_siren', 0.2]";
			onlyForplayer = 0;
		};

		class yelp {
			displayName = "<t color='#ff0000'>Yelp</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_siren' == 0.2)";
			statement = "this animate ['ani_siren', 0.4]";
			onlyForplayer = 0;
		};

		class sirenoff {
			displayName = "<t color='#ff0000'>Siren OFF</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_siren' != 0)";
			statement = "this animate ['ani_siren', 0]";
			onlyForplayer = 0;
		};

		class directionaloff {
			displayName = "<t color='#ffff00'>Directional OFF</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0)";
			statement = "this animate ['ani_directional', 0]";
			onlyForplayer = 0;
		};

		class directional1 {
			displayName = "<t color='#ffff00'>Directional Warning</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.1)";
			statement = "this animate ['ani_directional', 0.1]";
			onlyForplayer = 0;
		};

		class directional2 {
			displayName = "<t color='#ffff00'>Directional Flashing</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.2)";
			statement = "this animate ['ani_directional', 0.2]";
			onlyForplayer = 0;
		};

		class directional3 {
			displayName = "<t color='#ffff00'>Directional Right</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.3)";
			statement = "this animate ['ani_directional', 0.3]";
			onlyForplayer = 0;
		};

		class directional4 {
			displayName = "<t color='#ffff00'>Directional Left</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.4)";
			statement = "this animate ['ani_directional', 0.4]";
			onlyForplayer = 0;
		};

		class directional5 {
			displayName = "<t color='#ffff00'>Directional Both</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_directional' != 0.5)";
			statement = "this animate ['ani_directional', 0.5]";
			onlyForplayer = 0;
		};

		class takedownoff {
			displayName = "<t color='#ffffff'>Takedowns off</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_takedown' != 0)";
			statement = "this animate ['ani_takedown', 0]";
			onlyForplayer = 0;
		};

		class takedown1 {
			displayName = "<t color='#ffffff'>Takedowns Alternative Flash</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_takedown' != 0.1)";
			statement = "this animate ['ani_takedown', 0.1]";
			onlyForplayer = 0;
		};

		class takedown2 {
			displayName = "<t color='#ffffff'>Takedowns Both Flash</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_takedown' != 0.2)";
			statement = "this animate ['ani_takedown', 0.2]";
			onlyForplayer = 0;
		};

		class takedown3 {
			displayName = "<t color='#ffffff'>Takedowns ON</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_takedown' != 0.3)";
			statement = "this animate ['ani_takedown', 0.3]";
			onlyForplayer = 0;
		};

		class radaron {
			displayName = "<t color='#000000'>Radar ON</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_radar' == 0)";
			statement = "this animate ['ani_radar', 0.3]";
			onlyForplayer = 0;
		};

		class radaroff : radaron {
			displayName = "<t color='#000000'>Radar OFF</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_radar' != 0)";
			statement = "this animate ['ani_radar', 0]";
			onlyForplayer = 0;
		};
	};

	class AnimationSources : AnimationSources {
		class Zeroanimation {
			source = "user";
			animPeriod = 0;
			initPhase = 0;
		};

		class LightAnim {
			source = "user";
			animPeriod = 1;
			initPhase = 1;
		};

		class ani_lightbar {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_siren {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_alley {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_takedown {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_directional {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_radar {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};
	};
};

class DAR_ImpalaPoliceDet : DAR_ImpalaPolBase {
	author = "Ported by RichardsD, from BxBugs123";
	displayname = "Chevrolet Impala PI Detective Vehicle";
	model = "DAR_ImpalaPI\DAR_ImpalaPID.p3d";
	scope = public;
	side = TCivilian;
	faction = CIV_F;
	crew = "C_man_1";
	typicalCargo[] = {"C_man_1"};
	hiddenSelections[] = {"jump", "lb-left-front-corner", "lb-left-takedown", "lb-front-blue-1", "lb-front-blue-2", "lb-front-red-2", "lb-front-red-1", "lb-right-takedown", "lb-right-front-corner", "lb-right-back-corner", "lb-back-red-1", "lb-back-red-2", "lb-back-red-3", "lb-back-blue-3", "lb-back-blue-2", "lb-back-blue-1", "lb-left-back-corner", "lb-back-yellow-1", "lb-back-yellow-2", "lb-back-yellow-3", "lb-back-yellow-4", "lb-back-yellow-5", "lb-back-yellow-6", "lb-left-alley", "lb-right-alley", "lb-ion-blue", "lb-ion-red", "radar_patrol_c", "radar_patrol_d", "radar_patrol_u", "radar_fast_c", "radar_fast_d", "radar_fast_u", "radar_target_c", "radar_target_d", "radar_target_u"};
	hiddenSelectionsTextures[] = {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""};

	class eventhandlers {
		init = "_this execVM '\DAR_ImpalaPI\PoliceData\Scripts\init.sqf';";
	};

	class UserActions {
		class codeOne {
			displayName = "<t color='#0000ff'>Lightbar Off</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0)";
			statement = "this animate ['ani_lightbar', 0]";
			onlyForplayer = 0;
		};

		class LightMode1 {
			displayName = "<t color='#0000ff'>Light Mode 1</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.1)";
			statement = "this animate ['ani_lightbar', 0.1]";
			onlyForplayer = 0;
		};

		class LightMode2 {
			displayName = "<t color='#0000ff'>Light Mode 2</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.2)";
			statement = "this animate ['ani_lightbar', 0.2]";
			onlyForplayer = 0;
		};

		class LightMode3 {
			displayName = "<t color='#0000ff'>Light Cruise</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.3)";
			statement = "this animate ['ani_lightbar', 0.3]";
			onlyForplayer = 0;
		};

		class sirenon {
			displayName = "<t color='#ff0000'>Siren On</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_siren' != 0.2)";
			statement = "this animate ['ani_siren', 0.2]";
			onlyForplayer = 0;
		};

		class yelp {
			displayName = "<t color='#ff0000'>Yelp</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_siren' == 0.2)";
			statement = "this animate ['ani_siren', 0.4]";
			onlyForplayer = 0;
		};

		class sirenoff {
			displayName = "<t color='#ff0000'>Siren OFF</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_siren' != 0)";
			statement = "this animate ['ani_siren', 0]";
			onlyForplayer = 0;
		};

		class radaron {
			displayName = "<t color='#000000'>Radar ON</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_radar' == 0)";
			statement = "this animate ['ani_radar', 0.3]";
			onlyForplayer = 0;
		};

		class radaroff : radaron {
			displayName = "<t color='#000000'>Radar OFF</t>";
			position = "drivewheel";
			radius = 1000;
			condition = "driver this == player && (this animationPhase 'ani_radar' != 0)";
			statement = "this animate ['ani_radar', 0]";
			onlyForplayer = 0;
		};
	};

	class AnimationSources : AnimationSources {
		class Zeroanimation {
			source = "user";
			animPeriod = 0;
			initPhase = 0;
		};

		class LightAnim {
			source = "user";
			animPeriod = 1;
			initPhase = 1;
		};

		class ani_lightbar {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_siren {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_alley {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_takedown {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_directional {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class ani_radar {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};
	};
};

};

Share this post


Link to post
Share on other sites

model.cfg

class Rotation
{
type = "rotation";
memory = 1;
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = 1;
};
class CfgSkeletons
{
class Default
{
	isDiscrete = 1;
	skeletonInherit = "";
	skeletonBones[] = {};
};
class Vehicle : Default {};
class Car : Vehicle {
	skeletonBones[]=
	{
		"drivewheel","",
		"lightbar",	"",
		"siren",	"",
		"directional",	"",
		"takedown",	"",
		"alley",	"",
		"radarbox",	"",

		"wheel_1_1_damper_land","",
		"wheel_1_2_damper_land","",
		"wheel_1_3_damper_land","",
		"wheel_1_4_damper_land","",

		"wheel_2_1_damper_land","",
		"wheel_2_2_damper_land","",
		"wheel_2_3_damper_land","",
		"wheel_2_4_damper_land","",

		"wheel_1_1_damper","wheel_1_1_damper_land",
		"wheel_1_2_damper","wheel_1_2_damper_land",
		"wheel_1_3_damper","wheel_1_3_damper_land",
		"wheel_1_4_damper","wheel_1_4_damper_land",

		"wheel_2_1_damper","wheel_2_1_damper_land",
		"wheel_2_2_damper","wheel_2_2_damper_land",
		"wheel_2_3_damper","wheel_2_3_damper_land",
		"wheel_2_4_damper","wheel_2_4_damper_land",

		"wheel_1_1_steering","wheel_1_1_damper",
		"wheel_1_2_steering","wheel_1_2_damper",
		"wheel_1_3_steering","wheel_1_3_damper",
		"wheel_1_4_steering","wheel_1_4_damper",

		"wheel_2_1_steering","wheel_2_1_damper",
		"wheel_2_2_steering","wheel_2_2_damper",
		"wheel_2_3_steering","wheel_2_3_damper",
		"wheel_2_4_steering","wheel_2_4_damper",

		"wheel_1_1","wheel_1_1_steering",
		"wheel_1_2","wheel_1_2_steering",
		"wheel_1_3","wheel_1_3_steering",
		"wheel_1_4","wheel_1_4_steering",

		"wheel_2_1","wheel_2_1_steering",
		"wheel_2_2","wheel_2_2_steering",
		"wheel_2_3","wheel_2_3_steering",
		"wheel_2_4","wheel_2_4_steering",

		"wheel_1_1_unhide","wheel_1_1",
		"wheel_1_2_unhide","wheel_1_2",
		"wheel_1_3_unhide","wheel_1_3",
		"wheel_1_4_unhide","wheel_1_4",

		"wheel_2_1_unhide","wheel_2_1",
		"wheel_2_2_unhide","wheel_2_2",
		"wheel_2_3_unhide","wheel_2_3",
		"wheel_2_4_unhide","wheel_2_4",

		"wheel_1_1_hide","wheel_1_1",
		"wheel_1_2_hide","wheel_1_2",
		"wheel_1_3_hide","wheel_1_3",
		"wheel_1_4_hide","wheel_1_4",

		"wheel_2_1_hide","wheel_2_1",
		"wheel_2_2_hide","wheel_2_2",
		"wheel_2_3_hide","wheel_2_3",
		"wheel_2_4_hide","wheel_2_4",

		"OtocVez","",
		"OtocHlaven","OtocVez",

		"damageHide","",
		"damageVez","OtocVez",
		"damageHlaven","OtocHlaven",

		"ukaz_rychlo","",
		"ukaz_rychlo2","",
		"ukaz_rpm","",
		"mph","",
		"rpm","",
		"fuel","",
		"fuel_1","",
		"fuel_01","",
		"fuel_2","",
		"fuel_3","",
		"prop_01","",
		"prop_02","",
		"prop_2","",
		"prop_1","",
		"glass1","damageHide",
		"glass2","damageHide",
		"glass3","damageHide",
		"glass4","damageHide",
	};
};
class civil_car: Car
{
	skeletonInherit="Car";
	skeletonBones[]=
	{
		"reverse_light","",
		"daylights","damageHide",
		"door1","",
		"door2","",
		"glass5","damageHide",
	};
};

};

class CfgModels
{
class Default
{
	sectionsInherit = "";
	sections[] = {};
	skeletonName = "";
};
class Vehicle: Default
{
	sections[] =
	{
		"cislo",
		"grupa",
		"side",
		"sektor",
		"clan",
		"clan_sign",
		"podsvit pristroju",
		"poskozeni",
		"L svetlo",
		"P svetlo",
		"zasleh"
	};
};	

class Car: Vehicle
{
	htMin = 60;		// Minimum half-cooling time (in seconds)
	htMax = 180;	// Maximum half-cooling time (in seconds)
	afMax = 100;	// Maximum temperature in case the model is alive (in celsius)
	mfMax = 8;		// Maximum temperature when the model is moving (in celsius)
	mFact = 1;		// Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).
	tBody = 150;	// Metabolism temperature of the model (in celsius)

	sections[]=
	{
		"ammo",
		"zadni svetlo",
		"brzdove svetlo",
		"spz",
		"motor",
		"body",
		"clan",
		"clan_sign",
		"zasleh",
		"Light_R",
		"Light_L",
		"podsvit pristroju",
		"glass1",
		"glass2",
		"glass3",
		"glass4",
		"glass5",
		"glass6",
		"lb-back-blue-1",
		"lb-back-blue-2",
		"lb-back-blue-3",
		"lb-back-red-1",
		"lb-back-red-2",
		"lb-back-red-3",
		"lb-back-yellow-1",
		"lb-back-yellow-2",
		"lb-back-yellow-3",
		"lb-back-yellow-4",
		"lb-back-yellow-5",
		"lb-back-yellow-6",
		"lb-front-blue-1",
		"lb-front-blue-2",
		"lb-front-red-2",
		"lb-front-red-1",
		"lb-left-takedown",
		"lb-right-takedown",
		"lb-right-alley",
		"lb-left-alley",
		"lb-right-front-corner",
		"lb-left-front-corner",
		"lb-left-back-corner",
		"lb-right-back-corner",
		"lb-ion-blue",
		"lb-ion-red",
		"left_headlight",
		"right_headlight",
		"brake_light",
		"back_lights"

	};
	skeletonName="Car";

	class Animations
	{
		class ani_lightbar
		{
			type="rotation";
			source="user";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="lightbar";
			axis="";//"lightbar_axis";//possibly
			minValue = 0.0;//rad 0.0
			maxValue = 1000.0;//rad 57295.78
			minPhase = 0.0;//rad 0.0
			maxPhase = 1000.0;//rad 57295.78
			angle0 = 0.0;//rad 0.0;
			angle1 = 3.0;//rad 171.88734;
//				AxisPos[] = {0.0,3.0,0.0};
//				AxisDir[] = {1.6820488e+019,7.1547368e+022,1.9411033e+031};
//				angle = 4.1037e-041/*#DEN*/;
//				axisOffset = 0.0
		};
		class ani_siren
		{
			type="rotation";
			source="user";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="siren";
			axis="";//"siren_axis";//possibly
			minValue = 0.0;//rad 0.0
			maxValue = 1000.0;//rad 57295.78
			minPhase = 0.0;//rad 0.0
			maxPhase = 1000.0;//rad 57295.78
			angle0 = 0.0;//rad 0.0;
			angle1 = 3.0;//rad 171.88734;
//				AxisPos[] = {0.0,3.0,0.0};
//				AxisDir[] = {1.6820488e+019,6.9472114e+022,1.9144365e+028};
//				angle = 7.1855833e+022;
//				axisOffset = 1.59748e-043/*#DEN*/
		};
		class ani_takedown
		{
			type="rotation";
			source="user";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="takedown";
			axis="";//"takedown_axis";//possibly
			minValue = 0.0;//rad 0.0
			maxValue = 1000.0;//rad 57295.78
			minPhase = 0.0;//rad 0.0
			maxPhase = 1000.0;//rad 57295.78
			angle0 = 0.0;//rad 0.0;
			angle1 = 3.0;//rad 171.88734;
//				AxisPos[] = {0.0,3.0,0.0};
//				AxisDir[] = {1.6820488e+019,6.977986e+022,1.9411046e+031};
//				angle = 4.1037e-041/*#DEN*/;
//				axisOffset = 0.0
		};
		class ani_alley
		{
			type="rotation";
			source="user";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="alley";
			axis="";//"alley_axis";//possibly
			minValue = 0.0;//rad 0.0
			maxValue = 1000.0;//rad 57295.78
			minPhase = 0.0;//rad 0.0
			maxPhase = 1000.0;//rad 57295.78
			angle0 = 0.0;//rad 0.0;
			angle1 = 3.0;//rad 171.88734;
//				AxisPos[] = {0.0,3.0,0.0};
//				AxisDir[] = {1.6820488e+019,7.15473e+022,7.225071e+028};
//				angle = 9.95318e-039/*#DEN*/;
//				axisOffset = 4.5447454e+030
		};
		class ani_directional
		{
			type="rotation";
			source="user";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="directional";
			axis="";//"directional_axis";//possibly
			minValue = 0.0;//rad 0.0
			maxValue = 1000.0;//rad 57295.78
			minPhase = 0.0;//rad 0.0
			maxPhase = 1000.0;//rad 57295.78
			angle0 = 0.0;//rad 0.0;
			angle1 = 3.0;//rad 171.88734;
//				AxisPos[] = {0.0,3.0,0.0};
//				AxisDir[] = {1.6820488e+019,2.6330496e+020,1.9411038e+031};
//				angle = 4.1037e-041/*#DEN*/;
//				axisOffset = 0.0
		};
		class ani_radar
		{
			type="rotation";
			source="user";
			memory = 1;//by default
			animPeriod = 0;//Unknown
			selection="radarbox";
			axis="";//"radarbox_axis";//possibly
			minValue = 0.0;//rad 0.0
			maxValue = 1000.0;//rad 57295.78
			minPhase = 0.0;//rad 0.0
			maxPhase = 1000.0;//rad 57295.78
			angle0 = 0.0;//rad 0.0;
			angle1 = 3.0;//rad 171.88734;
//				AxisPos[] = {0.0,3.0,1.26117e-044/*#DEN*/};
//				AxisDir[] = {6.770931e+022,1.2781053e+019,6.740347e+022};
//				angle = 3.0734807e+032;
//				axisOffset = 131537.55
		};

		// destruct START
		class damageHide
		{
			type="hide";
			source="damage";
			selection="damageHide";
			hideValue=1.0;
		};
		class damageHideVez:damageHide
		{
			selection="OtocVez";
		};
		class damageHideHlaven:damageHide
		{
			selection="OtocHlaven";
		};

		// Wheels START
		// Wheels Complete Destruct START
		class wheel_1_1_destruct
		{
			type="hide";
			selection="wheel_1_1_hide";
			source="HitLFWheel";
			minValue = 0; // upravit na 0.99
			maxValue = 1; // upravit na 1.0
			hidevalue = 0.99999;
		};

		class wheel_1_1_destruct_unhide
		{
			type="hide";
			selection="wheel_1_1_unhide";
			source="HitLFWheel";
			minValue = 0; 
			maxValue = 1; 
			hidevalue = 0.00000;
			UnHidevalue = 1.00000;
		};

		// Wheels Complete Destruct END

		#define DamageOffset 0.2

		// Wheels Damage START
		class wheel_1_1_Damage:wheel_1_1_destruct
		{
			type="translation";
			axis="Basic_Damper_Destruct_Axis";
			memory=1;
			selection="wheel_1_1_damper";
			source="HitLFWheel";
			minValue = 0.0;
			maxValue = 1;
			offset0 = 0;
			offset1 = DamageOffset;
		};
		class wheel_1_2_Damage:wheel_1_1_Damage {source="HitLBWheel";selection="wheel_1_2_damper";};
		class wheel_1_3_Damage:wheel_1_1_Damage {source="HitLMWheel";selection="wheel_1_3_damper";};
		class wheel_1_4_Damage:wheel_1_1_Damage {source="HitLF2Wheel";selection="wheel_1_4_damper";};

		class wheel_2_1_Damage:wheel_1_1_Damage {source="HitRFWheel";selection="wheel_2_1_damper";};
		class wheel_2_2_Damage:wheel_1_1_Damage {source="HitRBWheel";selection="wheel_2_2_damper";};
		class wheel_2_3_Damage:wheel_1_1_Damage {source="HitRMWheel";selection="wheel_2_3_damper";};
		class wheel_2_4_Damage:wheel_1_1_Damage {source="HitRF2Wheel";selection="wheel_2_4_damper";};


		class wheel_1_1_Damper_Damage_BackAnim:wheel_1_1_Damage {selection="wheel_1_1_damper";offset1 = -1.2*DamageOffset;};
		class wheel_1_2_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitLBWheel";selection="wheel_1_2_damper";};
		class wheel_1_3_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitLMWheel";selection="wheel_1_3_damper";};
		class wheel_1_4_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitLF2Wheel";selection="wheel_1_4_damper";};

		class wheel_2_1_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRFWheel";selection="wheel_2_1_damper";};
		class wheel_2_2_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRBWheel";selection="wheel_2_2_damper";};
		class wheel_2_3_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRMWheel";selection="wheel_2_3_damper";};
		class wheel_2_4_Damper_Damage_BackAnim:wheel_1_1_Damper_Damage_BackAnim {source="HitRF2Wheel";selection="wheel_2_4_damper";};

		// Wheels Damage END
		// Wheels END

		// destruct END
		class Fuel: Rotation
		{
			source="fuel";
			selection="fuel";
			axis="fuel_axis";
			maxValue=1;
			memory=1;
			angle0="rad -110";
			angle1=0;
		};
		class IndicatorSpeed: Rotation
		{
			source="speed";
			selection="mph";
			axis="mph_axis";
			memory=1;
			maxValue=38.900002;
			angle1="rad -265";
		};
		class IndicatorFuel: Rotation
		{
			type="rotation";
			source="fuel";
			selection="fuel_1";
			axis="fuel_1_axis";
			memory=1;
			minValue=0.000000;
			maxValue=1.000000;
			angle0=-0.087266;
			angle1=-1.658063;
		};
		class IndicatorRPM: Rotation
		{
			source="rpm";
			selection="rpm";
			axis="rpm_axis";
			memory=1;
			angle1="rad 80";
		};
		class DrivingWheel: Rotation
		{
			source="drivingWheel";
			selection="drivewheel";
			axis="drivewheel_axis";
			minValue=-1;
			maxValue=1;
			angle0=(rad 80);
			angle1=(rad -80);
		};
		class Steering_1_1
		{
			type="rotationY";
			source="drivingWheel";
			selection="wheel_1_1_steering";
			axis="wheel_1_1_steering_axis";
			memory=1;
			minValue= -1;
			maxValue= 1;
			angle0=1.047198;
			angle1=-1.047198;
		};
		class Steering_2_1: Steering_1_1
		{
			selection="wheel_2_1_steering";
			axis="wheel_2_1_steering_axis";
		};
		class Wheel_1_1
		{
			type="rotationX";
			source="wheel";
			selection="wheel_1_1";
			axis="wheel_1_1_axis";
			memory=1;
			sourceAddress="loop";
			minValue=0;
			maxValue=1;
			angle0=0;
			angle1="rad -360";
		};
		class wheel_2_1: Wheel_1_1
		{
			selection="wheel_2_1";
			axis="wheel_2_1_axis";
		};
		class wheel_1_2: Wheel_1_1
		{
			selection="wheel_1_2";
			axis="wheel_1_2_axis";
		};
		class Wheel_2_2: Wheel_1_1
		{
			selection="wheel_2_2";
			axis="wheel_2_2_axis";
		};
		class Wheel_1_1_Damper
		{
			type="translation";
			source="damper";
			selection="wheel_1_1_damper_land";
			axis="posun wheel_1_1";
			animPeriod = 1;
			minValue="0";
			maxValue="1";
			offset0= "0.5";
			offset1= "-0.5";
			memory=1;
		};
		class wheel_2_1_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_1_damper_land";
		};
		class wheel_1_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_1_2_damper_land";
		};
		class Wheel_2_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_2_damper_land";
		};
		class daylights
		{
			type="hide";
			source="rpm";
			selection="daylights";
			minValue=-0.8;
			maxValue=0.2;
			unhidevalue=1;
			sourceAddress="clamp";
		};

		class reverse_light
		{
			type="Hide";
			selection="reverse_light";
			sourceAddress="clamp";
			source="Gear";
			minValue = -1;
			maxValue = 0;
			hideValue = "0.2";	
		};			
	};
};

class DAR_ImpalaPIM: Car
{
	skeletonName = "civil_car";
	sectionsInherit = "Car";
	sections[]=
	{
		"body",
		"karoserie",
		"palivo",
	};
	class Animations: Animations
	{
		class wheel_1_1_Damage: wheel_1_1_Damage{offset1=0.18000001;};
		class wheel_1_2_Damage: wheel_1_2_Damage{offset1=0.18000001;};
		class wheel_2_1_Damage: wheel_2_1_Damage{offset1=0.18000001;};
		class wheel_2_2_Damage: wheel_2_2_Damage{offset1=0.18000001;};

		class wheel_1_1_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
		class wheel_1_2_Damper_Damage_BackAnim: wheel_1_2_Damper_Damage_BackAnim{offset1=-0.18000001;};
		class wheel_2_1_Damper_Damage_BackAnim: wheel_2_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
		class wheel_2_2_Damper_Damage_BackAnim: wheel_2_2_Damper_Damage_BackAnim{offset1=-0.18000001;};

		class DrivingWheel
		{
			type="rotation";
			source="drivingWheel";
			selection="drivewheel";
			axis="drivewheel_axis";
			memory=1;
			minValue=-1;
			maxValue=1;
			angle0=(rad 70);
			angle1=(rad -70);
		};
		class Steering_1_1
		{
			type="rotationY";
			source="drivingWheel";
			selection="wheel_1_1_steering";
			axis="wheel_1_1_steering_axis";
			memory=1;
			minValue="rad -90";
			maxValue="rad +90";
			angle0=1.0471981;
			angle1=-1.0471981;
		};
		class Steering_2_1: Steering_1_1
		{
			selection="wheel_2_1_steering";
			axis="wheel_2_1_steering_axis";
			angle0=1.0471981;
			angle1=-1.0471981;
		};
		class IndicatorSpeed: Rotation
		{
			source="speed";
			selection="mph";
			axis="mph_axis";
			memory=1;
			maxValue=28;
			angle0=0.17453299;
			angle1=-3.141593;
		};
		class IndicatorRPM: Rotation
		{
			type="rotation";
			source="rpm";
			selection="rpm";
			axis="rpm_axis";
			memory=1;
			minValue=0;
			maxValue=7500;
			angle0=(rad 0);
			angle1=(rad 250);
		};				
		class fuel
		{
			type="rotation";
			source="fuel";
			selection="fuel";
			axis="fuel_axis";
			memory=1;
			minValue=0;
			maxValue=1;
			angle0=0;
			angle1="rad +55";
		};
		class prop_01
		{
			type="rotation";
			source="rpm";
			selection="prop_1";
			axis="prop_1_axis";
			memory=1;
			minValue=1000;
			maxValue=7000;
			angle0="rad 30";
			angle1="rad 35";
		};

		class daylights
		{
			type="hide";
			source="rpm";
			selection="daylights";
			minValue=-0.8;
			maxValue=0.2;
			unhidevalue=1;
			sourceAddress="clamp";
		};

		class reverse_light
		{
			type="Hide";
			selection="reverse_light";
			sourceAddress="clamp";
			source="Gear";
			minValue = -1;
			maxValue = 0;
			hideValue = "0.2";	
		};

		class damageHidedoor1:damageHide
		{
			selection="door1";
		};
		class damageHidedoor2:damageHide
		{
			selection="door2";
		};	

		class Glass5_destruct
		{
			type="hide";
			selection="glass5";
			source="HitGlass5";
			minValue = 0;
			maxValue = 1;
			hidevalue = 0.99999;
		};	
		class Wheel_1_1_Damper: Wheel_1_1_Damper
		{
			type="translation";
			source="damper";
			selection="wheel_1_1_damper_land";
			axis="posun wheel_1_1";
			animPeriod = 1;
			minValue="0";
			maxValue="1";
			offset0= "0.5";
			offset1= "-0.5";
			memory=1;
		};
		class wheel_2_1_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_1_damper_land";			
		};
		class wheel_1_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_1_2_damper_land";						
		};
		class Wheel_2_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_2_damper_land";		
		};			
	};
};

class DAR_ImpalaPIS: Car
{
	skeletonName = "civil_car";
	sectionsInherit = "Car";
	sections[]=
	{
		"body",
		"karoserie",
		"palivo",
	};
	class Animations: Animations
	{
		class wheel_1_1_Damage: wheel_1_1_Damage{offset1=0.18000001;};
		class wheel_1_2_Damage: wheel_1_2_Damage{offset1=0.18000001;};
		class wheel_2_1_Damage: wheel_2_1_Damage{offset1=0.18000001;};
		class wheel_2_2_Damage: wheel_2_2_Damage{offset1=0.18000001;};

		class wheel_1_1_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
		class wheel_1_2_Damper_Damage_BackAnim: wheel_1_2_Damper_Damage_BackAnim{offset1=-0.18000001;};
		class wheel_2_1_Damper_Damage_BackAnim: wheel_2_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
		class wheel_2_2_Damper_Damage_BackAnim: wheel_2_2_Damper_Damage_BackAnim{offset1=-0.18000001;};

		class DrivingWheel
		{
			type="rotation";
			source="drivingWheel";
			selection="drivewheel";
			axis="drivewheel_axis";
			memory=1;
			minValue=-1;
			maxValue=1;
			angle0=(rad 70);
			angle1=(rad -70);
		};
		class Steering_1_1
		{
			type="rotationY";
			source="drivingWheel";
			selection="wheel_1_1_steering";
			axis="wheel_1_1_steering_axis";
			memory=1;
			minValue="rad -90";
			maxValue="rad +90";
			angle0=1.0471981;
			angle1=-1.0471981;
		};
		class Steering_2_1: Steering_1_1
		{
			selection="wheel_2_1_steering";
			axis="wheel_2_1_steering_axis";
			angle0=1.0471981;
			angle1=-1.0471981;
		};
		class IndicatorSpeed: Rotation
		{
			source="speed";
			selection="mph";
			axis="mph_axis";
			memory=1;
			maxValue=28;
			angle0=0.17453299;
			angle1=-3.141593;
		};
		class IndicatorRPM: Rotation
		{
			type="rotation";
			source="rpm";
			selection="rpm";
			axis="rpm_axis";
			memory=1;
			minValue=0;
			maxValue=7500;
			angle0=(rad 0);
			angle1=(rad 250);
		};				
		class fuel
		{
			type="rotation";
			source="fuel";
			selection="fuel";
			axis="fuel_axis";
			memory=1;
			minValue=0;
			maxValue=1;
			angle0=0;
			angle1="rad +55";
		};
		class prop_01
		{
			type="rotation";
			source="rpm";
			selection="prop_1";
			axis="prop_1_axis";
			memory=1;
			minValue=1000;
			maxValue=7000;
			angle0="rad 30";
			angle1="rad 35";
		};

		class daylights
		{
			type="hide";
			source="rpm";
			selection="daylights";
			minValue=-0.8;
			maxValue=0.2;
			unhidevalue=1;
			sourceAddress="clamp";
		};

		class reverse_light
		{
			type="Hide";
			selection="reverse_light";
			sourceAddress="clamp";
			source="Gear";
			minValue = -1;
			maxValue = 0;
			hideValue = "0.2";	
		};

		class damageHidedoor1:damageHide
		{
			selection="door1";
		};
		class damageHidedoor2:damageHide
		{
			selection="door2";
		};	

		class Glass5_destruct
		{
			type="hide";
			selection="glass5";
			source="HitGlass5";
			minValue = 0;
			maxValue = 1;
			hidevalue = 0.99999;
		};	
		class Wheel_1_1_Damper: Wheel_1_1_Damper
		{
			type="translation";
			source="damper";
			selection="wheel_1_1_damper_land";
			axis="posun wheel_1_1";
			animPeriod = 1;
			minValue="0";
			maxValue="1";
			offset0= "0.5";
			offset1= "-0.5";
			memory=1;
		};
		class wheel_2_1_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_1_damper_land";			
		};
		class wheel_1_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_1_2_damper_land";						
		};
		class Wheel_2_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_2_damper_land";		
		};			
	};
};

class DAR_ImpalaPID: Car
{
	skeletonName = "Car";
	sectionsInherit = "Car";
	sections[]=
	{
		"body",
		"karoserie",
		"palivo",
	};
	class Animations: Animations
	{
		class wheel_1_1_Damage: wheel_1_1_Damage{offset1=0.18000001;};
		class wheel_1_2_Damage: wheel_1_2_Damage{offset1=0.18000001;};
		class wheel_2_1_Damage: wheel_2_1_Damage{offset1=0.18000001;};
		class wheel_2_2_Damage: wheel_2_2_Damage{offset1=0.18000001;};

		class wheel_1_1_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
		class wheel_1_2_Damper_Damage_BackAnim: wheel_1_2_Damper_Damage_BackAnim{offset1=-0.18000001;};
		class wheel_2_1_Damper_Damage_BackAnim: wheel_2_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
		class wheel_2_2_Damper_Damage_BackAnim: wheel_2_2_Damper_Damage_BackAnim{offset1=-0.18000001;};

		class DrivingWheel
		{
			type="rotation";
			source="drivingWheel";
			selection="drivewheel";
			axis="drivewheel_axis";
			memory=1;
			minValue=-1;
			maxValue=1;
			angle0=(rad 70);
			angle1=(rad -70);
		};
		class Steering_1_1
		{
			type="rotationY";
			source="drivingWheel";
			selection="wheel_1_1_steering";
			axis="wheel_1_1_steering_axis";
			memory=1;
			minValue="rad -90";
			maxValue="rad +90";
			angle0=1.0471981;
			angle1=-1.0471981;
		};
		class Steering_2_1: Steering_1_1
		{
			selection="wheel_2_1_steering";
			axis="wheel_2_1_steering_axis";
			angle0=1.0471981;
			angle1=-1.0471981;
		};
		class IndicatorSpeed: Rotation
		{
			source="speed";
			selection="mph";
			axis="mph_axis";
			memory=1;
			maxValue=28;
			angle0=0.17453299;
			angle1=-3.141593;
		};
		class IndicatorRPM: Rotation
		{
			type="rotation";
			source="rpm";
			selection="rpm";
			axis="rpm_axis";
			memory=1;
			minValue=0;
			maxValue=7500;
			angle0=(rad 0);
			angle1=(rad 250);
		};				
		class fuel
		{
			type="rotation";
			source="fuel";
			selection="fuel";
			axis="fuel_axis";
			memory=1;
			minValue=0;
			maxValue=1;
			angle0=0;
			angle1="rad +55";
		};
		class prop_01
		{
			type="rotation";
			source="rpm";
			selection="prop_1";
			axis="prop_1_axis";
			memory=1;
			minValue=1000;
			maxValue=7000;
			angle0="rad 30";
			angle1="rad 35";
		};

		class daylights
		{
			type="hide";
			source="rpm";
			selection="daylights";
			minValue=-0.8;
			maxValue=0.2;
			unhidevalue=1;
			sourceAddress="clamp";
		};

		class reverse_light
		{
			type="Hide";
			selection="reverse_light";
			sourceAddress="clamp";
			source="Gear";
			minValue = -1;
			maxValue = 0;
			hideValue = "0.2";	
		};

		class damageHidedoor1:damageHide
		{
			selection="door1";
		};
		class damageHidedoor2:damageHide
		{
			selection="door2";
		};	

		class Glass5_destruct
		{
			type="hide";
			selection="glass5";
			source="HitGlass5";
			minValue = 0;
			maxValue = 1;
			hidevalue = 0.99999;
		};	
		class Wheel_1_1_Damper: Wheel_1_1_Damper
		{
			type="translation";
			source="damper";
			selection="wheel_1_1_damper_land";
			axis="posun wheel_1_1";
			animPeriod = 1;
			minValue="0";
			maxValue="1";
			offset0= "0.5";
			offset1= "-0.5";
			memory=1;
		};
		class wheel_2_1_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_1_damper_land";			
		};
		class wheel_1_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_1_2_damper_land";						
		};
		class Wheel_2_2_Damper: Wheel_1_1_Damper
		{
			selection="wheel_2_2_damper_land";		
		};			
	};
};

};

[/php]

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  

×