Author Topic: =Vehicle Proofing=  (Read 708 times)

0 Members and 1 Guest are viewing this topic.

IllAssembly

  • Klass Klown
  • ***
  • Posts: 354
    • View Profile
=Vehicle Proofing=
« on: March 20, 2008, 09:18:19 am »
im wondering is there a simple phrase like
Quote
player addeventhandler ["hit",{player setdammage 0}]
player addeventhandler ["dammaged",{player setdammage 0}]
vehicle player addeventhandler ["hit",   {vehicle player setdammage 0}]
vehicle player addeventhandler ["dammaged",{vehicle player setdammage 0}]
or something that i could add to a config file or init line of an empty vehicle to make it absolutly invincible, bomb proof fire proof bulletproof?

ive tried just deleting things out of the config that have to do with armor and damage but that makes the config invalid or something im guessing theres something inside the p3d. i just want these audi 6's to be invincible.


« Last Edit: March 20, 2008, 11:52:28 am by [TKC]MurdaFace »

IllAssembly

  • Klass Klown
  • ***
  • Posts: 354
    • View Profile
Re: =Vehicle Proofing=
« Reply #1 on: March 20, 2008, 09:45:10 am »
vehicle addeventhandler ["hit",{vehicle setdammage 0}]
vehicle addeventhandler ["dammaged",{vehicle setdammage 0}]
vehicle player addeventhandler ["hit",   {vehicle player setdammage 0}]
vehicle player addeventhandler ["dammaged",{vehicle player setdammage 0}]



ok so neither worked, maybe


class Audi A6 Quatro addeventhandler ["hit",{vehicle setdammage 0}]
class Audi A6 Quatro addeventhandler ["dammaged",{vehicle setdammage 0}]
vehicle player addeventhandler ["hit",   {vehicle player setdammage 0}]
vehicle player addeventhandler ["dammaged",{vehicle player setdammage 0}]

 

or somethin please help



heres the config, im trying to make it unable to damage the vehicle.  [ when i change the "Hitglass" armor to 0 or the armor=30 to 9999 i get an error when i start arma that says error: config line 307 useranimations sw "" found instead of =  but nothing else is ever changed at all under Useranim like ive tried only changing armor to 9999 but i still get that weirdo error so ive tried deleting the whole sections referenced and arma will then start but the audi has no sound and ppl cannot board it right so i think its ocming from the p3d file? iono. maybe theres a script i can add to any vehicles init line or config to make that vehicle unable to receive damage

Quote
class CfgPatches {

   class PTJSAJVehicles {
      units = {"A6Q", "A6Q_1"};
      weapons = {};
      requiredVersion = 0.100000;
   };
};

class CfgSounds {
   Sounds = {"rotacOn"};

   class rotacOn {
      name = "";
      sound = {"\A6Q\Sounds\rotacOn.ogg", 0.562341, 1};
      titles = {};
   };
};

class CfgMaterials {

   class mat {
      ambient = {0.192157, 0.192157, 0.192157, 1.000000};
      diffuse = {0.192157, 0.192157, 0.192157, 1.000000};
      forcedDiffuse = {0.000000, 0.000000, 0.000000, 0.000000};
      emmisive = {0.000000, 0.000000, 0.000000, 1.000000};
      specular = {0.027451, 0.043137, 0.054902, 1.000000};
      specularPower = 0.001000;
      PixelShaderID = "Normal";
      VertexShaderID = "Basic";
   };
};

class CfgVehicleClasses {

   class PTJSAJVehicles {
      displayName = "PTJ/SAJ Vehicles";
   };
};

class CfgSkeletons {
   /*extern*/ class Car;

   class A6Q_1Bones: Car {
      isDiscrete = 1;
      skeletonInherit = "";
      skeletonBones = {"pravy predni tlumic", "", "levy predni tlumic", "", "pravy zadni tlumic", "", "levy zadni tlumic", "", "pravy predni", "pravy predni tlumic", "pravy zadni", "pravy zadni tlumic", "levy predni", "levy predni tlumic", "levy zadni", "levy zadni tlumic", "ukaz_rpm", "", "ukaz_rychlo", "", "rotac", "", "volant", "", "sw", "", "lights", ""};
   };
};

class CfgModels {
   /*extern*/ class Car;

   class A6Q_1: Car {
      sectionsInherit = "";
      sections = {"brzdove svetlo", "sw", "pravy predni", "pravy zadni", "levy predni", "levy zadni", "L svetlo", "P svetlo", "glass", "volant", "zadni svetlo"};
      skeletonName = "A6Q_1Bones";

      class Animations {

         class rotacon {
            type = "rotation";
            animperiod = 0.250000;
            source = "rotat";
            selection = "rotac";
            axis = "osa_rotac";
            memory = 1;
            minValue = 0;
            maxValue = 1;
            angle0 = 0;
            angle1 = "rad -360";
         };

         class sw {
            type = "rotation";
            initPhase = 0;
            animPeriod = 0.001000;
            source = "sw";
            selection = "sw";
            axis = "osa_sw";
            memory = 1;
            minValue = 0;
            maxValue = 1;
            angle0 = 0;
            angle1 = "rad -180";
         };

         class rotacoff {
            type = "rotation";
            initPhase = 1;
            animPeriod = 0;
            source = "rotatoff";
            selection = "rotac";
            axis = "osa_rotac";
            minValue = 0;
            maxValue = 1;
            angle0 = 0;
            angle1 = 0;
         };

         class A6Q_1DamperFrontWheelR {
            type = "translationY";
            source = "damper";
            selection = "pravy predni tlumic";
            axis = "";
            minValue = -2;
            maxValue = 2.000000;
            angle0 = 0;
            angle1 = 35;
            memory = 1;
         };

         class A6Q_1DamperFrontWheelL {
            type = "translationY";
            source = "damper";
            selection = "levy predni tlumic";
            axis = "";
            minValue = -2;
            maxValue = 2.000000;
            angle0 = 0;
            angle1 = 35;
            memory = 1;
         };

         class A6Q_1DamperRearWheelR {
            type = "translationY";
            source = "damper";
            selection = "pravy zadni tlumic";
            axis = "";
            minValue = -2;
            maxValue = 2.000000;
            angle0 = 0;
            angle1 = 35;
            memory = 1;
         };

         class A6Q_1DamperRearWheelL {
            type = "translationY";
            source = "damper";
            selection = "levy zadni tlumic";
            axis = "";
            minValue = -2;
            maxValue = 2.000000;
            angle0 = 0;
            angle1 = 35;
            memory = 1;
         };

         class A6Q_1FrontWheelR {
            type = "rotationX";
            source = "wheel";
            selection = "pravy predni";
            axis = "";
            memory = 1;
            sourceAddress = "loop";
            minValue = 0;
            maxValue = 1;
            angle0 = 0;
            angle1 = "rad -360";
         };

         class A6Q_1FrontWheelL {
            type = "rotationX";
            source = "wheel";
            selection = "levy predni";
            axis = "";
            memory = 1;
            sourceAddress = "loop";
            minValue = 0;
            maxValue = 1;
            angle0 = 0;
            angle1 = "rad -360";
         };

         class A6Q_1RearWheelR {
            type = "rotationX";
            source = "wheel";
            selection = "pravy zadni";
            axis = "";
            memory = 1;
            sourceAddress = "loop";
            minValue = 0;
            maxValue = 1;
            angle0 = 0;
            angle1 = "rad -360";
         };

         class A6Q_1RearWheelL {
            type = "rotationX";
            source = "wheel";
            selection = "levy zadni";
            axis = "";
            memory = 1;
            sourceAddress = "loop";
            minValue = 0;
            maxValue = 1;
            angle0 = 0;
            angle1 = "rad -360";
         };

         class A6Q_1FrontWheelRTurn {
            type = "rotationY";
            source = "drivingWheel";
            selection = "pravy predni";
            axis = "";
            memory = 1;
            sourceAddress = "clamp";
            minValue = -1;
            maxValue = 1;
            angle0 = "rad 35";
            angle1 = "rad -35";
         };

         class A6Q_1FrontWheelLTurn {
            type = "rotationY";
            source = "drivingWheel";
            selection = "levy predni";
            axis = "";
            memory = 1;
            sourceAddress = "clamp";
            minValue = -1;
            maxValue = 1;
            angle0 = "rad 35";
            angle1 = "rad -35";
         };

         class A6Q_1DrivingWheel {
            type = "rotation";
            source = "drivingWheel";
            selection = "volant";
            axis = "osavolantkon";
            memory = 0;
            angle0 = "rad 180";
            angle1 = "rad -180";
            minValue = -1;
            maxValue = 1;
         };

         class A6Q_1IndicatorSpeed {
            type = "rotation";
            source = "speed";
            memory = 0;
            selection = "ukaz_rychlo";
            axis = "osa_rychlo";
            angle0 = 0;
            angle1 = "rad +240";
            minValue = 0;
            maxValue = 30;
         };

         class A6Q_1IndicatorRPM {
            type = "rotation";
            source = "rpm";
            memory = 0;
            selection = "ukaz_rpm";
            axis = "osa_rpm";
            angle0 = 0;
            angle1 = "rad 270";
            minValue = 0;
            maxValue = 1.500000;
         };
      };
   };

   class A6Q: A6Q_1 {
   };
};

class CfgVehicles {
   /*extern*/ class Land;

   class LandVehicle: Land {
   };

   class Car: LandVehicle {
   };

   class Car_sedan: Car {
   };

   class A6Q: Car_sedan {
      scope = 2;
      vehicleClass = "PTJSAJVehicles";

      class AnimationSources {

         class rotat {
            source = "user";
            animPeriod = 0.250000;
            initPhase = 0;
         };

         class sw {
            source = "user";
            animPeriod = 0.001000;
            initPhase = 0;
         };
      };

      class UserActions {

         class RotacionOn {
            displayName = "Turn On Rotation Light";
            icon = "\a6q\icons\rotacon.paa";
            onlyForPlayer = 0;
            position = "mainrotac";
            radius = 3;
            condition = "this animationPhase "sw" < 0.5 and player in this";
            statement = "[this,0,1] exec "\a6q\scripts\rotacija.sqs"";
         };

         class RotacionOff {
            displayName = "Turn Off Rotation Light";
            icon = "\a6q\icons\rotacon.paa";
            onlyForPlayer = 0;
            position = "mainrotac";
            radius = 3;
            condition = "this animationPhase "sw" > 0.5 and player in this";
            statement = "[this,0,1] exec "\a6q\scripts\rotacijaoff.sqs"";
         };
      };
      side = 1;
      displayName = "Audi A6 Quatro";
      driverIsCommander = 1;
      forceHideGunner = 1;
      model = "\A6Q\A6Q.p3d";
      soundEngine = {"\ca\wheeled\Data\Sound\Mini_3", "db-35", 1};
      crew = "BIA";
      picture = "\A6Q\icons\audi_a6_ca.paa";
      Icon = "\A6Q\icons\inaudi_a6_ca.paa";
      transportSoldier = 3;
      selectionBrakeLights = "brzdove svetlo";

      class Hitglass {
         armor = 0.500000;
         material = -1;
         name = "glass";
         visual = "glass";
         passThrough = 0;
      };

      class HitKaroseria {
         armor = 0.500000;
         material = "mat";
         name = "karoserie";
         visual = "karoserie";
         passThrough = 0;
      };

      class HitTocakLeviPrednji {
         armor = 0.400000;
         material = "mat";
         name = "levy predni";
         visual = "levy predni";
         passThrough = 0;
      };

      class HitTocakLeviZadnji {
         armor = 0.400000;
         material = "mat";
         name = "levy zadni";
         visual = "levy zadni";
         passThrough = 0;
      };

      class HitTocakDesniPrednji {
         armor = 0.400000;
         material = "mat";
         name = "pravy predni";
         visual = "pravy predni";
         passThrough = 0;
      };

      class HitTocakDesniZadnji {
         armor = 0.400000;
         material = "mat";
         name = "pravy zadni";
         visual = "pravy zadni";
         passThrough = 0;
      };
      dammageHalf = {"\A6Q\data\glass_ca.paa", "\A6Q\data\glass_ca_1.paa", "\A6Q\data\interior.paa", "\A6Q\data\interior_1.paa", "\A6Q\data\exterior.paa", "\A6Q\data\exterior_1.paa", "\A6Q\data\tyre.paa", "\A6Q\data\tyre_1.paa"};
      dammageFull = {"\A6Q\data\glass_ca.paa", "\A6Q\data\glass_ca_2.paa", "\A6Q\data\interior.paa", "\A6Q\data\interior_2.paa", "\A6Q\data\exterior.paa", "\A6Q\data\exterior_2.paa", "\A6Q\data\tyre.paa", "\A6Q\data\tyre_2.paa"};

      class Reflectors {

         class Left {
            color = {0.900000, 0.800000, 0.800000, 1};
            ambient = {0.100000, 0.100000, 0.100000, 1};
            position = "L svetlo";
            direction = "konec L svetla";
            hitpoint = "L svetlo";
            selection = "L svetlo";
            size = 0.500000;
            brightness = 0.250000;
         };

         class Right {
            color = {0.900000, 0.800000, 0.800000, 1};
            ambient = {0.100000, 0.100000, 0.100000, 1};
            position = "P svetlo";
            direction = "konec P svetla";
            hitpoint = "P svetlo";
            selection = "P svetlo";
            size = 0.500000;
            brightness = 0.250000;
         };
      };
      magazines = {};
      maxSpeed = 240;
      driverAction = "Hilux_Driver";
      getInAction = "getInCar";
      getOutAction = "getOutCar";
      audible = 3;
      coefInside = 2;
      coefInsideHeur = 4.300000;
      cargoAction = {"uaz_cargo01"};
      armor = 30;
      insideSoundCoef = 0.400000;
      noseDownCoef = 0.025000;
      brakeDistance = 6;

      class Exhausts {

         class Exhaust1 {
            position = "vyfuk start";
            direction = "vyfuk konec";
            effect = "ExhaustsEffect";
         };

         class Exhaust2 {
            position = "vyfuk start1";
            direction = "vyfuk konec1";
            effect = "ExhaustsEffect";
         };
      };
      fuelCapacity = 200;
   };
};
« Last Edit: March 20, 2008, 11:49:31 am by [TKC]MurdaFace »