Jump to content

Sign in to follow this  
drunken officer

multipe questions

Recommended Posts

Hi community.

I've created a car. So far so god. I can see it in the editor and on map.

There are a strange thing, and i dont know what i've to do.

Version a)

I can shoot through the window, and the driver is dead, but no damage at car

class All {};
    class AllVehicles: All {};
    class Land: AllVehicles {};
    class LandVehicle: Land {};
    class Car: LandVehicle 
		 {
 class HitPoints
                    {
			class HitBody {armor=1;material=51;name="karoserie";visual="karoserie";passThrough=1;};
			class HitEngine {armor=0.4;material=60;name="motor";visual="motor";passThrough=1;};

			class HitRGlass 	{armor=0.3;material=-1;name="sklo predni P";passThrough=0;};
			class HitLGlass 	{armor=0.3;material=-1;name="sklo predni L";passThrough=0;};
			class HitFuel 		{armor=0.3;material=51;name="palivo";passThrough=1;};
			class HitLFWheel	{armor=0.15;material=-1;name="Levy predni tlumic";visual="Levy predni";passThrough=0;};
			class HitRFWheel 	{armor=0.15;material=-1;name="Pravy predni tlumic";visual="Pravy predni";passThrough=0;};

			class HitLF2Wheel 	{armor=0.15;material=-1;name="Levy dalsi tlumic";visual="Levy dalsi";passThrough=0;};
			class HitRF2Wheel 	{armor=0.15;material=-1;name="Pravy dalsi tlumic";visual="Pravy dalsi";passThrough=0;};

			class HitLMWheel 	{armor=0.15;material=-1;name="Levy prostredni tlumic";visual="Levy prostredni";passThrough=0;};
			class HitRMWheel 	{armor=0.15;material=-1;name="Pravy prostredni tlumic";visual="Pravy prostredni";passThrough=0;};

			class HitLBWheel	{armor=0.15;material=-1;name="Levy zadni tlumic";visual="Levy zadni";passThrough=0;};
			class HitRBWheel	{armor=0.15;material=-1;name="Pravy zadni tlumic";visual="Pravy zadni";passThrough=0;};

					};
};
class carbase : car
....

Version b (with SkodaBase)

I've damage, but my glass.rvmat is not working. I can kill through the engine but not through the door and the glass. For the metals i use a arma2 template. For the glass, i used my own rvmat and a aram2 template

{
class All {};
    class AllVehicles: All {};
    class Land: AllVehicles {};
    class LandVehicle: Land {};
    class Car: LandVehicle 
	{
	class HitPoints {
		class HitLFWheel;	// External class reference
		class HitLBWheel;	// External class reference
		class HitLMWheel;	// External class reference
		class HitLF2Wheel;	// External class reference
		class HitRFWheel;	// External class reference
		class HitRBWheel;	// External class reference
		class HitRMWheel;	// External class reference
		class HitRF2Wheel;	// External class reference
	};

	};
   [b] class SkodaBase : Car [/b]
 {
 class HitPoints	{
			class HitBody {armor=1;material=51;name="karoserie";visual="karoserie";passThrough=1;};
			class HitEngine {armor=0.4;material=60;name="motor";visual="motor";passThrough=1;};

			class HitRGlass 	{armor=0.3;material=-1;name="sklo predni P";passThrough=0;};
			class HitLGlass 	{armor=0.3;material=-1;name="sklo predni L";passThrough=0;};
			class HitFuel 		{armor=0.3;material=51;name="palivo";passThrough=1;};
			class HitLFWheel	{armor=0.15;material=-1;name="Levy predni tlumic";visual="Levy predni";passThrough=0;};
			class HitRFWheel 	{armor=0.15;material=-1;name="Pravy predni tlumic";visual="Pravy predni";passThrough=0;};

			class HitLF2Wheel 	{armor=0.15;material=-1;name="Levy dalsi tlumic";visual="Levy dalsi";passThrough=0;};
			class HitRF2Wheel 	{armor=0.15;material=-1;name="Pravy dalsi tlumic";visual="Pravy dalsi";passThrough=0;};

			class HitLMWheel 	{armor=0.15;material=-1;name="Levy prostredni tlumic";visual="Levy prostredni";passThrough=0;};
			class HitRMWheel 	{armor=0.15;material=-1;name="Pravy prostredni tlumic";visual="Pravy prostredni";passThrough=0;};

			class HitLBWheel	{armor=0.15;material=-1;name="Levy zadni tlumic";visual="Levy zadni";passThrough=0;};
			class HitRBWheel	{armor=0.15;material=-1;name="Pravy zadni tlumic";visual="Pravy zadni";passThrough=0;};

					};



 };
 class carbase : SkodaBase {

Share this post


Link to post
Share on other sites

I'm pretty sure there is a glass damage tutorial in either these forums or OFPEC

Try searching.

Inheriting properties in both your model.cfg and config.cpp means unless you are copying the BIS models EXACTLY, you have no visibility to what the problem might be.

  Quote
halfdamage[] = {\policecar\glas.paa \policecar\glas_half.paa,

\policecar\glas.paa \policecar\glas_half.paa, };

fulldamage[] = {\policecar\glas.paa \policecar\glas_full.paa,

\policecar\glas.paa \policecar\glas_full.paa,

Dont think thats used in ArmA any more.

Only this for the default BIS named section of the vehicle.

"karoserie" for wheeled vehicles?

	class Damage
	{
		tex[]={};
		mat[]={
			"rkttu22m3\blu\bf_1.rvmat",
			"rkttu22m3\blu\bf_1_damage.rvmat",
			"rkttu22m3\blu\bf_1_destruct.rvmat",
			};
	};

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  

×