Jump to content
Sign in to follow this  
soldier2390

U.S. Military Tractor-Trailer Addons (WIP)

Recommended Posts

It's working, from what I see your textures may be the issue now but I need to see them to be sure. The Green and Blue channel of the SMDI, as well as the normal map.

If the color of the bed is the same as the cab then I reckon one or both of the channels in the specular map are too strong in the wrong way, and the normal map may be gritty all over which in the case of flat metal, is not something you want for this very reason. http://img297.imageshack.us/img297/2372/goodcm.jpg The one on the left looks odd and gritty, not like a smooth, flat metallic surface in any way compared to the right.

Edited by NodUnit

Share this post


Link to post
Share on other sites

Hello everyone,

Progress is being made..slowly, but I am getting there! Anyways dalber24 has been a great help and has made some new sounds for the truck to make it accurate, however once I edited the Config to add in the new sounds I get a bunch of errors?

My Errors are:

- No entry 'bin\config.bin/CfgVehicles/TransportMagazines.scope'.

- No entry 'Model.cfg/CfgSkeletons/vehicle.skeletonInherit'.

- The other 2 Versions "class dk_m931_tractor_flatbed" and "class dk_m931_tractor" don't show up in the editor as they did before?

- Also the Reverse Sound under "class CfgSounds" does not work either?

Here is my Config:

class CfgPatches {
class dk_m931_trucks {
	Units[] = {"dk_m931_tractor_flatbed_ramp", "dk_m931_tractor_flatbed", "dk_m931_tractor"};
	weapons[] = {};
	requiredVersion = 1.0;
	requiredAddons[] = {"CAWheeled_E", "CAWheeled"};
};
};

class CfgFactionClasses {
class BIS_US {
	displayName = US;
	side = TWest;
};
};

class CfgVehicleClasses {
class dk_truck {
	displayName = "U.S. Military Tractor-Trailers";
};
};

class CfgVehicles {

/*extern*/ class MTVR_Base;

class dk_m931_tractor_flatbed_ramp: MTVR_Base {
     	scope = 2;
	side = 1;
	faction = BIS_US;
     	vehicleClass = "dk_truck";
     	displayName = "M931 Tractor-Trailer (Flatbed-Ramp)";
     	model ="\dk_m931_trucks\dk_m931_tractor_flatbed_ramp";
     	picture = "\dk_m931_trucks\data\5t_open_ca.paa";
     	icon = "\dk_m931_trucks\data\icomap_5tt_ca.paa";
	mapSize = 12;
	Crew = "US_Soldier_Engineer_EP1";
	cargoIsCoDriver[] = {true,true,false};
              	typicalCargo[] = {"US_Soldier_Engineer_EP1","US_Soldier_EP1"};
	cargoAction[] = {"HMMWV_Cargo01_EP1"};
	transportSoldier = 1;
	transportMaxBackpacks = 2;
     	maxspeed = 60;
	turnCoef = 12;
     	selectionBrakeLights = "brzdove svetlo";
     	damperSize = 0.02;
     		damperForce = 0.9;
     		damperDamping = 0.9;
	unitInfoType = "UnitInfoShip";
	threat[] = {0.9, 0.2, 0.2};
	accuracy = 0.3;
	fuelCapacity = 400;
	camouflage = 8;
       	armor = 55;
	armorGlass = 0.9;
	armorWheels = 0.1;
	damageResistance = 0.00899;
	dammageHalf[] = {"dk_m931_trucks\data\5tdamage.paa"};
		dammageFull[] = {"dk_m931_trucks\data\5tdamage.paa", "dk_m931_trucks\data\5tdamage.paa"};

	class Damage {
		tex[] = {"dk_m931_trucks\data\5tdamage.paa"};
		mat[] = {"dk_m931_trucks\data\truck5t_01_destruct.rvmat", "dk_m931_trucks\data\truck5t_02_destruct.rvmat", "dk_m931_trucks\data\truck5t_dash_destruct.rvmat", "\Ca\wheeled_E\Data\auta_skla_in.rvmat", "\Ca\wheeled_E\Data\auta_skla_in_damage.rvmat",
				 "\Ca\wheeled_E\Data\auta_skla_in_damage.rvmat", "\Ca\wheeled_E\Data\auta_skla.rvmat", "\Ca\wheeled_E\Data\auta_skla_damage.rvmat", "\Ca\wheeled_E\Data\auta_skla_damage.rvmat", "\Ca\Ca_E\data\default.rvmat", "\Ca\Ca_E\data\default.rvmat", "\Ca\Ca_E\data\default_destruct.rvmat"};
	};

	class Library {
		libTextDesc = "M931 (Flatbed-Ramp)";
	};

	class NVGMarkers {

		class NVGMarker01 {
			name = "nvg_marker";
			color[] = {0.03, 0.003, 0.003, 1};
			ambient[] = {0.003, 0.0003, 0.0003, 1};
			brightness = 0.001;
			blinking = true;
		};
	};

	class eventhandlers {
		Init = "_this execVM ""\dk_m931_trucks\scripts\vehicle_transport\VehicleLash.sqf""; _this execVM ""\dk_m931_trucks\scripts\vehicle_transport\VehicleLand.sqf""; _this exec ""\dk_m931_trucks\scripts\dk_m931_turn.sqs""; _this exec ""\dk_m931_trucks\scripts\dk_m931_trailerturn.sqs""; _this exec ""\dk_m931_trucks\scripts\dk_m931_tilt.sqs""; _this exec ""\dk_m931_trucks\scripts\dk_m931_reverse.sqs"";";
	};

	class AnimationSources {

		class user_flatbed_ramp {
			source = "user";
			animPeriod= 20;
			initPhase = 0;
       		};

		class trailer {
	 		source = "user";
	 		animPeriod=0.5;
	 		initPhase = 0;
		};

		class wheel_1_1rot {
	  		source = "user";
	  		animPeriod=0.5;
	  		initPhase = 0;
		};

		class wheel_2_1rot {
			source = "user";
			animPeriod=0.5;
			initPhase = 0;
		};

		class wheel_1_2rot {
			source = "user";
			animPeriod=0.5;
			initPhase = 0;
		};

		class wheel_2_2rot {
			source = "user";
			animPeriod=0.5;
			initPhase = 0;
		};

		class detachhide {
			source = "user";
			animPeriod=.001;
			initPhase = 0;
		};

		class frontwheelspinl {
			source = "user";
			animPeriod=0.5;
			initPhase = 0;
		};

		class trailerrot {
			source = "user";
			animPeriod=.01;
			initPhase = 0;
		};

		class trailerrotz {
			source = "user";
			animPeriod=.01;
			initPhase = 0;
		};

		class exhaustflap {
			source = "user";
			animPeriod= .7;
			initPhase = 0;
       		};
	};

	class UserActions {

		class open_flatbed_ramp {
			displayName = "Lower Ramp";
			position = "action_flatbed_ramp";
			onlyforplayer = false;
			radius = 8;
			condition = "(this animationPhase ""animate_flatbed_ramp"" == 0)";
			statement = "this animate [""animate_flatbed_ramp"",1];";
		};

		class close_flatbed_ramp {
			displayName = "Raise Ramp";
			position = "action_flatbed_ramp";
			onlyforplayer = false;
			radius = 8;
			condition = "(this animationPhase ""animate_flatbed_ramp"" == 1)";
			statement = "this animate [""animate_flatbed_ramp"",0];";
		};

		class LVehicle1 {
			displayName = "Strap-Down Vehicle";
			position = "trailer";
			onlyforplayer = false;
			radius = 10;
			condition = "(vehicle player isKindOf ""Car"")";
			statement = "[this, vehicle player] execVM ""\dk_m931_trucks\scripts\vehicle_transport\VehicleLand.sqf""";
		};
	};

	class HitPoints {

       		class HitEngine {
         			armor = 0.4;
         			material = -1;
         			name = "motor";
         			visual = "";
         			passThrough = 0.2;
		};

      			class HitRGlass {
        		 	convexComponent = "sklo predni P";
        			visual = "";
        		 	armor = 0.3;
        		 	material = -1;
        		 	name = "sklo predni P";
        		 	passThrough = 0;
		};

       		class HitLGlass {
         			convexComponent = "sklo predni L";
         			visual = "";
         			armor = 0.3;
         			material = -1;
         			name = "sklo predni L";
         			passThrough = 0;
		};

       		class HitBody {
         			armor = 1;
         			material = -1;
         			name = "karoserie";
         			visual = "";
         			passThrough = 1;
		};

       		class HitFuel {
         			convexComponent = "trailer";
         			armor = 0.05;
         			material = -1;
         			name = "palivo";
         			visual = "";
         			passThrough = 0;
       		};

       		class HitLFWheel {
         			armor = 0.15;
         			material = -1;
         			name = "wheel_1_1_steering";
         			visual = "";
         			passThrough = 0.3;
      			};

       		class HitRFWheel {
         			armor = 0.15;
         			material = -1;
      		   		name = "wheel_2_1_steering";
      		   		visual = "";
      		   		passThrough = 0.3;
       		};

      			class HitLF2Wheel {
      		   		armor = 0.15;
      		   		material = -1;
       	  		name = "wheel_1_4_steering";
      		   		visual = "";
       	  		passThrough = 0.3;
      			};

       		class HitRF2Wheel {
         			armor = 0.15;
         			material = -1;
         			name = "wheel_2_4_steering";
         			visual = "";
         			passThrough = 0.3;
      			};

       		class HitLMWheel {
         			armor = 0.15;
         			material = -1;
         			name = "wheel_1_3_steering";
         			visual = "";
         			passThrough = 0.3;
       		};

       		class HitRMWheel {
         			armor = 0.15;
         			material = -1;
         			name = "wheel_2_3_steering";
         			visual = "";
         			passThrough = 0.3;
      			};

       		class HitLBWheel {
        		 	armor = 0.15;
        		 	material = -1;
      	 		  	name = "wheel_1_2_steering";
       		  	visual = "";
      			   	passThrough = 0.3;
       		};

      			class HitRBWheel {
      			   	armor = 0.15;
      				material = -1;
      				name = "wheel_2_2_steering";
      				visual = "";
      				passThrough = 0.3;
		};

       		class HitGlass1 {
         			armor = 0.1;
         			material = -1;
         			name = "glass1";
      				visual = "glass1";
				passThrough = 0;
       		};

	      		class HitGlass2 {
        	  	armor = 0.1;
        	  	material = -1;
        	  	name = "glass2";
        	  	visual = "glass2";
       		   	passThrough = 0;
		       	};

        	class HitGlass3 {
          		armor = 0.1;
          		material = -1;
	         		name = "glass3";
	         		visual = "glass3";
	         		passThrough = 0;
        	};

        	class HitGlass4 {
          		armor = 0.1;
         			material = -1;
          		name = "glass4";
         			visual = "glass4";
         			passThrough = 0;
		};
       	};

	selectionFireAnim = "zasleh";
	alphaTracks = 0.2;
	memoryPointTrackFLL = "Stopa PLL";
	memoryPointTrackFLR = "Stopa PLP";
	memoryPointTrackBLL = "Stopa ZLL";
	memoryPointTrackBLR = "Stopa ZLP";
	memoryPointTrackFRL = "Stopa PPL";
	memoryPointTrackFRR = "Stopa PPP";
	memoryPointTrackBRL = "Stopa ZPL";
	memoryPointTrackBRR = "Stopa ZPP";
	SoundGear[] = {"",0.0017782794,1};
	soundGetIn[] = {"dk_m931_trucks\sounds\ext\dk_m931_doorclose1",0.70794576,1};
	soundGetOut[] = {"dk_m931_trucks\sounds\ext\dk_m931_doorclose1",0.56234133,1,50};
	soundEngineOnInt[] = {"ca\sounds\Vehicles\Wheeled\MTVR\int\int-mtvr-start",0.56234133,1.0};
	soundEngineOnExt[] = {"dk_m931_trucks\sounds\ext\dk_m931_start1",0.56234133,1.0,350};
	soundEngineOffInt[] = {"ca\sounds\vehicles\Wheeled\MTVR\int\int-mtvr-stop",0.56234133,1.0};
	soundEngineOffExt[] = {"dk_m931_trucks\sounds\ext\dk_m931_engineoff1",0.56234133,1.0,350};

	class Sounds {

		class dk_m931_engine {
			sound[] = {"dk_m931_trucks\sounds\ext\dk_m931_engine1",1.0,1.0,450};
			frequency = "(randomizer*0.05+0.95)*rpm";
			volume = "engineOn*camPos*(thrust factor[0.7, 0.2])";
		};

		class dk_m931_engineHighOut {
			sound[] = {"\ca\sounds\Vehicles\Wheeled\MTVR\ext\ext-truck-high",1.0,0.9,550};
			frequency = "(randomizer*0.05+0.95)*rpm";
			volume = "engineOn*camPos*(thrust factor[0.5, 0.95])";
		};

		class dk_m931_idleOut {
			sound[] = {"dk_m931_trucks\sounds\ext\dk_m931_idle1",0.56234133,1.0,350};
			frequency = "1";
			volume = "engineOn*camPos*(rpm factor[0.4, 0])";
		};

		class EngineLowIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\MTVR\int\int-mtvr-low2",1.0,1.0};
			frequency = "(randomizer*0.05+0.95)*rpm";
			volume = "((engineOn*thrust) factor[0.65, 0.2])*(1-camPos)";
		};

		class EngineHighIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\MTVR\int\int-mtvr-high2",1.0,0.9};
			frequency = "(randomizer*0.05+0.95)*rpm";
			volume = "((engineOn*thrust) factor[0.4, 1.0])*(1-camPos)";
		};

		class IdleIn {
			sound[] = {"\ca\sounds\Vehicles\Wheeled\MTVR\int\int-mtvr-idle1",0.39810717,1.0};
			frequency = "1";
			volume = "engineOn*(rpm factor[0.3, 0])*(1-camPos)";
		};
	};

	class dk_m931_tractor_flatbed: MTVR_Base {
     		scope = 2;
		side = 1;
		faction = BIS_US;
     		vehicleClass = "dk_truck";
     		displayName = "M931 Tractor-Trailer (Flatbed)";
     		model ="\dk_m931_trucks\dk_m931_tractor_flatbed";
     		picture = "\dk_m931_trucks\data\5t_open_ca.paa";
     		icon = "\dk_m931_trucks\data\icomap_5tt_ca.paa";
		mapSize = 12;
		Crew = "US_Soldier_Engineer_EP1";
		cargoIsCoDriver[] = {true,true,false};
              		typicalCargo[] = {"US_Soldier_Engineer_EP1","US_Soldier_EP1"};
		cargoAction[] = {"HMMWV_Cargo02_EP1"};
		transportSoldier = 1;
		transportMaxBackpacks = 2;
     		maxspeed = 55;
		turnCoef = 12;
     		selectionBrakeLights = "brzdove svetlo";
     		damperSize = 0.02;
     			damperForce = 0.9;
     			damperDamping = 0.9;
		unitInfoType = "UnitInfoShip";
		threat[] = {0.9, 0.2, 0.2};
		accuracy = 0.3;
		fuelCapacity = 400;
		camouflage = 8;
       		armor = 60;
		damageResistance = 0.00899;
		dammageHalf[] = {"\dk_m931_trucks\data\5tdamage.paa"};
			dammageFull[] = {"\dk_m931_trucks\data\5tdamage.paa", "\dk_m931_trucks\data\5tdamage.paa"};
	};

	class dk_m931_tractor: MTVR_Base {
   	  	scope = 2;
		side = 1;
		faction = BIS_US;
     		vehicleClass = "dk_truck";
     		displayName = "M931 Tractor (Tractor)";
     		model ="\dk_m931_trucks\dk_m931_tractor";
     		picture = "\dk_m931_trucks\data\5t_open_ca.paa";
     		icon = "\dk_m931_trucks\data\icomap_5tt_ca.paa";
		mapSize = 12;
		Crew = "US_Soldier_Engineer_EP1";
		cargoIsCoDriver[] = {true,true,false};
              		typicalCargo[] = {"US_Soldier_Engineer_EP1","US_Soldier_EP1"};
		cargoAction[] = {"HMMWV_Cargo04_EP1"};
		transportSoldier = 1;
		transportMaxBackpacks = 2;
     		maxspeed = 55;
		turnCoef = 12;
     		selectionBrakeLights = "brzdove svetlo";
     		damperSize = 0.02;
     			damperForce = 0.9;
     			damperDamping = 0.9;
		unitInfoType = "UnitInfoShip";
		threat[] = {0.9, 0.2, 0.2};
		accuracy = 0.3;
		fuelCapacity = 400;
		camouflage = 8;
       		armor = 60;
		damageResistance = 0.00899;
		dammageHalf[] = {"\dk_m931_trucks\data\5tdamage.paa"};
			dammageFull[] = {"\dk_m931_trucks\data\5tdamage.paa", "\dk_m931_trucks\data\5tdamage.paa"};
	};
};

class TransportMagazines {

	class _xx_30Rnd_556x45_Stanag {
		magazine = "30Rnd_556x45_Stanag";
		count = 10*1;
	};

	class _xx_HandGrenade_West {
		magazine = "HandGrenade_West";
		count = 5*1;
	};

	class _xx_15rnd_9x19_M9 {
		magazine = "15rnd_9x19_M9";
		count = 5*1;
	};

	class _xx_M136 {
		magazine = M136;
		count = 3*1;
	};

	class _xx_1Rnd_HE_M203 {
		magazine = "1Rnd_HE_M203";
		count = 3*1;
	};

	class _xx_FlareWhite_M203 {
		magazine = "FlareWhite_M203";
		count = 3*1;
	};

	class _xx_FlareGreen_M203 {
		magazine = "FlareGreen_M203";
		count = 3*1;
	};

	class _xx_FlareRed_M203 {
		magazine = "FlareRed_M203";
		count = 3*1;
	};

	class _xx_SmokeShell {
		magazine = "SmokeShell";
		count = 3*1;
	};

	class _xx_SmokeShellRed {
		magazine = "SmokeShellRed";
		count = 3*1;
	};

	class _xx_SmokeShellGreen {
		magazine = "SmokeShellGreen";
		count = 3*1;
	};
};
};

class CfgSounds{
class dk_m931_reverse{
     		sound[] = {"\dk_m931_trucks\sounds\dk_m931_reverse.wss",1.0,1.0,350};
     		titles[] = {};
};
};

Dave,

Share this post


Link to post
Share on other sites
hey how you getting on with fixing the errors you mentioned?

didnt know if you had seen this;

http://www.armaholic.com/page.php?id=18908

might be of some help?

Not getting too far with the errors except the "Reverse Sound" problem! Bought Arma3 now and will eventually port to Arma3 after I get somewhere here in Arma2.

And no I have never seen that I will deffinitly have to look into that and maby PM the Addon Maker whom made that.

Dave,

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  

×