1
0

armor_uniform.hpp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. armor = 10; // total armor of uniform
  2. armorStructural = 1.0; // damage to total is divided by this
  3. explosionShielding = 1.0; // explosion damage to total is multiplied by this
  4. minTotalDamageThreshold = 0.001; // minimal registered damage
  5. impactDamageMultiplier = 0.5; // fall damage multiplier
  6. class HitPoints
  7. {
  8. class HitFace
  9. {
  10. armor = 15; // multiplier to total armor
  11. material = -1;
  12. name = "face_hub";
  13. passThrough = 0.0;
  14. explosionShielding = 0.1;
  15. };
  16. class HitNeck: HitFace
  17. {
  18. armor = 15;
  19. material = -1;
  20. name = "neck";
  21. passThrough = 0.0;
  22. explosionShielding = 0.1;
  23. };
  24. class HitHead: HitNeck
  25. {
  26. armor = 1000; // unused
  27. material = -1;
  28. name = "head";
  29. passThrough = 0.0;
  30. explosionShielding = 0.1;
  31. depends = "HitFace max HitNeck";
  32. };
  33. class HitPelvis
  34. {
  35. armor = 15;
  36. material = -1;
  37. name = "pelvis";
  38. passThrough = 0.0;
  39. explosionShielding = 0.1;
  40. };
  41. class HitAbdomen: HitPelvis
  42. {
  43. armor = 15;
  44. material = -1;
  45. name = "spine1";
  46. passThrough = 0.0;
  47. explosionShielding = 0.1;
  48. };
  49. class HitDiaphragm: HitAbdomen
  50. {
  51. armor = 15;
  52. material = -1;
  53. name = "spine2";
  54. passThrough = 0.0;
  55. explosionShielding = 0.1;
  56. };
  57. class HitChest: HitDiaphragm
  58. {
  59. armor = 15;
  60. material = -1;
  61. name = "spine3";
  62. passThrough = 0.0;
  63. explosionShielding = 0.1;
  64. };
  65. class HitBody: HitChest
  66. {
  67. armor = 1000; // unused
  68. material = -1;
  69. name = "body";
  70. passThrough = 0.0;
  71. explosionShielding = 0.1;
  72. depends = "HitPelvis max HitAbdomen max HitDiaphragm max HitChest";
  73. };
  74. class HitArms
  75. {
  76. armor = 5;
  77. material = -1;
  78. name = "arms";
  79. passThrough = 0.0;
  80. explosionShielding = 0.1;
  81. };
  82. class HitHands: HitArms
  83. {
  84. armor = 5;
  85. material = -1;
  86. name = "hands";
  87. passThrough = 0.0;
  88. explosionShielding = 0.1;
  89. };
  90. class HitLegs
  91. {
  92. armor = 5
  93. material = -1;
  94. name = "legs";
  95. passThrough = 0.0;
  96. explosionShielding = 0.1;
  97. };
  98. class HitLeftArm
  99. {
  100. armor = 5;
  101. material = -1;
  102. name = "hand_l";
  103. passThrough = 0.0;
  104. explosionShielding = 0.1;
  105. };
  106. class HitRightArm: HitLeftArm
  107. {
  108. name = "hand_r";
  109. };
  110. class HitLeftLeg
  111. {
  112. armor = 5;
  113. material = -1;
  114. name = "leg_l";
  115. passThrough = 0.0;
  116. explosionShielding = 0.1;
  117. };
  118. class HitRightLeg: HitLeftLeg
  119. {
  120. name = "leg_r";
  121. };
  122. };