DayZ
88 个评价
ZenOpenCansRock
   
奖励
收藏
已收藏
取消收藏
Type: Mod
Mod Type: Mechanics
文件大小
发表于
更新日期
10.978 KB
2022 年 8 月 27 日 上午 6:05
2023 年 10 月 8 日 下午 5:29
4 项改动说明 ( 查看 )

订阅以下载
ZenOpenCansRock

描述
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 条留言
coco 2024 年 12 月 13 日 上午 6:08 
the smacking sound plays nonstop when you open a can on a rock.
Хохол_Нолыныч 2024 年 12 月 4 日 下午 3:01 
@Zenarchist the smacking sound plays nonstop when you open a can on a rock.
KOVSH. 2024 年 10 月 22 日 下午 10:27 
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
🆅🅰🆉🅾 2024 年 7 月 14 日 上午 3:07 
thank you for your work, this is my L-C-T message. works fine on my server.
v0vassiN 2024 年 5 月 9 日 下午 1:29 
Ти герой!:luv:
Чекаю такої функції в Dayz 10 років:lunar2019piginablanket:
Martin St.St 2023 年 12 月 7 日 上午 9:02 
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 2023 年 10 月 14 日 下午 1:21 
Hey Zen, I messaged you in Discord... I need permissions and a little help
⎝⧹ xscr33m ⧸⎠ 2023 年 5 月 3 日 下午 3:50 
Thank you for allowing to repack!
If you want to take a look: https://steamproxy.com/sharedfiles/filedetails/?id=2971041124
nixcraft 2023 年 4 月 30 日 下午 1:46 
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 2023 年 3 月 10 日 上午 3:52 
easy, use one of his other mod's bikey or sign it yourself.