Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 14th, 2010 | Syntax: C++ | Size: 13.99 KB | Hits: 48 | Expires: Never
Copy text to clipboard
  1. //BTR-70 Config by Thunderbird84 for Manfred/Project'85
  2.  
  3. #define true    1
  4. #define false   0
  5.  
  6. #define private         0
  7. #define protected       1
  8. #define public          2
  9.  
  10. #define TEast           0
  11. #define TWest           1
  12. #define TGuerrila       2
  13. #define TCivilian       3
  14. #define TSideUnknown    4
  15. #define TEnemy          5
  16. #define TFriendly       6
  17. #define TLogic          7
  18.  
  19. #define VSoft           0
  20. #define VArmor          1
  21. #define VAir            2
  22.  
  23. #define LockNo          0
  24. #define LockCadet       1
  25. #define LockYes         2
  26.  
  27. #define ReadAndWrite            0
  28. #define ReadAndCreate           1
  29. #define ReadOnly                2
  30. #define ReadOnlyVerified        3
  31.  
  32. class CfgPatches
  33. {
  34.         class rhs_btr70
  35.         {
  36.                 units[] = {rhs_btr70};
  37.                 weapons[] = {};
  38.                 requiredVersion = 1.0; 
  39.                 requiredAddons[] = {};
  40.         };
  41. };
  42.  
  43. class CfgVehicleClasses
  44. {
  45.         class MNF_vehicles
  46.         {
  47.                 displayname= "MNF Vehicles";
  48.         };
  49. };
  50.  
  51. /*******************************************************************************
  52. * CfgMovesBasic : spawns the animation classes                                 *
  53. *******************************************************************************/
  54. class CfgMovesBasic
  55. {
  56.     class DefaultDie;
  57.     class ManActions
  58.     {
  59.         rhs_btr70_driver = "rhs_btr70_driver";
  60.                 rhs_btr70_gunner = "rhs_btr70_gunner";
  61.     };
  62. };
  63. /*******************************************************************************
  64. * CfgMovesMaleSdr defines the classes of crew animations                       *
  65. * inherits from CfgMovesBasic                                                  *
  66. *******************************************************************************/
  67. class CfgMovesMaleSdr : CfgMovesBasic
  68. {
  69.     class States
  70.     {
  71.         class Crew; //External Inheritance class
  72.         class rhs_btr70_driver : Crew
  73.         {
  74.             file = "\rhs_btr70\anims\driver.rtm"; // path to anim
  75.         };
  76.                 class rhs_btr70_gunner : Crew
  77.         {
  78.             file = "\rhs_btr70\anims\gunner.rtm"; // path to anim
  79.         };
  80.     };
  81. };
  82.  
  83. class CfgVehicles
  84. {
  85.         class LandVehicle;
  86.         class Car : LandVehicle                 // External class reference
  87.         {
  88.                 class AnimationSources;
  89.                 class NewTurret;
  90.                 class Turrets
  91.                 {
  92.                         class MainTurret : NewTurret{};
  93.                 };
  94.         };
  95. //      class StrykerBase;              // External class reference
  96. //      class Stryker_ICV_M2;           // External class reference
  97.         class Wheeled_APC : Car{};
  98.         class rhs_btr70: Wheeled_APC
  99.         {
  100.                 scope = 2;
  101.                 side=0;
  102.                 vehicleclass = "MNF_vehicles";
  103.                 displayName = "BTR-70";
  104.                 faction = "RU";
  105.                 Picture = "\rhs_btr70\BTRIcon.paa";
  106.                 Icon = "\rhs_btr70\BTRIcon_MAP.paa";
  107.                 mapSize = 8;
  108.                 nameSound = "APC";
  109.                 accuracy=1.50;
  110.                 maxSpeed = 80;
  111.                 fuelCapacity = 250;
  112.  
  113.                 enableGPS = true;
  114.                 canLock = LockNo;
  115.                 unitInfoType = UnitInfoTank;
  116.  
  117.                 transportSoldier = 0;
  118.                 transportAmmo = 0;
  119.  
  120.                 transportMaxMagazines = 500;
  121.                 transportMaxWeapons = 30;
  122.  
  123.                
  124.  
  125.                 weapons[]={};
  126.                 magazines[]={};
  127.  
  128.                 type=VArmor;
  129. //threat[] VSoft, VArmor, VAir
  130.                 threat[] = {0.5, 0.5, 0.1};
  131.  
  132.                 armor = 140;
  133.                 damageResistance = 03.02432;
  134.                 armorstructural = 2.5;
  135.                 armorGlass=0.5;
  136.                 armorWheels=0.15;
  137.                 armorBody=0.4;
  138.                 armorFuel=1.4;
  139.                 armorLights=0.4;
  140.  
  141.         soundEngine[]={\ca\wheeled\Data\Sound\Brdm_engine_3,db8,0.8};
  142.                 SoundGetIn[]={\ca\wheeled\Data\Sound\Ural_OpenClose,db-45,1};
  143.                 SoundGetOut[]={\ca\wheeled\Data\Sound\Ural_OpenClose,db-50,1};
  144.                 SoundGear[]={\ca\wheeled\Data\Sound\shifter_v4,db-80,1};
  145.                 SoundCrash[]={\ca\wheeled\Data\Sound\Brdm_crash,db-5,1};
  146.                 SoundEnviron[]={\ca\wheeled\Data\Sound\noise,db-50,0.25};
  147.  
  148.                 model = "\rhs_btr70\mnf_btr70.p3d";
  149.                 //hiddenSelections[]=
  150.                 //{
  151.                         //"n1","n2","n3","n4","n5","n6",
  152. //                      "poklop_commander",
  153. //                      "poklop_driver",
  154. //                      "dverel",
  155. //                      "dverep",
  156. //                      "luk_desant_l",
  157. //                      "luk_desant_p",
  158. //                      "okno_p_1",
  159. //                      "okno_p_2",
  160. //                      "okno_p_3",
  161. //                      "okno_l_1",
  162. //                      "okno_l_2",
  163. //                      "okno_l_3",
  164.                         //"pruh"
  165.                 //};
  166.                 memoryPointTrackFLL = "Stopa PLL";
  167.                 memoryPointTrackFLR = "Stopa PLP";
  168.                 memoryPointTrackBLL = "Stopa ZLL";
  169.                 memoryPointTrackBLR = "Stopa ZLP";
  170.                 memoryPointTrackFRL = "Stopa PPL";
  171.                 memoryPointTrackFRR = "Stopa PPP";
  172.                 memoryPointTrackBRL = "Stopa ZPL";
  173.                 memoryPointTrackBRR = "Stopa ZPP";
  174.                 memoryPointsGetInDriver = "pos driver";
  175.                 memoryPointsGetInDriverDir = "pos driver dir";
  176.                 //memoryPointsGetInCommander = "pos cargo";
  177.                 //memoryPointsGetInCommanderDir = "pos cargo";
  178.                 memoryPointsGetInGunner = "pos gunner";
  179.                 memoryPointsGetInGunnerDir = "pos gunner dir";
  180.                 //memoryPointsGetInCargo = "pos cargo";
  181.                 //memoryPointsGetInCargoDir = "zamerny";
  182.                 //memoryPointsGetInCoDriver = "pos_codriver";
  183.                 //memoryPointsGetInCoDriverDir = "zamerny";
  184.                 selectionBrakeLights = "light_brake";
  185.                 //selectionBackLights = "none";
  186.  
  187.                 class HitEngine { armor = 1.2; material = 60; name = "motor"; visual = "motor"; passThrough = true; };
  188.                 class HitBody   { armor = 0.4; material = 51; name = "karoserie"; visual = "karoserie"; passThrough = true; };
  189.                 class HitFuel   { armor = 1.4; material = 51; name = "palivo"; passThrough = true; };
  190.                
  191.                 class HitRGlass { armor = 0.5; material = -1; name = "sklo predni P"; passThrough = true; };
  192.                 class HitLGlass { armor = 0.5; material = -1; name = "sklo predni L"; passThrough = true; };
  193.  
  194.                 class HitLFWheel {armor=0.2;material=-1;name="Levy predni tlumic";visual="Levy predni";passThrough=0;};
  195.                 class HitRFWheel {armor=0.2;material=-1;name="Pravy predni tlumic";visual="Pravy predni";passThrough=0;};
  196.  
  197.                 class HitLF2Wheel {armor=0.2;material=-1;name="Levy dalsi tlumic";visual="Levy dalsi";passThrough=0;};
  198.                 class HitRF2Wheel {armor=0.2;material=-1;name="Pravy dalsi tlumic";visual="Pravy dalsi";passThrough=0;};
  199.  
  200.                 class HitLMWheel {armor=0.2;material=-1;name="Levy prostredni tlumic";visual="Levy prostredni";passThrough=0;};
  201.                 class HitRMWheel {armor=0.2;material=-1;name="Pravy prostredni tlumic";visual="Pravy prostredni";passThrough=0;};
  202.  
  203.                 class HitLBWheel {armor=0.2;material=-1;name="Levy zadni tlumic";visual="Levy zadni";passThrough=0;};
  204.                 class HitRBWheel {armor=0.2;material=-1;name="Pravy zadni tlumic";visual="Pravy zadni";passThrough=0;};
  205.  
  206.                 wheelCircumference=4.513;
  207.                 turnCoef=5.0;
  208.                 terrainCoef=1.5;
  209.                 steerAheadSimul=0.2;
  210.                 steerAheadPlan=0.3;
  211.                 precision=10;
  212.                 preferRoads=0;
  213.                 //damperSize = 0.3;     // max. damper amplitude
  214.                 //damperForce = 1;      // larger number more stiffness dampers
  215.                 //damperDamping = 1;
  216.                 brakeDistance = 3.0;
  217.                 canfloat = true;
  218.  
  219.                 crew = "RU_Soldier_Crew"; // crew of the vehicle
  220.                 hasGunner = true;
  221.                 hasCommander = false;
  222.                 driverIsCommander = 0;
  223.  
  224.                 //commanderCanSee = 31; //See all
  225.         gunnerCanSee = 31;
  226.         driverCanSee = 31;
  227.  
  228.                 castDriverShadow = 1;
  229.                 castCargoShadow = 1;
  230.                 viewDriverShadow = true;
  231.                 viewGunnerShadow = true;
  232.                 viewCargoShadow = true;
  233.  
  234.                 hideProxyInCombat = 0;
  235.                 forceHideDriver = true;
  236.                 //forceHideGunner = false;
  237.                 //forceHideCommander = false;
  238.  
  239.                 driverAction = "rhs_btr70_driver";
  240.                 driverInAction = "rhs_btr70_driver";
  241.                 //cargoAction[] = {BRDM2_Cargo01,BRDM2_Cargo02};
  242.                 //cargoIsCoDriver[] = {true,false,false,false,false};
  243.  
  244.                 crewVulnerable = false;
  245.                 unloadInCombat = 0;
  246.  
  247.                 memoryPointDriverOptics = "driverview";
  248.                 driverForceOptics = 0;
  249.                 driverOpticsModel = "\rhs_btr70\sights\o915_TNPO170A_sight";
  250.                 driverOpticsColor[] = {1, 1, 1, 1};
  251.                 driverOpticsEffect[] = {
  252.                         "OpticsCHAbera1"
  253.                 };
  254.                
  255.                 class ViewOptics
  256.                 {
  257.                         initFov         = 0.700000;
  258.                         minFov          = 0.700000;
  259.                         maxFov          = 0.700000;
  260.                         initAngleX      = 0;
  261.                         minAngleX       = -110;
  262.                         maxAngleX       = 110;
  263.                         initAngleY      = 0;
  264.                         minAngleY       = -110;
  265.                         maxAngleY       = 110;
  266.                         opticsZoomMin   = 0.700000;
  267.                         opticsZoomMax   = 0.700000;
  268.                         distanceZoomMin = 20;
  269.                         distanceZoomMax = 2000;
  270.                 };
  271.                
  272.                 //animationSourceHatch = "driverHatch";
  273.                
  274.                 class AnimationSources : AnimationSources
  275.                 {
  276.                         class recoil_source
  277.                         {
  278.                                 source = "reload";
  279.                                 weapon = "KPVT";
  280.                         };
  281.                        
  282.                         class driverViewHatch
  283.                         {
  284.                                 source = "user"; //The controller is defined as a user animation.
  285.                 animPeriod = 2;  //The animation period used for this controller.
  286.                 initPhase = 0;   //Initial phase when object is created.
  287.                         };
  288.                        
  289.                         class commanderViewHatch : driverViewHatch {};
  290.                        
  291.                         class l_door : driverViewHatch {};
  292.                         class r_door : l_door {};
  293.                         class windows : l_door {};
  294.                         class t_door_1 : l_door {};
  295.                         class t_door_2 : l_door {};
  296.                         class engineHatches : l_door {};
  297.                         class propDoor : l_door {};
  298.                        
  299.                         // test -- this animate["driverViewHatch",1]; this animate["commanderViewHatch",1]; this animate["driverHatch",1]; this animate["commanderHatch",1]; this animate["l_win_1",1]; this animate["l_win_2",1]; this animate["l_win_3",1]; this animate["r_win_1",1]; this animate["r_win_2",1]; this animate["r_win_3",1]; this animate["t_door_1",1]; this animate["t_door_2",1]; this animate["engineHatches",1]; this animate["propDoor",1]; this animate["l_door",1]; this animate["r_door",1];
  300.                 };
  301.                 class UserActions
  302.         {
  303.             // Lower Suspension
  304.             class openDriverViewHatch
  305.             {
  306.                 displayName = "Open Shield"; // as seen in action menu @see Stringtable
  307.                 position = ""; // memory point of action
  308.                 radius = 5; // distance from memory point
  309.                 condition = "(player == driver this) && (this animationPhase ""driverViewHatch"" < 0.5)"; //
  310.                 statement = "this animate[""driverViewHatch"",1];"; // action of the input
  311.                 onlyForPlayer = true; // only player can perform?
  312.             };
  313.             // Raise Suspension
  314.             class closeDriverViewHatch
  315.             {
  316.                 displayName = "Close Shield"; // as seen in action menu @see Stringtable
  317.                 position = ""; // memory point of action
  318.                 radius = 5; // distance from memory point
  319.                 condition = "(player == driver this) && (this animationPhase ""driverViewHatch"" > 0.5)"; //
  320.                 statement = "this animate[""driverViewHatch"",0];"; // action of the input
  321.                 onlyForPlayer = true; // only player can perform?
  322.             };
  323.         };
  324.                 enableManualFire = 0;
  325.                 commanderUsesPilotView = 1;
  326.                 class Turrets : Turrets
  327.                 {
  328.                         class MainTurretGun : MainTurret
  329.                         {
  330.                                 stabilizedInAxes = "StabilizedInAxesNone";
  331.                                 proxyIndex = 1;
  332.                                 primaryGunner = 1;
  333.                                 primaryObserver = 0;
  334.                                 animationSourceBody = "mainTurret"; // turret
  335.                                 animationSourceGun = "mainGun"; // gun
  336.                                 body = "mainturret";
  337.                                 gun = "maingun";
  338.                                 hasGunner=1;
  339.                                 weapons[] = {KPVT,PKT};
  340.                                 soundServo[]={\ca\wheeled\Data\Sound\servo4, db-52, 1.0};
  341.                                 magazines[] = {500Rnd_145x115_KPVT,1500Rnd_762x54_PKT};
  342.                                 class ViewOptics
  343.                                 {
  344.                                         initAngleX=5; minAngleX=-30; maxAngleX=+30;
  345.                                         initAngleY=0; minAngleY=0; maxAngleY=0;
  346.                                         initFov=0.42; minFov=0.22; maxFov=0.64;
  347.                                 };
  348.                                 //hideProxyInCombat = 0;
  349.                                 viewGunnerInExternal = 1;
  350.                                 gunnerInAction = "rhs_btr70_gunner";
  351.                                 gunnerAction = "rhs_btr70_gunner";
  352.                                 gunnerOpticsModel = "\ca\weapons\2Dscope_BMPgun";
  353.                                 gunnerForceOptics = 1;
  354.                                 outGunnerMayFire = 1;
  355.                                
  356.                                 gunBeg = "usti hlavne"; // endpoint of the gun
  357.                                 gunEnd = "konec hlavne";        // chamber of the gun
  358.                                 memoryPointGun = "kulas"; // gun muzzle
  359.                                 forceHideGunner = 1;
  360.                                 //outGunnerMayFire = 1;
  361.                                 commanding = 1;
  362.                                
  363.                                 //memoryPointsGetInGunner = "pos gunner"; // get in gunner
  364.                                 //memoryPointsGetInGunnerDir = "pos gunner dir"; // direction gunner
  365.                                
  366.                                 minElev = -5;
  367.                                 maxElev = 30;
  368.                                 initElev = 0;
  369.                                 minTurn = -360;
  370.                                 maxTurn = 360;
  371.                                 initTurn = 0;
  372.                                 class Turrets{};
  373.                                 memoryPointGunnerOptics= "gunnerview";
  374.                                 //memoryPointGunnerOutOptics= "";
  375. //                              gunnerOpticsModel = "\ca\Tracked\optika_stryker_gunner";
  376. //                              gunnerOutOpticsModel = "";
  377.                                 gunnerOpticsEffect[] = {
  378.                                         "TankGunnerOptics1",
  379.                                         "WeaponsOptics",
  380.                                         "OpticsCHAbera3"
  381.                                 };
  382.                         };
  383.                         class commanderOptics : NewTurret
  384.                         {
  385.                                 proxyType = "CPCommander";
  386.                                 body = "obsTurret";
  387.                                 gun = "obsGun";
  388.                                 animationSourceBody = "obsTurret";
  389.                                 animationSourceGun = "obsGun";
  390.                                 animationSourceHatch = "commanderHatch";
  391.                                 selectionFireAnim = "";
  392.                                 gunnerOutOpticsShowCursor = 0;
  393.                                 gunnerGetInAction = "GetInHigh";
  394.                                 gunnerGetOutAction = "GetOutHigh";
  395.                                 //gunBeg = "";
  396.                                 //gunEnd = "";
  397.                                 minElev = 0;
  398.                                 maxElev = 0;
  399.                                 initTurn = 0;
  400.                                 minTurn = 0;
  401.                                 maxTurn = 0;
  402.                                 maxHorizontalRotSpeed = 0;
  403.                                 maxVerticalRotSpeed = 0;
  404.                                 proxyIndex = 1;
  405.                                 memoryPointsGetInGunner = "pos commander";
  406.                                 memoryPointsGetInGunnerDir = "pos commander dir";
  407.                                 gunnerName = "Commander";
  408.                                 commanding = 2;
  409.                                 gunBeg = "";
  410.                                 gunEnd = "";
  411.                                 memoryPointGun = "";
  412.                                 memoryPointGunnerOptics = "obsView";
  413.                                 gunnerAction = "AAV_Commander_OUT";
  414.                                 gunnerInAction = "AAV_Commander";
  415.                                 weapons[] = {};
  416.                                 magazines[] = {};
  417.                                 forceHideGunner = false;
  418.                                 hasGunner = 0;
  419.                                 primaryGunner = 0;
  420.                                 primaryObserver = 1;
  421.                                 outGunnerMayFire = 1;
  422.                                 /**
  423.                                  * TNPO-170A Configuration
  424.                                  * Magnification x1
  425.                                  * (0.700000 / 1 = 0.700000)
  426.                                  */
  427.                                 gunnerOpticsModel = "\rhs_btr70\sights\o915_TNPO170A_sight";
  428.                                 gunnerOpticsColor[] = {1, 1, 1, 1};
  429.                                 gunnerForceOptics = 1;
  430.                                 gunnerOpticsEffect[] = {
  431.                                         "OpticsCHAbera1"
  432.                                 };
  433.                                 gunnerOutOpticsEffect[] = {};
  434.                                 gunnerOutOpticsModel = "";
  435.                                 class ViewOptics
  436.                                 {
  437.                                         initAngleX = 0;
  438.                                         minAngleX = -110;
  439.                                         maxAngleX = 110;
  440.                                         initAngleY = 0;
  441.                                         minAngleY = -110;
  442.                                         maxAngleY = 110;
  443.                                         opticsZoomMin = 0.700000;
  444.                                         opticsZoomMax = 0.700000;
  445.                                         distanceZoomMin = 20;
  446.                                         distanceZoomMax = 2000;
  447.                                         initFov = 0.700000;
  448.                                         minFov =  0.700000;
  449.                                         maxFov =  0.700000;
  450.                                 };
  451.                         };
  452.                 };
  453.  
  454.         class Exhausts
  455.                 {
  456.                         class Exhaust1
  457.                         {
  458.                                 position = "vyfuk start";
  459.                                 direction = "vyfuk konec";
  460.                                 effect = "ExhaustsEffect";
  461.                         };
  462.                        
  463.                         class Exhaust2 : Exhaust1
  464.                         {
  465.                                 position = "vyfuk start 2";
  466.                                 direction = "vyfuk konec 2";
  467.                         };
  468.                 };
  469.  
  470.                 class EventHandlers
  471.                 {
  472.                         //init = "[_this select 0] exec {\MNF_BTR70\Scripts\mnf_btr70init.sqs};";
  473.                 };
  474.  
  475.                 //#include "CfgAnimations.hpp"
  476.         };
  477. };