Jump to content

Search the Community

Showing results for tags 'drink water'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 1 result

  1. I posted this as a possible bug report here However, if this turns out to not be a bug but an intended 'feature' (as I am now suspecting), I'm trying to mod this to undo the change so that drinking manually from water bottles, bowls, mugs, etc. is possible even when not Thirsty (just like you can drink Orange Soda regardless of thirst). My first instinct was to make a mod that added the 'Drink' interaction to Water Bottle item (notably missing in the original code compared to that of Orange Soda), but this didn't work. I took a look in the code and found that making a mod containint a modified version of 'ISInventoryPaneContextMenu.lua', edited to remove the thirst check - as below - fixed the issue: if waterContainer then local drinkOption = context:addOption(getText("ContextMenu_Drink"), items, nil) local subMenuDrink = context:getNew(context) context:addSubMenu(drinkOption, subMenuDrink) subMenuDrink:addOption(getText("ContextMenu_Eat_All"), items, ISInventoryPaneContextMenu.onDrink, waterContainer, 1, player) subMenuDrink:addOption(getText("ContextMenu_Eat_Half"), items, ISInventoryPaneContextMenu.onDrink, waterContainer, 0.5, player) subMenuDrink:addOption(getText("ContextMenu_Eat_Quarter"), items, ISInventoryPaneContextMenu.onDrink, waterContainer, 0.25, player) end Obviously, though, modding existing files isn't the best way to go, but creating a standalone lua file to implement this fix is way beyond my understanding. I've been able to do this sort of thing before with simpler lua, as with professions, traits, items, etc. but 'ISInventoryPaneContextMenu.lua' is far more complicated than I'm used to trying to deal with! If anyone can point me in the right direction of what I need to do, I'd really appreciate it, as it's driving me nuts not being able to simply drink from a bottle of water at will.
×
×
  • Create New...