Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 14.73 KB | None | 0 0
  1. #define _ARMA_
  2.  
  3. //Class mm_bank : config.bin{
  4. class CfgPatches
  5. {
  6.     class PoliceStation
  7.     {
  8.         units[] = {};
  9.         weapons[] = {};
  10.         requiredVersion = 0.1;
  11.         requiredAddons[] = {};
  12.     };
  13. };
  14. class CfgVehicleClasses
  15. {
  16.     class snb_buildings
  17.     {
  18.         displayName = "Australian Buildings";
  19.     };
  20. };
  21. class CfgVehicles
  22. {
  23.     class ruins;
  24.     class HouseBase;
  25.     class House: HouseBase
  26.     {
  27.         class DestructionEffects;
  28.         class AnimationSources;
  29.     };
  30.     class Land_PoliceStation: House
  31.    
  32.     {
  33.         displayName = "Australian Police Station";
  34.         textSingular = "Australian Police Station";
  35.         author = "Mattaust";
  36.         model = "\mm_buildings2\Police_Station\PoliceStation.p3d";
  37.         vehicleClass = "snb_buildings";
  38.         placement = "vertical";
  39.         scope = 1;
  40.         mapSize = 12;
  41.         animated = "true";
  42.         ladders[] = {{ "Ladder_1_start","Ladder_1_end" }};
  43.                 class Reflectors
  44.                 {
  45.                         class Light_1
  46.                         {
  47.                                 color[] = {1000,1000,1200};
  48.                                 ambient[] = {6,5,4};
  49.                                 intensity = 3;
  50.                                 size = 1;
  51.                                 innerAngle = 90;
  52.                                 outerAngle = 360;
  53.                                 coneFadeCoef = 1;
  54.                                 position = "Light1_pos";
  55.                                 direction = "Light1_dir";
  56.                                 hitpoint = "Light1_hitpoint";
  57.                                 selection = "Light_1";
  58.                                 useFlare = 1;
  59.                                 flareSize = 0.8;
  60.                                 flareMaxDistance = 125;
  61.                                 class Attenuation
  62.                                 {
  63.                                         start = 0;
  64.                                         constant = 20;
  65.                                         linear = 0;
  66.                                         quadratic = 0.5;
  67.                                         hardLimitStart = 40;
  68.                                         hardLimitEnd = 60;
  69.                                 };
  70.                         };
  71.                         class Light_2: Light_1
  72.                         {
  73.                                 position = "light2_pos";
  74.                                 direction = "light2_dir";
  75.                                 hitpoint = "light2";
  76.                                 selection = "light_2";
  77.                         };
  78.                         class Light_3: Light_1
  79.                         {
  80.                                 position = "light3_pos";
  81.                                 direction = "light3_dir";
  82.                                 hitpoint = "light3";
  83.                                 selection = "light_3";
  84.                         };
  85.                         class Light_4: Light_1
  86.                         {
  87.                                 position = "light4_pos";
  88.                                 direction = "light4_dir";
  89.                                 hitpoint = "light4";
  90.                                 selection = "light_4";
  91.                         };
  92.                         class Light_5: Light_1
  93.                         {
  94.                                 position = "light5_pos";
  95.                                 direction = "light5_dir";
  96.                                 hitpoint = "light5";
  97.                                 selection = "light_5";
  98.                         };
  99.                         class Light_6: Light_1
  100.                         {
  101.                                 position = "light6_pos";
  102.                                 direction = "light6_dir";
  103.                                 hitpoint = "light6";
  104.                                 selection = "light_6";
  105.                         };
  106.                         class Light_7: Light_1
  107.                         {
  108.                                 position = "light7_pos";
  109.                                 direction = "light7_dir";
  110.                                 hitpoint = "light7";
  111.                                 selection = "light_7";
  112.                         };
  113.                         class Light_8: Light_1
  114.                         {
  115.                                 position = "light8_pos";
  116.                                 direction = "light8_dir";
  117.                                 hitpoint = "light8";
  118.                                 selection = "Light_8";
  119.                         };
  120.                         class Light_9: Light_1
  121.                         {
  122.                                 position = "light9_pos";
  123.                                 direction = "light9_dir";
  124.                                 hitpoint = "light9";
  125.                                 selection = "Light_9";
  126.                         };
  127.                         class Light_10: Light_1
  128.                         {
  129.                                 position = "light10_pos";
  130.                                 direction = "light10_dir";
  131.                                 hitpoint = "light10";
  132.                                 selection = "Light_10";
  133.                         };
  134.                 };
  135.                 aggregateReflectors[] = {{ "Light_1;Light_2;Light_3;Light_4;Light_5;Light_6;Light_7;Light_8;Light_9;Light_10" }};
  136.                 class AnimationSources: AnimationSources
  137.                 {
  138.                         class Zeroanimation
  139.                         {
  140.                                 source = "user";
  141.                                 animPeriod = 0;
  142.                                 initPhase = 0;
  143.                         };
  144.                         class oneanimation
  145.                         {
  146.                                 source = "user";
  147.                                 animPeriod = 5;
  148.                                 initPhase = 0;
  149.                         };
  150.                 };
  151.                 class UserActions
  152.                 {
  153.                         class Auto_Open
  154.                         {
  155.                                 displayName = "Open Door";
  156.                                 position = "Auto_Open";
  157.                                 radius = 3;
  158.                                 onlyForplayer = "true";
  159.                                 condition = "this animationPhase ""gatedoor_2"" < 0.5";
  160.                                 statement = "this animate [""gatedoor_1"", -1.6];this animate [""gatedoor_2"", 1.6]";
  161.                         };
  162.                             class Close_Auto
  163.                         {
  164.                                 displayName = "Close Door";
  165.                                 position = "Auto_Open";
  166.                                 radius = 3;
  167.                                 onlyForplayer = "true";
  168.                                 condition = "this animationPhase ""gatedoor_2"" > 0.5";
  169.                                 statement = "this animate [""gatedoor_1"", 0];this animate [""gatedoor_2"", 0]";
  170.                         };
  171.                         class open_door_1
  172.                         {
  173.                                 displayName = "Open Door";
  174.                                 position = "Interact1";
  175.                                 radius = 3;
  176.                                 onlyForplayer = "true";
  177.                                 condition = "((this animationPhase 'Door_1') < 0.5) && ((player getVariable ['copLevel',0]) > 0)";
  178.                                 statement = "this animate [""Door_1"", 1]";
  179.                         };
  180.                         class close_door_1
  181.                         {
  182.                                 displayName = "Close Door";
  183.                                 position = "Interact1";
  184.                                 radius = 3;
  185.                                 onlyForplayer = "true";
  186.                                 condition = "((this animationPhase 'Door_1') == 1) && ((player getVariable ['copLevel',0]) > 0)";
  187.                                 statement = "this animate [""Door_1"", 0]";
  188.                         };
  189.                         class open_door_2
  190.                         {
  191.                                 displayName = "Open Door";
  192.                                 position = "Interact2";
  193.                                 radius = 3;
  194.                                 onlyForplayer = "true";
  195.                                 condition = "((this animationPhase 'Door_2') < 0.5) && ((player getVariable ['copLevel',0]) > 0)";
  196.                                 statement = "this animate [""Door_2"", 1]";
  197.                         };
  198.                         class close_door_2
  199.                         {
  200.                                 displayName = "Close Door";
  201.                                 position = "Interact2";
  202.                                 radius = 3;
  203.                                 onlyForplayer = "true";
  204.                                 condition = "((this animationPhase 'Door_2') == 1) && ((player getVariable ['copLevel',0]) > 0)";
  205.                                 statement = "this animate [""Door_2"", 0]";
  206.                         };
  207.                         class open_door_3
  208.                         {
  209.                                 displayName = "Open Door";
  210.                                 position = "Interact3";
  211.                                 radius = 3;
  212.                                 onlyForplayer = "true";
  213.                                 condition = "((this animationPhase 'Door_3') < 0.5) && ((player getVariable ['copLevel',0]) > 0)";
  214.                                 statement = "this animate [""Door_3"", 1]";
  215.                         };
  216.                         class close_door_3
  217.                         {
  218.                                 displayName = "Close Door";
  219.                                 position = "Interact3";
  220.                                 radius = 3;
  221.                                 onlyForplayer = "true";
  222.                                 condition = "((this animationPhase 'Door_3') == 1) && ((player getVariable ['copLevel',0]) > 0)";
  223.                                 statement = "this animate [""Door_3"", 0]";
  224.                         };
  225.                         class open_door_4
  226.                         {
  227.                                 displayName = "Open Door";
  228.                                 position = "Interact4";
  229.                                 radius = 3;
  230.                                 onlyForplayer = "true";
  231.                                 condition = "((this animationPhase 'Door_4') < 0.5) && ((player getVariable ['copLevel',0]) > 0)";
  232.                                 statement = "this animate [""Door_4"", 1]";
  233.                         };
  234.                         class close_door_4
  235.                         {
  236.                                 displayName = "Close Door";
  237.                                 position = "Interact4";
  238.                                 radius = 3;
  239.                                 onlyForplayer = "true";
  240.                                 condition = "((this animationPhase 'Door_4') == 1) && ((player getVariable ['copLevel',0]) > 0)";
  241.                                 statement = "this animate [""Door_4"", 0]";
  242.                         };
  243.                         class open_door_5
  244.                         {
  245.                                 displayName = "Open Door";
  246.                                 position = "Interact5";
  247.                                 radius = 3;
  248.                                 onlyForplayer = "true";
  249.                                 condition = "((this animationPhase 'Door_5') < 0.5) && ((player getVariable ['copLevel',0]) > 0)";
  250.                                 statement = "this animate [""Door_5"", 1]";
  251.                         };
  252.                         class close_door_5
  253.                         {
  254.                                 displayName = "Close Door";
  255.                                 position = "Interact5";
  256.                                 radius = 3;
  257.                                 onlyForplayer = "true";
  258.                                 condition = "((this animationPhase 'Door_5') == 1) && ((player getVariable ['copLevel',0]) > 0)";
  259.                                 statement = "this animate [""Door_5"", 0]";
  260.                         };
  261.                         class open_door_6
  262.                         {
  263.                                 displayName = "Open Door";
  264.                                 position = "Interact6";
  265.                                 radius = 3;
  266.                                 onlyForplayer = "true";
  267.                                 condition = "((this animationPhase 'Door_6') < 0.5) && ((player getVariable ['copLevel',0]) > 0)";
  268.                                 statement = "this animate [""Door_6"", 1]";
  269.                         };
  270.                         class close_door_6
  271.                         {
  272.                                 displayName = "Close Door";
  273.                                 position = "Interact6";
  274.                                 radius = 3;
  275.                                 onlyForplayer = "true";
  276.                                 condition = "((this animationPhase 'Door_6') == 1) && ((player getVariable ['copLevel',0]) > 0)";
  277.                                 statement = "this animate [""Door_6"", 0]";
  278.                         };
  279.                         class open_door_7
  280.                         {
  281.                                 displayName = "Open Door";
  282.                                 position = "Interact7";
  283.                                 radius = 3;
  284.                                 onlyForplayer = "true";
  285.                                 condition = "((this animationPhase 'Door_7') < 0.5) && ((player getVariable ['copLevel',0]) > 0)";
  286.                                 statement = "this animate [""Door_7"", 1]";
  287.                         };
  288.                         class close_door_7
  289.                         {
  290.                                 displayName = "Close Door";
  291.                                 position = "Interact7";
  292.                                 radius = 3;
  293.                                 onlyForplayer = "true";
  294.                                 condition = "((this animationPhase 'Door_7') == 1) && ((player getVariable ['copLevel',0]) > 0)";
  295.                                 statement = "this animate [""Door_7"", 0]";
  296.                         };
  297.                         class open_door_8
  298.                         {
  299.                                 displayName = "Open Garage";
  300.                                 position = "Interact8";
  301.                                 radius = 5;
  302.                                 onlyForplayer = "true";
  303.                                 condition = "((this animationPhase 'Door_8') < 0.5) && ((player getVariable ['copLevel',0]) > 0)";
  304.                                 statement = "this animate [""Door_8"", 1]";
  305.                         };
  306.                         class close_door_8
  307.                         {
  308.                                 displayName = "Close Garage";
  309.                                 position = "Interact8";
  310.                                 radius = 5;
  311.                                 onlyForplayer = "true";
  312.                                 condition = "((this animationPhase 'Door_8') == 1) && ((player getVariable ['copLevel',0]) > 0)";
  313.                                 statement = "this animate [""Door_8"", 0]";
  314.                         };
  315.         };
  316.     };
  317. };
  318. //};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement