Radioactive air v1.41
zip
Radioactive air (Toxic Air rework) by Breaker_oak v1.41.zip83.29 Kb
List of changes in the new version / Список изменений в новой версии
[ENG]
1) A mechanic has been added to make the installed filter/tank affect the equipment weight. Now the weight of the installed filter or oxygen tank will continue to affect the inventory weight, but not directly — through the weight of the equipment where this item is installed. I tried to implement this feature so that the weight of the installed item is added to the current equipment weight and subtracted when the item is removed. This is done so that the mechanic can work correctly even if something in the game changes the weight of your equipment.
However, this does not guarantee its correct operation together with some other mod that may change the weight of suits or helmets during the game. For example, this applies to the armor plate mod, from which I took the equipment weight change code. Unfortunately, the code in that mod does not take into account the possible impact on the suit’s weight from anything other than the installed armor plate. Therefore, I rewrote almost the entire code for this mechanic. But this does not solve the problem of correct operation with equipment weight. For example, if you install an armor plate, the weight of your suit (10 kg) will increase by the weight of this armor plate (3 kg). Next, you install an oxygen tank (2 kg) into this suit, and the total equipment weight will be correct — 15 kg. But after that, the armor plate is removed from the suit, and its weight returns to the original 10 kg. Then you remove the oxygen tank, and the suit’s weight becomes 8 kg, although it should be 10 kg.
How can this be fixed? Most likely, only by rewriting the code in the scripts of the conflicting mods themselves. But in case of conflicts and incorrect operation of the equipment weight, I added an option in the MCM that allows you to disable this mechanic for filters and tanks. The option affecting the weight of installed filters/tanks on the equipment weight is located almost at the very bottom and is enabled by default.
2) The informativeness of the equipment description has been improved. Now, if a filter is missing from the helmet where it can (and should) be installed, a red line in the helmet description will indicate this. For suits with built‑in helmets, the text will indicate the absence of an installed filter or oxygen tank. For the scientific helmet, the text will indicate that the oxygen tank is not connected. And if this helmet is equipped and the oxygen tank is installed in the suit, you will see a message in the helmet description stating that the oxygen tank is connected to the helmet.
[RUS]
1) Добавлена механика влияния установленного фильтра/баллона на вес экипировки. Теперь вес установленного фильтра или кислородного баллона будет продолжать влиять на вес инвентаря, но уже не напрямую, а за счет веса экипировки, куда был установлен этот предмет. Я постарался сделать эту функцию таким образом, чтобы к текущему весу экипировки добавлялся вес установленного предмета, а при его снятии - отнимался. То есть, чтобы даже если что-то в игре могло изменить вес вашей экипировки, эта механика могла работать корректно.
Однако, это не гарантирует ее правильную работу вместе с каким-то другим модом, который может изменять вес костюмов или шлемов во время игры. Например, это касается мода на бронеплиты, откуда я и взял код изменения веса экипировки. К сожалению, код в том моде совсем не учитывает возможное влияние изменения веса костюма чем-то еще, кроме установленной бронеплиты. Поэтому я переписал почти весь код этой механики. Но это не решает проблему корректной работы с весом экипировки. Например, если вы поставите бронеплиту, вес вашего костюма (10 кг) увеличится на вес этой бронеплиты (3 кг). Далее вы устанавливает в этот костюм кислородный баллон (2 кг) и суммарный вес экипировки будет правильным, 15 кг. Но после этого бронеплита из костюма удаляется и его вес становится равным изначальным 10 кг. Далее вы снимаете кислородный баллон, и вес костюма становится равен уже 8 кг, хотя он должен быть 10 кг.
Как это можно исправить? Скорее всего только с помощью переписывания кода в самих скриптах конфликтующих модов. Но на случай конфликтов и некорректной работы веса экипировки я добавил опцию в MCM, с помощью который вы сможете отключить эту механику для фильтров и баллонов. Опция влияния веса установленных фильтров/баллонов на вес экипировки находится почти в самом низу и по умолчанию включена.
2) Улучшена информативность в описании экипировки. Теперь, если в шлеме отсутствует фильтр, где он может (и должен) быть установлен, об этом в описании шлема будет сообщать красная строка. Для костюмов со встроенными шлемами текст будет сообщать об отсутствии установленного фильтра или кислородного баллона. Для научного шлема текст сообщит о том, что кислородный баллон не подключен. А если этот шлем будет экипирован, а кислородный баллон установлен в костюм, то вы увидите сообщение в описании шлема, что кислородный баллон подключен к шлему.
mod update / обновление мода
in english
на русском
radioactive air