Нужна помощь?
Создайте тему в соответствующем разделе
Не нужно писать всё в чат!Загляните на торговую площадку
Там вы можете купить
всё что касается игровых серверовНе хотите бан?
Пожалуйста, ознакомьтесь с нашими правилами
Не нарушайте порядок!Продаёте или покупаете?
Пользуйтесь услугами гаранта
Мы сделаем вашу сделку безопасной
-
Объявления
-
⚙️ Новые онлайн-инструменты для DayZ 07/26/26
-
- 0

Цель - корректировка наносимого урона определенным инфицированным/животным, методом регулировки количества ХП в конфиге.
В классе DamageSystem есть класс GlobalHealth с hitpoints (как я понимаю, это общее ХП твари), но есть и класс DamageZones с hitpoints (ХП для отдельных частей тела: голова, торс, руки, ноги).
Подскажите, пожалуйста, как влияет количество ХП отдельных частей на общее ХП, при нанесении урона в эти части тела?
Пример кода в конфиге:
class DamageSystem { class GlobalHealth { class Health { hitpoints=100; healthLevels[]= { { 1, {} }, { 0.69999999, {} }, { 0.5, {} }, { 0.30000001, {} }, { 0, {} } }; }; }; class DamageZones { class Head { class Health { hitpoints=30; transferToGlobalCoef=1; }; class ArmorType { class Projectile { class Health { damage=1.5; }; }; class Melee { class Health { damage=0.69999999; }; }; class FragGrenade { class Health { damage=3; }; }; }; componentNames[]= { "Head", "Neck" }; fatalInjuryCoef=0.1; inventorySlots[]= { "Headgear", "Mask" }; }; class Torso { class Health { hitpoints=100; transferToGlobalCoef=1; }; class ArmorType { class Melee { class Health { damage=1.2; }; }; class FragGrenade { class Health { damage=2; }; }; }; componentNames[]= { "Spine1", "Spine3" }; fatalInjuryCoef=-1; inventorySlots[]= { "Vest", "Body", "Back" }; inventorySlotsCoefs[]={1,1,1}; }; class LeftArm: Torso { componentNames[]= { "LeftArm", "LeftForeArm" }; inventorySlots[]= { "Vest", "Body", "Back" }; inventorySlotsCoefs[]={1,1,1}; fatalInjuryCoef=-1; }; class RightArm: LeftArm { componentNames[]= { "RightArm", "RightForeArm" }; inventorySlots[]= { "Vest", "Body", "Back" }; inventorySlotsCoefs[]={1,1,1}; fatalInjuryCoef=-1; }; class LeftLeg { class Health { hitpoints=100; transferToGlobalCoef=0.33000001; }; class ArmorType { class FragGrenade { class Health { damage=2; }; }; }; componentNames[]= { "LeftLeg", "LeftUpLeg" }; fatalInjuryCoef=-1; inventorySlots[]= { "Legs" }; }; class RightLeg: LeftLeg { componentNames[]= { "RightLeg", "RightUpLeg" }; fatalInjuryCoef=-1; inventorySlots[]= { "Legs" }; }; class LeftFoot { class Health { hitpoints=100; transferToGlobalCoef=0.1; }; class ArmorType { class FragGrenade { class Health { damage=2; }; }; }; transferToZonesNames[]= { "LeftLeg" }; transferToZonesCoefs[]={0.1}; componentNames[]= { "LeftFoot" }; fatalInjuryCoef=-1; inventorySlots[]= { "Feet" }; }; class RightFoot: LeftFoot { transferToZonesNames[]= { "RightLeg" }; transferToZonesCoefs[]={0.1}; componentNames[]= { "RightFoot" }; fatalInjuryCoef=-1; inventorySlots[]= { "Feet" }; }; }; };Поделиться сообщением
Ссылка на сообщение
Поделиться на других сайтах