饥荒联机版

饥荒联机版

265 个评价
Don't Hit a Pet Beefalo
4
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
352.130 KB
6 月 8 日 上午 2:14
6 月 11 日 下午 2:47
16 项改动说明 ( 查看 )

订阅以下载
Don't Hit a Pet Beefalo

描述
Don't Hit a Pet Beefalo


A simple and lightweight Client-side mod that prevents you from accidentally attacking your pet Beefalo.

It blocks both standard force-attacks (Ctrl + Left-Click) and the default attack command (Ctrl + F) from targeting your trusted companion, giving you peace of mind during chaotic fights.


The Problem
We've all been there...
引用自 A Sad Survivor's Diary
  • The Chaotic Fight: "We were surrounded by hounds! I just started swinging my spear... and my best buddy ran right into it. I'm so sorry, Beefy."
  • The Farming Accident: "I was just chopping trees near my base. I held down the attack button for one second too long, and my character automatically targeted the next closest thing. It was him."
  • The Boss Panic: "It was me vs. the Bearger. In my panic, I clicked on the wrong furry giant. A moment of silence for Sir Loin."
This mod ensures your loyal companion is safe from your clumsy, panicked, or just plain unlucky attacks... and from your "helpful" friends.

How It Works
The mod uses a simple, reliable, and clever method to identify your Beefalo friends.

  • A wild, untamed beefalo is always named "Beefalo" (or its equivalent in your language).
  • As soon as you start taming it, its name changes (e.g., "Pudgy Beefalo", "Ornery Beefalo").
  • This mod checks if a beefalo's name is different from the default "Beefalo" name in your game's current language. (Multi-language support)

If beefalo.name is NOT the default name -> consider it an ally.

This simple logic ensures that any beefalo that you have a relationship with is protected from your attacks.

The 'I Really Mean It' Override
But what if you *really* need to put your friend down? For science? Because it got sick and you're being merciful? Or maybe you just really, really want that extra meat and horn...

This mod understands that sometimes, tough decisions must be made. That's why there's a built-in override system.

  • Standard Force-Attack (Blocked): Ctrl + Single-Click on your pet will do nothing. Your companion is safe from accidental clicks.
  • Intentional Override (Allowed): Ctrl + Double-Click on your pet will perform the attack. This requires a deliberate, two-step action, making it nearly impossible to do by mistake.

This override functionality is enabled by default. If you want absolute 100% protection with no exceptions, you can turn this feature off in the mod's configuration settings.

Features & Compatibility
Feature
Details
Client-Side
You can use this on any server! The host does not need to have it installed. It works for you alone.
Lightweight
The code is extremely simple and will not cause any lag.
High Compatibility
Should be compatible with almost all other mods, as it only touches one small function.
Configurable Override
You can enable or disable the "Double-Click Override" feature in the mod configuration menu. It is enabled by default.



Enjoy the game without the fear of hurting your most loyal companion!
36 条留言
jolly christmas 12 月 13 日 上午 11:12 
good:steamthumbsup:
wolfgoon the incredible jorkman 11 月 15 日 上午 3:40 
Thx I accidentally eated a wendy's beefalo (and they were not renewable) so I NEEDED this mod
PIGNOSE  [作者] 11 月 14 日 上午 8:43 
@.J
Wortox’s soul can attack targets based on the same area-of-effect and system judgment rules. (For example, if a soul would normally be able to attack a beefalo, it can do so.)

This mod does not modify the game’s internal judgment rules, so it behaves just like Wortox’s soul attack on the client side.
.J 11 月 13 日 下午 6:18 
does this work with wortoxs souls ?
yep 11 月 13 日 上午 2:53 
thanks for fixing what the devs cant XAXAXAX :steamthumbsup::steamthumbsup::steamthumbsup:
你好 11 月 5 日 上午 4:29 
Thank you for your maintenance
PIGNOSE  [作者] 10 月 1 日 上午 11:58 
Hi @无敌强哥
Thank you for reporting this.

This mod only changes a very small part of the logic,
the attack target selection, and it does so safely.

If beefalo aren’t following the cowbell, it’s much more likely caused by another mod.

This mod has been playtested by many players,
so you can be fairly confident it won’t cause problems.
PIGNOSE  [作者] 10 月 1 日 上午 10:44 
@Shynaid
Of course!
If you disable "Allow Double-Click Attack" in the mod settings,
you won’t be able to force attacks with the mouse.
Shynaid 8 月 23 日 下午 9:23 
Could you completely disable the beefalo attack with the mouse? (when it's yours)
making impossible to attack ?
无敌强哥 7 月 16 日 上午 4:11 
订阅这个之后牛就不跟着牛铃铛走了,而且传送后牛还在原地