Jump to content

Di-Crash

Member
  • Posts

    45
  • Joined

  • Last visited

Everything posted by Di-Crash

  1. Ou yes! Now we will do everything right. ))
  2. Now I'll take a look, but I did not post the original game files that needed to be edited, so I'll edit your mod to lay out the archive for you.
  3. Is it possible to remove the information from the data subject? What would not "getModData().EquipedHeadArmor == 0" or "getModData().EquipedHeadArmor == 1" And what would be "getModData (). EquipedHeadArmor == true" or "getModData().EquipedHeadArmor ~= nil" How can i do this? I want to delete information about the fact that the item was equipped, now he has a record after the unequipped "getModData().EquipedHeadArmor = 0"
  4. The weight of items is updated with the restart in the game, I had to write a function that constantly checks whether the weight of the armored equipment.
  5. function WeightCheck() local it = getPlayer():getInventory():getItems(); for i = 0, it:size()-1 do local item = it:get(i); HeadArmor = item:getModData().EquipedHeadArmor; ChestArmor = item:getModData().EquipedChestArmor; ArmArmor = item:getModData().EquipedArmArmor; HandArmor = item:getModData().EquipedHandArmor; LegArmor = item:getModData().EquipedLegArmor; FootArmor = item:getModData().EquipedFootArmor; if (HeadArmor or ChestArmor or ArmArmor or HandArmor or LegArmor or FootArmor) == 0 then if item:getActualWeight() ~= item:getWeight() then item:setActualWeight(item:getWeight()); end end if (HeadArmor or ChestArmor or ArmArmor or HandArmor or LegArmor or FootArmor) == 1 then if item:getActualWeight() ~= item:getWeight() * 0.3 then item:setActualWeight(item:getWeight() * 0.3); end end end end Events.OnTick.Add(WeightCheck);
  6. Cool, tomorrow I'll try to register a check through this form of the table. Now I'm looking for a solution with a change in the weight of objects.
  7. I wrote the code that equip and unequip armor without the participation of recipes. Context menu, check the subject and create options: Time action. Equipping armor on the character: Time action. Removing the armor from the character: Time action. Activating the equipment inspection window: The code has not yet been completely completed, lacks some mechanisms, such as checking the weight of the armored armor.
  8. Do not see any changes in the code? What changed? You watched my video in which I demostrated the fully equipped and removed armor?
  9. By the way, it would be great if you did this when developing mods like this, it allows you to translate mods faster. )) In addition, it allows the mod to be multilingual.
  10. This time there were no injuries, not even an infection. In general, in theory, in any case, she should not protect 100 percent.
  11. The same result. If there are scratches and bites, the infection can also.
  12. I inserted it wrongly, I must write it from above. ))
  13. Yes, bastards break through the armor despite 100 percent protection. I know about the fact that you added ignoring the damaged limbs. By the way can it be worth adding stitches to the list? To track infection, I used command say. By the way, I plan to make armor fully outfitted, like clothes. Now I am writing the time of action.
  14. No, I mean bites and scratches. I made the armor with 100 percent protection for the tests, they still pierce it sometimes.
  15. By the way about the attacks of a lot of zombies, it can happen so that even such armor will not save from a bite, it seems some damage slips between the frames.
  16. I think the problem is that you used an integer rather than a fractional one, I checked the command RestoreToFullHealth() in BodyDamage.class it uses this value to cure the infection. I tried to let the zombie bite myself and track the infection through the print command when it happened. I died naturally and the character did not become a zombie. This means that the path to recovery is in setInfectionLevel (0.0)
  17. Mod does not work properly: it treats the symptoms of the infection, but does not save from the infection itself. The character loses his health and dies, and becomes a zombie, despite the fact that there is neither nausea, nor anxiety, nor any other damage. Remove symptoms not a infection.
×
×
  • Create New...