Jump to content

DarkKreepe

Member
  • Posts

    34
  • Joined

  • Last visited

About DarkKreepe

  • Birthday 04/03/1996

Contact Methods

  • Website URL
    http://dudoz.ru
  • Skype
    darkkreepe
  • Twitter
    https://twitter.com/tayl0rdany

Profile Information

  • Gender
    Man
  • Interests
    The Vikings, The Romans, modding, apocalypse

Recent Profile Visitors

2717 profile views

DarkKreepe's Achievements

  1. Thank you. This is a good solution
  2. Dear PZ Developers, Can you refactor the character's health panel? At the moment, it is absolutely unavailable for modding and causes incompatibility between mods. To add your own action when clicking on a body part, you need to completely copy the file and make a kinda "proxy" Now all actions are local. Example: local HApplyBandage = BaseHandler:derive("HApplyBandage") function ISHealthPanel:doBodyPartContextMenu(bodyPart, x, y) local playerNum = self.otherPlayer and self.otherPlayer:getPlayerNum() or self.character:getPlayerNum() local context = ISContextMenu.get(playerNum, x + self:getAbsoluteX(), y + self:getAbsoluteY()); local handlers = {} table.insert(handlers, HRemoveBandage:new(self, bodyPart)) table.insert(handlers, HApplyPlantain:new(self, bodyPart)) table.insert(handlers, HApplyComfrey:new(self, bodyPart)) table.insert(handlers, HApplyGarlic:new(self, bodyPart)) table.insert(handlers, HApplyBandage:new(self, bodyPart)) table.insert(handlers, HDisinfect:new(self, bodyPart)) table.insert(handlers, HStitch:new(self, bodyPart)) table.insert(handlers, HRemoveStitch:new(self, bodyPart)) table.insert(handlers, HRemoveGlass:new(self, bodyPart)) table.insert(handlers, HSplint:new(self, bodyPart)) table.insert(handlers, HRemoveSplint:new(self, bodyPart)) table.insert(handlers, HRemoveBullet:new(self, bodyPart)) table.insert(handlers, HCleanBurn:new(self, bodyPart)) And this part looks very strange. Code duplication function ISHealthPanel:dropItemsOnBodyPart(bodyPart, items) local handlers = {} table.insert(handlers, HRemoveBandage:new(self, bodyPart)) table.insert(handlers, HApplyPlantain:new(self, bodyPart)) table.insert(handlers, HApplyComfrey:new(self, bodyPart)) table.insert(handlers, HApplyGarlic:new(self, bodyPart)) -- CleanBurn before ApplyBandage because a bandage can be used to clean a burn table.insert(handlers, HCleanBurn:new(self, bodyPart)) table.insert(handlers, HApplyBandage:new(self, bodyPart)) table.insert(handlers, HDisinfect:new(self, bodyPart)) table.insert(handlers, HStitch:new(self, bodyPart)) table.insert(handlers, HRemoveStitch:new(self, bodyPart)) table.insert(handlers, HRemoveGlass:new(self, bodyPart)) table.insert(handlers, HSplint:new(self, bodyPart)) table.insert(handlers, HRemoveSplint:new(self, bodyPart)) table.insert(handlers, HRemoveBullet:new(self, bodyPart)) for _,handler in ipairs(handlers) do for _,item in ipairs(items) do handler:checkItem(item) end if handler:dropItems(items) then break end end end Can you make handlers public? Or context: function ISHealthPanel:doBodyPartContextMenu(bodyPart, x, y) ... local context = ISContextMenu.get(playerNum, x + self:getAbsoluteX(), y + self:getAbsoluteY()); ... Is it possible to add your own actions correctly? If so, how to do it better? If not, how fast can you fix it?
  3. Immersive drunk speech Do you think you sound like a TV presenter when you drunk? Now what you say will depend on your level of alcohol intoxication! Configuration for multiplayer and singleplayer In game configuration Manual configuration You need to modify a file. Windows path: %HOMEDRIVE%%HOMEPATH%/Zomboid/Server/servertest_SandboxVars.lua Linux path: ~/Zomboid/Server/servertest_SandboxVars.lua "servertest" may be different if you use a custom server name. For example: myserver_SandboxVars.lua Append this to the bottom: iDrunk = { AllowYell = true, AllowWhisper = true, AllowFaction = false, AllowSafehouse = false, AllowAdmin = false, AllowSay = true, AllowGeneral = false, } Supported languages Russian [RU] English [EN] You can also add or adjust a special dictionary for your language. You can find the instructions in the github repository. Link at the bottom of the description. Useful links Steam workshop GitHub Discord
  4. Immersive Medicine Extension of default medicine Are you tired of the same type of meds? Are you surprised that in this world, all treatment consists of taking antidepressants and painkillers?I think I've found a solution for you. Meet: Immersive Medicine Blood transfusion system Do you think it's enough to monitor the character's default health? You're wrong. Now you need to monitor the blood volume in your body: Slight blood loss: slight fatigue and drowsiness; Moderate blood loss: cold sweat, thirst; Critical blood loss: blurred vision, feeling cold; Fatal blood loss: complete exhaustion - don't forget to bring an obol with you Does the last point sound scary? Put the white slippers aside! Either stock up on blood packs of your group in advance, or ask your friend. Just be careful: suddenly he is infected or his group simply does not suit you. Becoming a donor is easy. You need: a blood testing kit, an empty blood bag, a catheter for intravenous transfusion. And a refrigerator. If you overdo it and you need to store a friend or blood bags somewhere. To perform a blood transfusion, you need to select either the right or left forearm in the health panel Blood pressure and pulse systems Now your character has a pulse and pressure in addition to the blood system! To determine the pulse, you need to select either the forearms, neck or groin in the health panel. But I have a better solution for you - Sport Tester Knox Electro KE 3000 This wristband will show your pulse in real time! To determine the pressure of the character, you will need the Tonometer Nanasonic EW3039S! All you need is just press the button. Drugs and dosage forms I have a whole line of drugs in store for you. There are not many of them yet, but the list will be replenished: Alkagine - an analgesic non-narcotic agent; Bismuth subsalicylate - anti-ulcer and antidiarrheal agent; Morphine - an opioid analgesic; Butamirate - antitussive agent; Naloxone - an opioid receptor antagonist; HemoStop - hemostatic powder; Umifenovir - an antiviral agent; Nasivion - nasal drops; Erythropoietin - in sports, it is doping; You can find more information about the drugs here: Guide Morphine, naloxone... It sounds simple: take a syringe, stick a needle and let it run through the veins, what will come to mind? What if there are no syringes and needles in stock? Dosage forms Oral: tablets, syrups, liquids (to take the drug, you need to select the head in the health panel); Parenteral: intramuscular and intravenous injections (to inject the drug, you need to select a body part in the health panel); Topical: creams, powders (to apply the drug, you need to select a body part in the health panel); Nasal: drops (to apply the drug, you need to select the head in the health panel); Found ampoules of alkagine, but no syringes? - Just drink the contents! Just don't drink too much. You're not a doctor to prescribe a dosage for yourself. And how to find out the dosage and avoid an overdose? These are the questions you should ask yourself first! The first aid skill or trait "Pharmacist" will come to the rescue. With the help of them, you will be able to determine the maximum dose, know about side effects, and also identify unknown drugs. Traits Pharmacist - can identify drugs. Knows everything about the composition of medicines and indications for their use; Universal donor - can become a donor for all other blood groups; Universal recipient - can accept blood of all other blood groups; High pain threshold - able to tolerate very severe pain; Low pain threshold - very intolerant of pain; Opioid addiction - susceptibility to opiates is reduced by 40%, the pain threshold is increased. You won't live a day without opiates; Configuration for multiplayer and singleplayer In game configuration You can turn off the blood system - "Enable blood system" option (active by default). This means that the character will not lose blood, can become a donor indefinitely, and the blood type compatibility will not be checked. You can turn off the blood group system - "Enable blood groups" option (active by default) It is responsible only for the compatibility of blood groups. You can turn off the heartbeat sound - "Enable heartbeat sound" option (active by default) Manual configuration You need to modify a file. Windows path: %HOMEDRIVE%%HOMEPATH%/Zomboid/Server/servertest_SandboxVars.lua Linux path: ~/Zomboid/Server/servertest_SandboxVars.lua "servertest" may be different if you use a custom server name. For example: myserver_SandboxVars.lua Append this to the bottom: ImmersiveMedicine = { IsBloodSystemActive = true, IsBloodTypeSystemActive = true, IsHeartbeatEnabled = true, BloodVolumeReduceModifier = 25, BloodVolumeIncreaseModifier = 1, } Supported languages Spanish [ES] (Arko Piktuviry) (May be incomplete) Russian [RU] English [EN] (nurver) Chinese [CN] (SSSherlockkk) (May be incomplete) German [DE] (MichaelHochriegl) (May be incomplete) Italian [IT] (ronfino) (May be incomplete) French [FR] (Fingbel) (May be incomplete) Portuguese [PT] (Richard) (May be incomplete) Brazilian [BR] (Richard) (May be incomplete) Korean [KR] (Dr_teray) (May be incomplete) Polish [PL] (Kahned) (May be incomplete) Useful links Steam workshop GitHub Discord Also check out my new mod: Immersive drunk speech
  5. New update: - Now you can perform injection to other players (Need to be tested) Next update: - New functions for useless items - Blood transfusion to other player
  6. You can take as a basis basicFarming.lua (..\media\lua\server\Farming)
  7. i think you can try getModData() to save current stats to item if item:getModData().cool == nil then item:getModData().cool = 0; else item:getModData().cool = currentCool; end
  8. This month there should be an update with the addition of new mechanics ver 2.0
  9. But we are with you on the English-language site, so it will be more correct to communicate in their language. Yes, I authorize you to use my mod for your purposes, but with one condition. Please indicate authorship. I didn't stop the development of the mod. Just took a break
  10. Compatibility with ver. 36.4 Update v. 1.1.6:
  11. 1. Ill try to do this 2. If i will have more time i will add empty blister 3. Im already fix this 4. Unfortunatly, mechanics of the game does not allow to do this 5. All is OK. Powder stop the bleeding and cauterize the wound 6. I fix this in new update
×
×
  • Create New...