Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Vehicle classes */
- class CfgVehicles {
- /* A3 DEFAULT INHERITANCE TREE START */
- // Do not modify the inheritance tree, unless you want to alter game's internal configs, or REALLY know what you're doing.
- class LandVehicle;
- class Tank: LandVehicle {
- class NewTurret;
- class Sounds;
- class HitPoints;
- };
- class Tank_F: Tank {
- class Turrets {
- class MainTurret:NewTurret {
- class Turrets {
- class CommanderOptics;
- };
- };
- };
- class AnimationSources;
- class ViewPilot;
- class ViewOptics;
- class ViewCargo;
- class HeadLimits;
- class HitPoints: HitPoints {
- class HitHull;
- class HitEngine;
- class HitLTrack;
- class HitRTrack;
- };
- class Sounds: Sounds {
- class Engine;
- class Movement;
- };
- };
- /* A3 DEFAULT INHERITANCE TREE END */
- /* Base class */
- // Include as many unique defines and classes common for all your vehicle classes as possible.
- class PLZ05_base: Tank_F {
- // Basic defines: vehicle class in editor, name displayed, knowledge required to recognize this type of target
- // vehicleClass = "Armored";
- displayName = "PLZ05";
- // accuracy = 0.3;
- mapSize=11.62;
- // Model and look defines: paths to model, squad picture and map icon
- model = "\PLZ05\PLZ05";
- picture = "\A3\armor_f_gamma\MBT_02\Data\UI\MBT_02_Base_ca.paa";
- icon = "\A3\armor_f_gamma\MBT_02\Data\UI\map_MBT_02_ca.paa";
- features="Randomization: No <br />Camo selections: 4 - hull, main turret, accessories, RCWS turret <br />Script door sources: None <br />Script animations: None <br />Executed scripts: None <br />Firing from vehicles: No <br />Slingload: No <br />Cargo proxy indexes: None";
- editorSubcategory="EdSubcat_Artillery";
- #include "physx.hpp"
- weaponsGroup1=2;
- weaponsGroup2="1 + 4";
- weaponsGroup3="8 + 16 + 32";
- weaponsGroup4="64 + 128";
- // AI references
- unitInfoType="RscUnitInfoArtillery";
- transportSoldier=0;
- armor=425;
- armorStructural=4.5;
- artilleryScanner=1;
- availableForSupportTypes[]=
- {
- "Artillery"
- };
- class HitPoints: HitPoints {
- class HitHull: HitHull { // Handle internal damage
- armor=0.8;
- material=-1;
- name="telo";
- visual="zbytek";
- passThrough=1;
- minimalHit = 0.14;
- explosionShielding = 2.0;
- radius = 0.25;
- };
- class HitEngine: HitEngine {
- armor=1;
- material=-1;
- name="motor";
- passThrough=0.8;
- minimalHit = 0.24;
- explosionShielding = 1;
- radius = 0.33;
- };
- class HitLTrack: HitLTrack {
- armor=0.5;
- material=-1;
- name="pas_L";
- passThrough=0;
- minimalHit = 0.08;
- explosionShielding = 1.44;
- radius = 0.3;
- };
- class HitRTrack: HitRTrack {
- armor=0.5;
- material=-1;
- name="pas_P";
- passThrough=0;
- minimalHit = 0.08;
- explosionShielding = 1.44;
- radius = 0.3;
- };
- };
- class Turrets: Turrets {
- class MainTurret: MainTurret {
- class Turrets: Turrets {
- class CommanderOptics: CommanderOptics {
- // Animation class
- body = "obsTurret";
- gun = "obsGun";
- // Animation source
- animationSourceBody = "obsTurret";
- animationSourceGun = "obsGun";
- // Servos
- maxHorizontalRotSpeed = 3.6; // 1 = 45°/sec
- maxVerticalRotSpeed = 3.6; // 1 = 45°/sec
- stabilizedInAxes = StabilizedInAxesBoth;
- soundServo[]= {"A3\Sounds_F\vehicles\armor\noises\servo_best", db-40, 1.0,50};
- minElev=-05;
- maxElev=+80;
- initElev=0;
- minTurn=-360;
- maxTurn=+360;
- initTurn=0;
- // Weapon and magazines
- memoryPointGun = "usti hlavne2";
- gunBeg = "usti hlavne1";
- gunEnd = "konec hlavne1";
- weapons[] = { SmokeLauncher}; // you may need different weapon class to provide firing effects emit from proper position.
- magazines[] = {SmokeLauncherMag};
- // FCS
- turretInfoType = "RscWeaponRangeZeroing";
- discreteDistance[] = {100,200,300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500};
- discreteDistanceInitIndex = 2;
- // Optics view
- memoryPointGunnerOutOptics = "commanderview";
- memoryPointGunnerOptics= "commanderview";
- gunnerOpticsModel = "\A3\weapons_f\reticle\Optics_Commander_02_F";
- gunnerOutOpticsModel = ""; // leave "" to disable optics view
- gunnerOpticsEffect[] = {}; // post processing effets
- gunnerHasFlares = 1; // flare visual effect when looking at light source
- class ViewOptics: ViewOptics {
- initAngleX=0;
- minAngleX=-30;
- maxAngleX=+30;
- initAngleY=0;
- minAngleY=-100;
- maxAngleY=+100;
- // Field of view values: 1 = 120°
- initFov=0.155;
- minFov=0.034;
- maxFov=0.155;
- visionMode[] = {"Normal","TI"};
- thermalMode[] = {0,1};
- };
- // Gunner operations
- gunnerAction = "Gunner_APC_tracked_02_aa_F_out";
- gunnerInAction = "Gunner_APC_tracked_02_aa_F_in";
- gunnerGetInAction = GetInHigh;
- gunnerGetOutAction = GetOutHigh;
- startEngine = 0; // Turning this turret should not turn engine on.
- viewGunnerInExternal = 1; // Needed to make gunner possible to be killed with penetrating rounds.
- outGunnerMayFire = 1; // Turn off to make player able to look around freely outside optics view.
- inGunnerMayFire = 1; // Turn off to make player able to look around freely outside optics view.
- class HitPoints {
- class HitTurret {
- armor = 0.3;
- material = -1;
- name = "vezVelitele";
- visual="vezVelitele";
- passThrough = 0;
- minimalHit = 0.03;
- explosionShielding = 0.6;
- radius = 0.25;
- };
- class HitGun {
- armor = 0.3;
- material = -1;
- name = "zbranVelitele";
- visual="zbranVelitele";
- passThrough = 0;
- minimalHit = 0.03;
- explosionShielding = 0.6;
- radius = 0.25;
- };
- };
- };
- };
- animationSourceHatch="hatchCommander";
- gunnerAction="Gunner_MBT_02_arty_F_out";
- gunnerInAction="Gunner_MBT_02_arty_F_in";
- selectionFireAnim="";
- gunBeg="Usti hlavne3";
- gunEnd="Konec hlavne3";
- weapons[]=
- {
- "mortar_155mm_AMOS"
- };
- magazines[]=
- {
- "32Rnd_155mm_Mo_shells_O",
- "2Rnd_155mm_Mo_guided_O",
- "6Rnd_155mm_Mo_mine_O",
- "2Rnd_155mm_Mo_Cluster_O",
- "6Rnd_155mm_Mo_smoke_O",
- "4Rnd_155mm_Mo_LG_O",
- "6Rnd_155mm_Mo_AT_mine_O"
- };
- soundServo[]=
- {
- "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner",
- 0.15848932,
- 1,
- 50
- };
- soundServoVertical[]=
- {
- "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner_vertical",
- 0.15848932,
- 1,
- 50
- };
- minElev=-5;
- maxElev=80;
- initElev=10;
- maxCamElev=30;
- elevationMode=3;
- maxHorizontalRotSpeed=0.77999997;
- maxVerticalRotSpeed=0.25999999;
- memoryPointGunnerOptics="gunnerview";
- cameraDir="look";
- turretInfoType="RscWeaponRangeArtilleryAuto";
- gunnerForceOptics=0;
- forceHideGunner=0;
- commanding=1;
- class OpticsIn {
- class Wide: ViewOptics {
- initAngleX=0;
- minAngleX=-30;
- maxAngleX=+30;
- initAngleY=0;
- minAngleY=-100;
- maxAngleY=+100;
- initFov=0.3;
- minFov=0.3;
- maxFov=0.3;
- visionMode[] = {"Normal","NVG"};
- thermalMode[] = {4,5}; //red hot chilli
- gunnerOpticsModel = "\A3\Weapons_F\Reticle\Optics_Gunner_MTB_02_w_F.p3d";
- gunnerOpticsEffect[] = {};
- };
- class Medium: Wide {
- gunnerOpticsModel = "\A3\Weapons_F\Reticle\Optics_Gunner_MTB_02_m_F.p3d";
- initFov=0.07;
- minFov=0.07;
- maxFov=0.07;
- };
- class Narrow: Wide {
- gunnerOpticsModel = "\A3\Weapons_F\Reticle\Optics_Gunner_MTB_02_n_F.p3d";
- initFov=0.028;
- minFov=0.028;
- maxFov=0.028;
- };
- };
- class HitPoints {
- class HitTurret {
- armor = 0.8;
- material = -1;
- name = "vez";
- visual="vez";
- passThrough = 0;
- minimalHit = 0.02;
- explosionShielding = 0.3;
- radius = 0.25;
- };
- class HitGun {
- armor = 0.3;
- material = -1;
- name = "zbran";
- visual="";
- passThrough = 0;
- minimalHit = 0;
- explosionShielding = 1;
- radius = 0.25;
- };
- };
- };
- };
- driverOpticsModel="\A3\weapons_f\reticle\optics_empty";
- viewDriverInExternal=1;
- LODDriverTurnedOut=0;
- driverInfoPanelCameraPos="driverview";
- driverAction="Driver_MBT_03_cannon_F_out";
- driverInAction="Driver_MBT_03_cannon_F_in";
- driverLeftHandAnimName="drivewheel";
- driverRightHandAnimName="drivewheel";
- driverLeftLegAnimName="pedal_brake";
- driverRightLegAnimName="pedal_thrust";
- /* RETEXTURABILITY */
- /*
- hiddenSelections[] ={"Camo1","Camo2"};
- hiddenSelectionsTextures[] = {"A3\armor_f_gamma\MBT_01\Data\MBT_01_body_CO.paa","A3\armor_f_gamma\MBT_01\Data\MBT_01_tow_CO.paa"};
- */
- class AnimationSources : AnimationSources
- {
- class muzzle_rot_cannon {source = "ammorandom"; weapon = "autocannon_35mm";};
- class recoil_source {source = "reload"; weapon = "autocannon_35mm";};
- };
- // Damage textures - for sections: zbytek, vez, zbran, vezVelitele, zbranVelitele,
- class Damage {
- tex[] = {};
- mat[] = {
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_damage.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_destruct.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_body.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_body_damage.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_body_destruct.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_tracks.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_tracks_damage.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_tracks_destruct.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_turret.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_turret_damage.rvmat",
- "A3\Armor_F_Gamma\MBT_02\Data\MBT_02_turret_destruct.rvmat",
- "A3\Armor_F_Gamma\MBT_01\Data\MBT_01_scorcher.rvmat",
- "A3\Armor_F_Gamma\MBT_01\Data\MBT_01_scorcher_damage.rvmat",
- "A3\Armor_F_Gamma\MBT_01\Data\MBT_01_scorcher_destruct.rvmat"
- };
- };
- smokeLauncherGrenadeCount = 8; //Number of smoke shells launched at once
- smokeLauncherVelocity = 14; //Velocity which smoke shells are launched at
- smokeLauncherOnTurret = 1; //0 if smoke launchers are on hull, 1 if on turret
- smokeLauncherAngle = 120; //Angle within which smoke grenades are launched (actual spacing may end up smaller so use slighty higher number)
- class ViewOptics: ViewOptics {
- visionMode[] = {"Normal","NVG"};
- };
- class Exhausts {
- class Exhaust1 {
- position = "exhaust";
- direction = "exhaust_dir";
- effect = "ExhaustEffectTankBack";
- };
- };
- class Reflectors {
- class Left {
- color[] = {1900, 1300, 950};
- ambient[] = {5,5,5};
- position = "Light_L";
- direction = "Light_L_end";
- hitpoint = "Light_L";
- selection = "Light_L";
- size = 1;
- innerAngle = 100;
- outerAngle = 179;
- coneFadeCoef = 10;
- intensity = 1; //17.5
- useFlare = 0;
- dayLight = 0;
- flareSize = 1.0;
- class Attenuation {
- start = 1.0;
- constant = 0;
- linear = 0;
- quadratic = 0.25;
- hardLimitStart = 30;
- hardLimitEnd = 60;
- };
- };
- class Right: Left {
- position = "Light_R";
- direction = "Light_R_end";
- hitpoint = "Light_R";
- selection = "Light_R";
- };
- class Right2: Right {
- position = "light_R_flare";
- useFlare = 1;
- };
- class Left2: Left {
- position = "light_L_flare";
- useFlare = 1;
- };
- };
- aggregateReflectors[] = {{"Left","Right","Left2","Right2"}};
- };
- /* Faction variants */
- class O_PLZ05_base: PLZ05_base {
- // Basic defines:knowledge required to recognize this type of target
- accuracy = 0.5;
- // Faction defines: side ID, faction class, crew, typical cargo
- side = 0;
- faction = "BIS_Tutorial";
- crew = "O_crew_F";
- typicalCargo[] = {"O_crew_F"};
- };
- /* Public class */
- class O_PLZ05: O_PLZ05_base {
- scope = 2;
- scopeCurator = 2; // 2 means available from Zeus, whereas 0 means hidden
- // Editor displayname
- accuracy = 1000; // accuracy > 4 is not possible to be fully recognized during game
- displayName = "PLZ05"; // due to above will show only in editor
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement