DayZ
88 ratings
ZenOpenCansRock
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
10.978 KB
27 Aug, 2022 @ 6:05am
8 Oct, 2023 @ 5:29pm
4 Change Notes ( view )

Subscribe to download
ZenOpenCansRock

Description
What Is This?

This simple mod adds the ability to break open cans of food on rocks.

Just walk up to any rock (one that you can mine with a pickaxe or create a bone knife out of) and use your can on it to break it open. Just be aware that you will lose somewhere between 50-80% of the contents by doing this and it will severely damage the can, so it should really only be used as a last resort.

To change the % lost when breaking the can open on rocks you can modify the code in ActionOpenCanEnv.c - specifically MIN_LOSS and MAX_LOSS which are the limits used when the script randomly calculates how much food to spill.

As with all my mods, this mod is open-source and repacking is allowed - do what you want with it.

Installation Instructions:

Install this mod like any other mod - copy it into your server folder and add it to your mods list. Make sure to copy the .bikey into your server keys.

Known Issues:
- Currently makes no sound when banging the can on the rock - will look into adding sound effects when I have time.
- Only works on vanilla food cans that require opening to consume - feel free to modify & repack for modded items.

Repack & Source Code:

Unfortunately due to lack of time I can't maintain all of my mods all of the time. I do my best, but these mods are offered as-is. If there's a problem, you have the source code and my permission to fix it yourself and upload a fixed version to the workshop without any credit necessary. It's all free.

You may repack this mod if you like, and do anything else you want with it for that matter. The source code is on my GitHub at www.zenarchist.io

Buy Me A Coffee:

All my mods are free and open source, but it takes an enormous amount of time to put some of these mods together. If I've helped you out, please consider helping me buy my next coffee! I don't expect it, but I very much appreciate it.

https://buymeacoffee.com/zenarchist

Enjoy!
22 Comments
coco 13 Dec, 2024 @ 6:08am 
the smacking sound plays nonstop when you open a can on a rock.
Хохол_Нолыныч 4 Dec, 2024 @ 3:01pm 
@Zenarchist the smacking sound plays nonstop when you open a can on a rock.
KOVSH. 22 Oct, 2024 @ 10:27pm 
The sound playing when opening canned food on rocks are going non stop, is there anyway to fix this issue? :) sounds like a crackhead mining for rocks with a pickaxe tbh
🆅🅰🆉🅾 14 Jul, 2024 @ 3:07am 
thank you for your work, this is my L-C-T message. works fine on my server.
v0vassiN 9 May, 2024 @ 1:29pm 
Ти герой!:luv:
Чекаю такої функції в Dayz 10 років:lunar2019piginablanket:
R.Z 7 Dec, 2023 @ 9:02am 
The sound playing when opening canned food on rocks are going non stop, is there anyway to fix this issue? :) sounds like a crackhead mining for rocks with a pickaxe tbh
randoAFK 14 Oct, 2023 @ 1:21pm 
Hey Zen, I messaged you in Discord... I need permissions and a little help
⎝⧹ xscr33m ⧸⎠ 3 May, 2023 @ 3:50pm 
Thank you for allowing to repack!
If you want to take a look: https://steamproxy.com/sharedfiles/filedetails/?id=2971041124
nixcraft 30 Apr, 2023 @ 1:46pm 
Another idea. i.e. It can be opened by heat (when reaches 100 celsius) in house fireplaces or on gas stoves and loses some % food by state of can itself
nurver 10 Mar, 2023 @ 3:52am 
easy, use one of his other mod's bikey or sign it yourself.