Garry's Mod

Garry's Mod

25 个评价
Unbreakable Tool 重製版 (Unbreaker)
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
4.801 KB
2022 年 8 月 13 日 下午 6:21
2022 年 8 月 14 日 上午 5:32
2 项改动说明 ( 查看 )

订阅以下载
Unbreakable Tool 重製版 (Unbreaker)

在 LaZycAt 的 1 个合集中
LaZycAt's simple addons
13 件物品
描述
為何重製?
主要是為了修正一個 lua 錯誤
在某些情況下可能導致 unbreakable 不會正常運作.

Unbreakable Tool 的功能是?
  • 讓你的物件不會被絕大多數類型的攻擊給傷害
  • 可用在多人遊戲
  • 可用在NPC
  • 可用在載具
    (記得啟用 "Extend To Constrained Objects" 才能保護載具所有部位)
  • 可以被複製工具複製
  • 可以存進 Dupe 裡面
    (你叫dupe的服務器必須也有裝Unbreakable Tool)
  • 可相容於使用舊版 Unbreakable Tool 的 Dupe

新增額外的控制參數
新增了兩個控制參數讓你在沒有管理系統的情況下也能限制工具
  • tool_unbreaker_enabled <0/1> (預設: 1)
    啟用或關閉工具
    0 = 關閉 / 1 = 啟用
  • tool_unbreaker_adminonly <0/1> (預設: 0)
    限制 Unbreakable 工具只有管理員能使用
    0 = 關閉 / 1 = 啟用

原版:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=111158387
9 条留言
♬♫~Joe Blaze~♫♬ 7 月 19 日 下午 10:52 
No longer working.
🍂🎃Killdroid 🎃🍂 2024 年 8 月 6 日 上午 10:37 
i can now build in peace while my friends are on the server
10/10
󠁳󠁳Angels 2023 年 4 月 2 日 上午 8:30 
why is it not working on the server
ferret 2023 年 1 月 1 日 上午 8:10 
thank you, i appreciate it very much
LaZycAt  [作者] 2023 年 1 月 1 日 上午 7:56 
The most simple way you can just hook a EntityTakeDamage event, check if the entity that getting damage were set to Unbreakable, if true then drop the damage
or complex you can set a damage filter that only specific damage type can pass through, ex. bullet, crush, slash, etc
ferret 2023 年 1 月 1 日 上午 7:34 
thank you, can you describe how to do it without entities? i searched unsuccessfully
LaZycAt  [作者] 2023 年 1 月 1 日 上午 6:27 
> @ferret
It's a logic entity that only assigned entities will pass it, so if used on damage event, it should prevent "Unbreaked" entities getting damaged, theres some other entities can achieve this, or even without these entities, but its done by former developer and it works, so
ferret 2022 年 12 月 31 日 上午 5:58 
for the curious it works by creating a filter_activator_name entity
joystick_on 2022 年 11 月 17 日 上午 1:37 
damn, underrated fix