Garry's Mod

Garry's Mod

Not enough ratings
Unbreakable Tool 重製版 (Unbreaker)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
4.801 KB
13 Aug, 2022 @ 6:21pm
14 Aug, 2022 @ 5:32am
2 Change Notes ( view )

Subscribe to download
Unbreakable Tool 重製版 (Unbreaker)

In 1 collection by LaZycAt
LaZycAt's simple addons
13 items
Description
Why remake?
Mainly to fix a lua error that tried to use a nil value
which will cause Unbreakable effect wont work properly in some situation.

What does Unbreakable Tool do?
  • Makes your prop will not be broken by most type of incoming damage
  • Works on multiplayer
  • Works on NPCs
  • Works on vehicles
    (enable "Extend To Constrained Objects" to protect every part of vehicle)
  • Can be copied with duplicator
  • Can be stored into dupes
    (Server also need to install Unbreakable Tool to make it work)
  • Compatible with dupes saved by old Unbreakable Tool

Added additional ConVar
I added two cvar to give it a quick control without admin mod required
  • tool_unbreaker_enabled <0/1> (default: 1)
    Enable the tool or not
    0 = Disable / 1 = Enable
  • tool_unbreaker_adminonly <0/1> (default: 0)
    Makes the tool admin only
    0 = Disable / 1 = Enable

Original:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=111158387
9 Comments
♬♫~Joe Blaze~♫♬ 19 Jul @ 10:52pm 
No longer working.
Partially Invisible 6 Aug, 2024 @ 10:37am 
i can now build in peace while my friends are on the server
10/10
󠁳󠁳Angel 2 Apr, 2023 @ 8:30am 
why is it not working on the server
ferret 1 Jan, 2023 @ 8:10am 
thank you, i appreciate it very much
LaZycAt  [author] 1 Jan, 2023 @ 7:56am 
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 1 Jan, 2023 @ 7:34am 
thank you, can you describe how to do it without entities? i searched unsuccessfully
LaZycAt  [author] 1 Jan, 2023 @ 6:27am 
> @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 31 Dec, 2022 @ 5:58am 
for the curious it works by creating a filter_activator_name entity
Joystick 17 Nov, 2022 @ 1:37am 
damn, underrated fix