Garry's Mod

Garry's Mod

199 ratings
HL2 Themed Gibbing
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Scenic
Content Descriptors: General Mature Content, Frequent Violence or Gore
File Size
Posted
Updated
18.552 KB
1 Jul @ 10:00am
4 Jul @ 11:24am
9 Change Notes ( view )

Subscribe to download
HL2 Themed Gibbing

Description
You must have keep corpses on for this to work

Blacklist doesn't save across sessions for some reason rn, so until I can find a solution you'll have to live with it.

This basically allows death ragdolls spawned from things to be gibbed like seen in Half-Life 1, but instead with Half-Life 2 theming. Gibs will change colour and size depending on the ragdoll/NPC. Blood splats will be applied to nearby surfaces with the range depending on the size of the ragdoll.
Also if you want player ragdolls to be gibbable I would recommend either Ragdoll Death V2.0 or Super Simple Serverside Ragdolls .
Oh yea ragdolls also have to be serverside so have keep corpses on.

A mod that goes well with this is gibs replacement.

If you do get an error or you believe something isn't working the way it's supposed to, comment about it with the error you got and/or the way that it happened. If you just say "Doesn't work" or "It's broken" I can't do anything about it.

Console Variables:
hl2gibbing_enabled, default: 1, Turn the addon on or off. hl2gibbing_health_mult, default: 2, The health multiplier for health types 1 to 3. hl2gibbing_health_type, default: 1, What should ragdoll health be based on? 1 = Entity max health; 2 = Volume (Divided by 16 to not be too large with an increasing health trend for health values); 3 = Cubed volume (Multiplied by 4 to not be too low and has a more linear health trend for health values); 4 = Fixed amount for each ragdoll (This value can be changed with the hl2gibbing_fixed_health ConVar). hl2gibbing_fixed_health, default: 100, This is the fixed amount of health for ragdolls if hl2gibbing_health_type is set to 4. hl2gibbing_dmg_reset_delay, default: 1, The amount of time in seconds it takes for damage done to a ragdoll to be reset as the mod basically uses a damage threshold system, and if you don't want a threshold system then just make this number higher. hl2gibbing_max_gibs, default: 64, Just the highest amount of gibs permitted on the map at once until the oldest ones start getting removed. hl2gibbing_despawn_time, default: 15, How long will it take in seconds for gibs to be despawned automatically. hl2gibbing_min_health, default: 40, The minimum amount of health a ragdoll can have if the ConVar hl2gibbing_health_type is set to 1, 2, or 3. hl2gibbing_gib_spawnrate, default: 16, How many gibs are spawned? This will also change the sizing of them so you can have one big strider chunk I guess. hl2gibbing_sandbox_health, default: 100, The health that player spawned ragdolls have. hl2gibbing_explosions_only, default: 0, If ragdolls can only be gibbed by explosive damage. hl2gibbing_blacklist, default: I ain't writing that, You probabaly shouldn't change this unless you wanna write the whole table manually. If you do change it and want to revert it type into the console "hl2gibbing_reset hl2gibbing_blacklist".

Console Commands:
hl2gibbing_reset [ConVar], Type in the ConVar you want to reset the value for, also works on the blacklist. hl2gibbing_reset_all, Resets all console variables. hl2gibbing_clear_gibs, Cleans up all gibs from the map. hl2gibbing_blacklist_print, Prints the model and NPC blacklist to the console. hl2gibbing_blacklist_add [Path to model or NPC class], Add an NPC or model to the blacklist. hl2gibbing_blacklist_remove [Entry on blacklist], Remove an entry from the blacklist.

Kinda Credits:
Coding n' stuff - me
Assets - Valve
And thanks to the GMod Wiki[wiki.facepunch.com] for having a list of all hooks, functions, and libraries I can use and also to StrawWagen's Advanced Material Tool Reborn for allowing me to test the non-shiny Lua created flesh texture and how other textures look on the fly.

This mod basically came from an idea I had on a mod that makes stuff gib like in HL1 but stylized for HL2, so I looked for one and to no avail. I then decided I would make it myself so when I got better at programming in Lua I did so and here we are now.

Version 3.5
Popular Discussions View All (1)
4
14 Jul @ 2:19pm
PINNED: Bugs
Bluekrakan
54 Comments
Blubread 16 Jul @ 2:40pm 
we need tf2 gibs next
Bluekrakan  [author] 9 Jul @ 1:34pm 
weird, not sure why that would be happening unless you had a mod that is conflicting with it
michael 7 Jul @ 9:52am 
yes
Bluekrakan  [author] 7 Jul @ 4:44am 
prob not
Freddy Fazblunt 7 Jul @ 12:13am 
Bluekrakan  [author] 6 Jul @ 3:32pm 
@michael do you have keep corpses on
⛧Megalomaniac⛧ 6 Jul @ 12:24am 
hell yeah, dark interval-esque
Ajiliffe 5 Jul @ 12:37pm 
ooh, serverside player ragdoll only? does that mean jmod compatibility? Since it has an option to make player ragdolls serversided
michael 5 Jul @ 8:17am 
nothing gibs at all, though i have no errors
Gordon, GORDAN! 4 Jul @ 6:03pm 
(I think I've said this before, but if I have, I'll say it again because I'm not sure if I was heard.)

I wonder if you could create a list that users can use to replace models when gibbing, down to having specific models and options for gibs based on an entity's model and skin for gibs?

Also if an NPC is gibbed via a disintegrating damage type, could you code the gibs to disintegrate?