Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.92 KB | None | 0 0
  1. #define TEast       0
  2. #define TWest       1
  3. #define TGuerrila       2
  4. #define TCivilian       3
  5. #define TSideUnknown        4
  6. #define TEnemy      5
  7. #define TFriendly       6
  8. #define TLogic      7
  9.  
  10. #define private     0
  11. #define protected       1
  12. #define public      2
  13.  
  14. class CfgPatches {
  15.     class inkObjets {
  16.         units[] = {"barriere_chantier","borne_escamotable","Barriere_Chantier_p","ATM","Machine_boisson","barriere_metal"};
  17.         weapons[] = {};
  18.         requiredVersion = 0.1;
  19.         requiredAddons[] = {"ink_cars"};
  20.     };
  21. };
  22.  
  23. class CfgVehicleClasses {
  24.     class Objets {
  25.         displayName = "Ink Objects";
  26.     };
  27. };
  28.  
  29. class CfgFactionClasses {
  30.     class inkobjets {
  31.         displayName = "inkobjets";
  32.         priority = 100;
  33.         side = TCivilian;
  34.     };
  35. };
  36.  
  37. class CfgVehicles {
  38.     class Strategic;    // External class reference
  39.    
  40.     class inkobjets_Strategic_Base : Strategic {
  41.         scope = 2;
  42.         model = "";
  43.         faction = "inkobjets";
  44.         destrType = "DestructNo";
  45.         armor = 1e+011;
  46.         vehicleClass = "Objets";
  47.         displayName = "";
  48.         mapSize = 1;
  49.     };
  50.    
  51.     class inkobjets_Barriere_Chantier: inkobjets_Strategic_Base
  52.     {
  53.         scope=2;
  54.         model="\ink_objets\barriere_chantier\barriere_chantier.p3d";
  55.         displayName="Barriere Chantier";
  56.     };
  57.  
  58.     class inkobjets_Barriere_Chantier_p: inkobjets_Strategic_Base
  59.     {
  60.         scope=2;
  61.         model="\ink_objets\barriere_chantier\barriere_chantier_p.p3d";
  62.         displayName="Barriere Chantier petite";
  63.     };
  64.  
  65.     class inkobjets_ATM: inkobjets_Strategic_Base
  66.     {
  67.         scope=2;
  68.         model="\ink_objets\Accessoires_div\ATM.p3d";
  69.         displayName="Bancomat";
  70.     };
  71.  
  72.     class inkobjets_Machine_boisson: inkobjets_Strategic_Base
  73.     {
  74.         scope=2;
  75.         model="\ink_objets\Accessoires_div\Machine_boisson.p3d";
  76.         displayName="Machine_boissons";
  77.     };
  78.  
  79.     class inkobjets_barriere_metal: inkobjets_Strategic_Base
  80.     {
  81.         scope=2;
  82.         model="\ink_objets\Barriere_decors\barriere_metal.p3d";
  83.         displayName="barriere_metal";
  84.     };
  85.  
  86.     class inkobjets_Barriere_droite_route: inkobjets_Strategic_Base
  87.     {
  88.         scope=2;
  89.         model="\ink_objets\Barriere_decors\Barriere_droite_route.p3d";
  90.         displayName="Barriere droite route longue";
  91.     };
  92.  
  93.     class inkobjets_Barriere_Virage1_route: inkobjets_Strategic_Base
  94.     {
  95.         scope=2;
  96.         model="\ink_objets\Barriere_decors\Barriere_Virage2_route.p3d";
  97.         displayName="Barriere Virage2 route";
  98.     };
  99.  
  100.     class inkobjets_Barriere_Virage2_route: inkobjets_Strategic_Base
  101.     {
  102.         scope=2;
  103.         model="\ink_objets\Barriere_decors\Barriere_Virage1_route.p3d";
  104.         displayName="Barriere Virage1 route";
  105.     };
  106.  
  107.     class inkobjets_Barriere_Virage3_route: inkobjets_Strategic_Base
  108.     {
  109.         scope=2;
  110.         model="\ink_objets\Barriere_decors\Barriere_Virage3_route.p3d";
  111.         displayName="Barriere Virage3 route";
  112.     };
  113.  
  114.     class inkobjets_Barriere_Virage4_route: inkobjets_Strategic_Base
  115.     {
  116.         scope=2;
  117.         model="\ink_objets\Barriere_decors\Barriere_Virage4_route.p3d";
  118.         displayName="Barriere Virage4 route";
  119.     };
  120.  
  121.     class inkobjets_Barriere_Virage5_route: inkobjets_Strategic_Base
  122.     {
  123.         scope=2;
  124.         model="\ink_objets\Barriere_decors\Barriere_Virage5_route.p3d";
  125.         displayName="Barriere Virage5 route";
  126.     };
  127.  
  128.     class inkobjets_Barriere_Virage6_route: inkobjets_Strategic_Base
  129.     {
  130.         scope=2;
  131.         model="\ink_objets\Barriere_decors\Barriere_Virage6_route.p3d";
  132.         displayName="Barriere Virage int6 route";
  133.     };
  134.  
  135.     class inkobjets_Barriere_Virage7_route: inkobjets_Strategic_Base
  136.     {
  137.         scope=2;
  138.         model="\ink_objets\Barriere_decors\Barriere_Virage7_route.p3d";
  139.         displayName="Barriere Virage int7 route";
  140.     };
  141.  
  142.     class inkobjets_Barriere_Virage8_route: inkobjets_Strategic_Base
  143.     {
  144.         scope=2;
  145.         model="\ink_objets\Barriere_decors\Barriere_Virage8_route.p3d";
  146.         displayName="Barriere Virage int8 route";
  147.     };
  148.  
  149.     class inkobjets_Barriere_Virage9_route: inkobjets_Strategic_Base
  150.     {
  151.         scope=2;
  152.         model="\ink_objets\Barriere_decors\Barriere_Virage9_route.p3d";
  153.         displayName="Barriere Virage int9 route";
  154.     };
  155.  
  156.     class inkobjets_Barriere_Virage10_route: inkobjets_Strategic_Base
  157.     {
  158.         scope=2;
  159.         model="\ink_objets\Barriere_decors\Barriere_Virage10_route.p3d";
  160.         displayName="Barriere Virage int10 route";
  161.     };
  162.  
  163.     class inkobjets_Barriere_droite_fin2_route: inkobjets_Strategic_Base
  164.     {
  165.         scope=2;
  166.         model="\ink_objets\Barriere_decors\Barriere_droite_fin2.p3d";
  167.         displayName="Barriere droite fin2";
  168.     };
  169.  
  170.     class inkobjets_Barriere_droite_fin1_route: inkobjets_Strategic_Base
  171.     {
  172.         scope=2;
  173.         model="\ink_objets\Barriere_decors\Barriere_droite_fin1.p3d";
  174.         displayName="Barriere droite fin1";
  175.     };
  176.  
  177.     class inkobjets_Barriere_droite_fin3_route: inkobjets_Strategic_Base
  178.     {
  179.         scope=2;
  180.         model="\ink_objets\Barriere_decors\Barriere_droite_fin3.p3d";
  181.         displayName="Barriere droite fin3";
  182.     };
  183.  
  184.     class inkobjets_Barriere_droite_fin_route: inkobjets_Strategic_Base
  185.     {
  186.         scope=2;
  187.         model="\ink_objets\Barriere_decors\Barriere_droite_fin.p3d";
  188.         displayName="Barriere droite fin";
  189.     };
  190.  
  191.     class inkobjets_Barriere_bois: inkobjets_Strategic_Base
  192.     {
  193.         scope=2;
  194.         model="\ink_objets\Barriere_decors\Barriere_bois.p3d";
  195.         displayName="Barriere_bois";
  196.     };
  197.  
  198.     class inkobjets_panneaux_pub: inkobjets_Strategic_Base
  199.     {
  200.         scope=2;
  201.         model="\ink_objets\Panneau_pub\panneaux_pub.p3d";
  202.         displayName="Panneau Pub grand";
  203.     };
  204.  
  205.     class inkobjets_borne_escamotabler: inkobjets_Strategic_Base
  206.     {
  207.         scope=2;
  208.         model="\ink_objets\borne_escamotable\borne_escamotable.p3d";
  209.         displayName="borne_escamotable";
  210.         class AnimationSources
  211.         {
  212.             // Animation sources for Bornes
  213.             class Borne_1
  214.             {
  215.                 source = "user"; // "user" = custom source = not controlled by some engine value
  216.                 initPhase = 0; // Initial value of animations based on this source
  217.                 animPeriod = 2; // Coefficient for duration of change of this animation
  218.                 playSound = "Bornemp3"; /// Selects sound class from CfgAnimationSourceSounds that is going to be used for sounds of Bornes
  219.             };
  220.         };
  221.         class UserActions
  222.         {
  223.             class CloseBorne_1
  224.             {
  225.                 displayName = "Ouvrir la Borne"; // Label of the action used in the action menu itself.
  226.                 position = Borne_1_trigger; // Point in Memory lod in p3d around which the action is available.
  227.                 priority = 0.2; // Priority coefficient used for sorting action in the action menu.
  228.                 radius = 2; // Range around the above defined point in which you need to be to access the action.
  229.                 onlyForPlayer = false; // Defines if the action is available only to players or AI as well.
  230.                 condition = "this animationPhase ""Borne_1""< 0.5"; // Condition for showing the action in action menu. In this case it checks if the Borne is closed and if the part of the house in which the Borne is located hasn't been destroyed yet).
  231.                 statement = "this animate [""Borne_1"",1];";
  232.             };
  233.             class OpenBorne_1: CloseBorne_1
  234.             {
  235.                 displayName = "Fermer la Borne";
  236.                 condition = "this animationPhase ""Borne_1"">= 0.5"; // Condition for showing the action in action menu. In this case it checks if the Borne is closed and if the part of the house in which the Borne is located hasn't been destroyed yet).
  237.                 statement = "this animate [""Borne_1"",0];";
  238.             };
  239.         };
  240.     }; 
  241. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement