DayZ
ZenSleep_1.27
Showing 1-6 of 6 entries
Update: 6 Mar @ 5:16pm

Исправлено:
Еда считается как и раньше от заполненности % в банке будет давать столько энергии сколько указано в конфиге при условии что еда 100% иначе:
float ratio = amount / quantityMax;
if (ratio > 1.0)
ratio = 1.0;
Добавлены некоторые доп проверки + защита if (effect < 0) {
float currentTiredness = player.GetSingleAgentCount(ZenSleep_Agents.TIREDNESS);
if (Math.AbsFloat(effect) > currentTiredness) {
effect = -currentTiredness;
}
}
Устранен конфликт ItemBase и CAContinuousBase никак не влияет друг на друга насколько я проверил, по логах как только скрипт CAContinuousBase видит еду он сразу прекращает работу.
Поправлен немного layot по этому сместятся координаты стало: "TirednessHudX": 0.05 было "TirednessHudX": 0.055 (для настройки слева)
Известные проблемы: если опустить уровень сна в 0 и сработает эффект (темноты) и сразу лечь спать эффекта не будет, а если после еще и встать то игрок будет с приглушенным звуком и в стадии сна


Fixed:
Food is calculated as before from the filling % in the bank will give as much energy as specified in the config, provided that the food is 100% otherwise:
float ratio = amount / quantityMax;
if (ratio > 1.0)
ratio = 1.0;
Added some additional checks + protection if (effect < 0) {
float currentTiredness = player.GetSingleAgentCount(ZenSleep_Agents.TIREDNESS);
if (Math.AbsFloat(effect) > currentTiredness) {
effect = -currentTiredness;
}
}
The conflict between ItemBase and CAContinuousBase has been eliminated, as far as I checked, according to the logs, as soon as the CAContinuousBase script sees food, it immediately stops working.
Corrected layot ​​a bit, so coordinates shifted: "TirednessHudX": 0.05 was "TirednessHudX": 0.055 (for left setting)


Known issues: if you lower the sleep level to 0 and the effect (darkness) works and immediately go to bed, there will be no effect, and if you also get up after that, the player will have a muffled sound and be in the sleep stage

Update: 28 Feb @ 1:45pm

Fix client null pointer error

Update: 27 Feb @ 2:25pm

Returned white color and returned 3 basic scripts

Update: 27 Feb @ 11:18am

Добавлен универсальный метод обработки еды все что вы впишите в конфиг будет давать ефект.
Реализовал момент для предметов которые работают через циклическое действие например: косяки с мода CannabisPlus например:
{
"ItemType": "CP_JointSkunk",
"EnergyGained": 10
} каждая тяга косяка дает ефект который в впишите


Устранены предупреждения для моделей и DamageZones
Добавлен перевод для шприцов на все языки (с помощью StringtableCreator) могут быть не все переводы и не совсем коректны.

---------------------------------------------------
Added a universal method of food processing all that you write in the config will give the effect.
Realized the moment for items that work through a cyclic action for example: joints from the mod CannabisPlus for example:
{
“ItemType": ‘CP_JointSkunk’,
“EnergyGained": 10
} each pull of a joint gives the effect that you type in.

desired effect. (in the default config they are there).
Fixed warnings for models and DamageZones
Added translation for syringes in all languages (using StringtableCreator). not all translations may not be correct.

Update: 26 Feb @ 6:41am

Fix meta.cpp

Update: 26 Feb @ 6:39am