Garry's Mod

Garry's Mod

106 ratings
Simple Contraption Damage
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun, Realism
File Size
Posted
Updated
20.733 KB
3 May @ 9:24am
25 May @ 9:14am
7 Change Notes ( view )

Subscribe to download
Simple Contraption Damage

Description
About
Do you like fighting your friends on your own custom-made death machine? Do you want to add some actual stakes to that but using E2/Starfall health chips is way too inconvenient? Well, this is a tool exactly for that.

This tool allows you to make any contraption destructible. Unlike addons like Simple Prop Damage/Prop Destruction this addon will not affect every prop. Also all props in a contraption share a single health pool which depends on their total weight.

After not receiving damage for a certain amount of time (120 seconds by default) a contraption will begin to heal slowly.
Usage
Click on your contraption with 'Contraption Core' tool. All attached props will be added automatically. Please note that this process will occure only once so if you add/remove props after spawning a Contraption Core they will not be detected. However, you can manually cause a recalculation by either updating the Contraption Core with the respective tool or by clicking 'Recalculate Health' in the Contraption Core's property menu.
Features
  • Numerous effects for when a contraption gets destroyed/badly damaged
  • AoE damage counts only once
  • Wire compatibility
  • Can be duped with Duplicator/Adv Dupe 2
  • CPPI compatibility
Server commands
  • 'scd_max_health' - Maximum amount of health a contraption can have (50000)
  • 'scd_health_multiplier' - The total weight of props in a contraption will be multiplied by this number to get its total health (2.25)
  • 'scd_allow_health_override' - If set to 1 players will be able to enter their own amount of health
  • 'scd_regen_delay' - Time in seconds before contraption will start regenerating health after it took damage. Set to -1 to disable regeneration entirely (120)
  • 'scd_regen_amount' - Amount of health the contraption will restore per second relative to max health (0.02)
  • 'scd_force_friendly_fire' - If set to 1 players will always be able to damage their contraptions (0)
Popular Discussions View All (1)
0
9 May @ 6:54pm
Incompatible addons
Exotetere
23 Comments
doctor dala 25 Aug @ 2:34pm 
wait what the fuck you made this?
Spaceman Spiff 22 Aug @ 2:16pm 
idea: have a setting that makes the destruction effects appear on random parts of the contraption instead of just on the core
.kkrill  [author] 6 Jul @ 1:58am 
@HECU Soldier make sure that scd_allow_health_override is set to 1
HECU Soldier 5 Jul @ 9:49pm 
if I use the health override, the health will not decrease.
.kkrill  [author] 29 Jun @ 1:15am 
@DeceasedBrain (trueidiot_YT) can't you just use the thing on an existing dupe?
im trying to find dupes using this addon how can I find dupes using this addon
burntfrenchfries 9 Jun @ 3:14pm 
something about "bobs guns" assumedly or m9k
random beans 9 Jun @ 3:01pm 
[Simple Contraption Damage] lua/weapons/gmod_tool/stools/contraption_core.lua:264: Tried to use a NULL entity!
1. SetMaterial - [C]:-1
2. fx - lua/weapons/gmod_tool/stools/contraption_core.lua:264
3. Destroy - lua/entities/gmod_contraptioncore.lua:179
4. ProcessDamage - lua/entities/gmod_contraptioncore.lua:163
5. v - lua/entities/gmod_contraptioncore.lua:137
6. unknown - lua/autorun/hook_inspector.lua:229
7. FireBullets - [C]:-1
8. ShootBullet - lua/weapons/bobs_gun_base/shared.lua:350
9. ShootBulletInformation - lua/weapons/bobs_gun_base/shared.lua:306
10. unknown - lua/weapons/m9k_dbarrel/shared.lua:140

i have no idea what's causing this problem
burntfrenchfries 4 Jun @ 6:46pm 
please unweld plz plz puhleaaase!
SkyBlu717 4 Jun @ 5:44pm 
What are the contraptions shown in the images?