Drinking directly from water sources

Just a short explanation of what I’m trying to do:

I’m working on a simple mod that makes saltwater undrinkable. To do that, I need to write events that override the typical behavior of water containers and players when using ocean actors. I spent about two hours last night looking for the event that occurs when a player presses the Use Key while targeting the ocean, but I couldn’t find it anywhere. Does anyone know where this is located?

Im pretty sure you should look at the difference between the lake volume zone and the (sea? water?)main volume zone. Not quite sure what its called Ill it later when I get access to my dev kit again.

I suspect that the current drinking and most water behavior is hardcoded. Items are fillable due to the “Use in Water Restore Durability” checkbox (water level is implemented as durability) not due to anything in a graph that I can find. Giving people full waterskins is tough (i had to subclass WaterskinCraftable as WaterskinPrefilled with “Use Creation Time” checked, “Prevent Crafting Resource at Full Durability” unchecked and “New Item Durability Override” set back to -1 to disable creating an empty skin. The WaterskinRefill item only works from taps, try admincheating yourself an item 48 on a server or simulator that has been running for 10 minutes or so, it will appear in your inventory full for a second, then immediately empty itself.

What DerfK2 said. I don’t think there is even any separation between rivers/lakes and the ocean as far as the game is concerned. It’s all just “water”. You’d have to code the separation yourself (and I doubt you could with just the ADK).
But then again, is it really such a bad thing in a clearly artificial environment?