Results 1 to 2 of 2

Thread: multipe questions

  1. #1

    multipe questions

    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
    Code:
    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
    Code:
    {
    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
    		};
    				
    		};
         class SkodaBase : Car 
    	 {
    	 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 {

  2. #2
    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.

    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?
    PHP Code:
            class Damage
            
    {
                
    tex[]={};
                
    mat[]={
                    
    "rkttu22m3\blu\bf_1.rvmat",
                    
    "rkttu22m3\blu\bf_1_damage.rvmat",
                    
    "rkttu22m3\blu\bf_1_destruct.rvmat",
                    };
            }; 

Similar Threads

  1. Commanding Questions and more newbie questions
    By ELITEeNergizer in forum ARMA 2 & OA - QUESTIONS & ANSWERS
    Replies: 3
    Last Post: May 16 2012, 03:04
  2. A few questions
    By MrCapone in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 2
    Last Post: Aug 10 2011, 10:10
  3. a few questions unrelated questions
    By Tech9374 in forum ARMA 2 & OA - GENERAL
    Replies: 0
    Last Post: Jul 4 2009, 11:20
  4. Editor questions, module questions, how to spectate
    By gunzz in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 9
    Last Post: Jun 7 2009, 07:57
  5. Some questions regarding
    By IceFire in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 15
    Last Post: Mar 5 2003, 16:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •