Guest User

Untitled

a guest
May 29th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. class CfgPatches
  2. {
  3. class CyberByte_McDonalds
  4. {
  5. units[] = {"Land_CyberByte_McDonalds"};
  6. weapons[] = {};
  7. requiredVersion = 1.0;
  8. requiredAddons[] = {};
  9. };
  10. };
  11.  
  12. class CfgVehicleClasses {
  13.  
  14. class Derek_Extras {
  15. displayName = "Derek_Extras";
  16. };
  17. };
  18.  
  19. class CfgVehicles
  20. {
  21. class HouseBase;
  22. class House_f: HouseBase
  23. {
  24. class AnimationSources;
  25. };
  26.  
  27. class Land_CyberByte_McDonalds: House_f
  28. {
  29. vehicleClass = "Derek_Extras";
  30. model="\CB_McDonalds\CyberByte_McDonalds.p3d";
  31. scope=2;
  32. displayName="McDonalds";
  33. armor=999999;
  34.  
  35. class AnimationSources
  36. {
  37. class door
  38. {
  39. source="dooropen";
  40. animPeriod = 0.8;
  41. };
  42. class door_2
  43. {
  44. source="interact2";
  45. animPeriod = 0.8;
  46. };
  47. class window1
  48. {
  49. source="interact3";
  50. animPeriod = 0.5;
  51. };
  52. };
  53. class UserActions
  54. {
  55. class open_door_1
  56. {
  57. displayName = "Open Door";
  58. position = "dooropen";
  59. radius = 3;
  60. onlyForplayer = "true";
  61. condition = "((this animationPhase 'door') < 0.5)";
  62. statement = ([this, 'door'] execVM "\CB_McDonalds\Scripts\DoorNoHandle_open.sqf");
  63. };
  64. class close_door_1
  65. {
  66. displayName = "Close Door";
  67. position = "dooropen";
  68. radius = 3;
  69. onlyForplayer = "true";
  70. condition = "((this animationPhase 'door') == 1)";
  71. statement = ([this, 'door'] execVM "\CB_McDonalds\Scripts\DoorNoHandle_close.sqf");
  72. };
  73. class SlideOpenG1
  74. {
  75. displayName = "Open Door";
  76. position = "Interact2";
  77. radius = 3;
  78. onlyForplayer = "true";
  79. condition = "this animationPhase ""door_2"" < 0.5";
  80. statement = ([this, 'door_2'] execVM "\CB_McDonalds\Scripts\DoorNoHandle_open.sqf");
  81. };
  82. class SlideCloseG1
  83. {
  84. displayName = "Close Door";
  85. position = "Interact2";
  86. radius = 3;
  87. onlyForplayer = "true";
  88. condition = "this animationPhase ""door_2"" > 0.5";
  89. statement = ([this, 'door_2'] execVM "\CB_McDonalds\Scripts\DoorNoHandle_close.sqf");
  90. };
  91. class SlideOpenG2
  92. {
  93. displayName = "Open Window";
  94. position = "Interact3";
  95. radius = 3;
  96. onlyForplayer = "true";
  97. condition = "this animationPhase ""window1"" < 0.5";
  98. statement = "this animate [""window1"", 3.2]";
  99. };
  100. class SlideCloseG2
  101. {
  102. displayName = "Close Window";
  103. position = "Interact3";
  104. radius = 3;
  105. onlyForplayer = "true";
  106. condition = "this animationPhase ""window1"" > 0.5";
  107. statement = "this animate [""window1"", 0]";
  108. };
  109. };
  110.  
  111.  
  112.  
  113. };
  114. };
Add Comment
Please, Sign In to add comment