Guest User

Untitled

a guest
Jan 5th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. #include "basicdefines_A3.hpp"
  2. class DefaultEventhandlers;
  3.  
  4.  
  5. class CfgPatches //This configures the identification of the pbo to the game
  6. {
  7. class ARP_Safety
  8. {
  9. units[] = {""};
  10. weapons[] = {""};
  11. requiredVersion = 0.1;
  12. requiredAddons[] = {""};
  13. author[] = {"TheDog88"};
  14. fileName = "ARP_Safety.pbo";
  15. };
  16. };
  17.  
  18. class UniformSlotInfo;
  19.  
  20. class CfgVehicles
  21. {
  22. class Man;
  23. class CAManBase: Man
  24. {
  25. class HitPoints
  26. {
  27. class HitHead;
  28. class HitBody;
  29. class HitHands;
  30. class HitLegs;
  31. };
  32. };
  33.  
  34. class SoldierWB: CAManBase
  35. {
  36. threat[] = {1, 0.1, 0.1};
  37. };
  38.  
  39. };
  40.  
  41. class cfgWeapons
  42. {
  43. class InventoryItem_Base_F;
  44. class ItemCore;
  45.  
  46. class VestItem: InventoryItem_Base_F
  47. {
  48. type = VEST_SLOT; /// vests fit into vest slot
  49. hiddenSelections[] = {}; /// no changeable selections by default
  50. armor = 5*0; /// what protection does the vest provide
  51. passThrough = 1; /// coef of damage passed to total damage
  52. hitpointName = "HitBody"; /// name of hitpoint shielded by the vest
  53. };
  54.  
  55. class Vest_Camo_Base: ItemCore /// base class for vests with changeable textures
  56. {
  57. scope = 0; /// base classes should not be visible in editor
  58. allowedSlots[] = {BACKPACK_SLOT}; /// you should be able to put a vest into backpack
  59. hiddenSelections[] = {"camo"}; /// what selection in model could have different textures
  60.  
  61. class ItemInfo: VestItem
  62. {
  63. hiddenSelections[] = {"camo"}; /// what selection in model could have different textures
  64. LOAD(0,0) /// macro from basicdefines_A3.hpp
  65. };
  66. };
  67.  
  68. class PT_Belt_1: Vest_Camo_Base
  69. {
  70. scope = 2; /// scope needs to be 2 to have a visible class
  71. displayName = "PT Belt 1"; /// how would the stuff be displayed in inventory and on ground
  72. picture = "\A3\characters_f\Data\UI\icon_V_TacVest_blk_CA.paa"; /// this icon fits the vest surprisingly well
  73. model = "ARP_Safety\pt_belt_1.p3d"; /// what model does the vest use
  74. hiddenSelectionsTextures[] = ARP_Safety\data\belt1_yellow_CO.paa"}; /// what texture is going to be used
  75.  
  76. class ItemInfo: ItemInfo
  77. {
  78. uniformModel = "ARP_Safety\pt_belt_1.p3d"; /// what model does the vest use
  79. LOAD(0,0) /// macro from basicdefines_A3.hpp
  80. overlaySelectionsInfo[] = {"ghillie_hide"}; /// name of selections to be hidden while wearing certain uniforms
  81.  
  82. class HitpointsProtectionInfo
  83. {
  84. class Neck
  85. {
  86. hitpointName = "HitNeck"; // reference to the hit point class defined in the man base class
  87. armor = 8; // addition to armor of referenced hitpoint
  88. passThrough = 0.5; // multiplier of base passThrough defined in referenced hitpoint
  89. };
  90. class Arms
  91. {
  92. hitpointName = "HitArms";
  93. armor = 8;
  94. passThrough = 0.5;
  95. };
  96. class Chest
  97. {
  98. hitpointName = "HitChest";
  99. armor = 24;
  100. passThrough = 0.1;
  101. };
  102. class Diaphragm
  103. {
  104. hitpointName = "HitDiaphragm";
  105. armor = 24;
  106. passThrough = 0.1;
  107. };
  108. class Abdomen
  109. {
  110. hitpointName = "HitAbdomen";
  111. armor = 24;
  112. passThrough = 0.1;
  113. };
  114. class Body
  115. {
  116. hitpointName = "HitBody";
  117. passThrough = 0.1;
  118. };
  119. };
  120. };
  121. };
  122.  
  123. class PT_Belt_2: Vest_Camo_Base
  124. {
  125. scope = 2; /// scope needs to be 2 to have a visible class
  126. displayName = "PT Belt 2"; /// how would the stuff be displayed in inventory and on ground
  127. picture = "\A3\characters_f\Data\UI\icon_V_TacVest_blk_CA.paa"; /// this icon fits the vest surprisingly well
  128. model = "ARP_Safety\pt_belt_2.p3d"; /// what model does the vest use
  129. hiddenSelectionsTextures[] = ARP_Safety\data\belt2_yellow_CO.paa"}; /// what texture is going to be used
  130.  
  131. class ItemInfo: ItemInfo
  132. {
  133. uniformModel = "ARP_Safety\pt_belt_2.p3d"; /// what model does the vest use
  134. LOAD(0,0) /// macro from basicdefines_A3.hpp
  135. overlaySelectionsInfo[] = {"ghillie_hide"}; /// name of selections to be hidden while wearing certain uniforms
  136. };
  137. };
  138.  
  139. };
Advertisement
Add Comment
Please, Sign In to add comment