Left 4 Dead 2

Left 4 Dead 2

1,029 ratings
[VScript] Pointblank Shotgun Gibbing
2
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Content Descriptors: General Mature Content, Frequent Violence or Gore
File Size
Posted
Updated
3.901 KB
16 Feb @ 8:01am
17 Feb @ 6:33am
4 Change Notes ( view )

Subscribe to download
[VScript] Pointblank Shotgun Gibbing

Description
This makes shotgun gibbing at close range much more brutal on commons.

Only works in local/single-player.




Originally posted by ijiru:
Originally there was a mods that allowed severe gibbing for shotguns, but it was replacing with a m60 ammo type. It made all shotguns incredibly broken and overpowered. This was really fun, but it wasn't the solution I wanted. Ref: “Shotguns do boom” mod.

I wanted to not affect balance and be only visual feedback.

So I decided to code my own first VScript, I have a bit of experience in game dev so this wasn't hard to do.

For people interested in the code or how I solved the logic. I just got the player's origin position and subtracted the target to get the offset to compare to it's length. The gibbing will only happen if they are 100 hammer units away in vector magnitude. It checks the weapon damage of what the player is using before considering calculation.




So in order to get the very nasty gib kill there is 2 conditions you must meet.

  • The infected should no more than 2ish types of gibbing on them (an arm blowned off or guts exposed).
    This is due to a engine optimization that valve made to prevent more than 2 texture mask wounds that appear on the body.

  • The last condition is to be 100 hammer units close, or in other terms: roughly more taller than a player model.




QA:

I have a ChimiChamo's wounded infected on spawn would it still work?

I have the mod on me as well, they will still gib but the best results would to have an unwounded zombie. His mod also still spawns fresh zombies.

Would this drop my fps?
Unless you had another mod like rag doll 2.0 where it keeps a higher count of corpses before disappearing, this mod won’t lag your game unless you had something else. L4D2 gore system has been optimized to avoid multiple pieces from spawning, that’s why when you throw a pipe bomb only 4 bodies could be visible after the result.

Would you do any other mods?
Not likely; I do game dev as a hobby in Unity and this is a rare case I had a great idea to mod in source. This is an old engine.

Does other players need to download this mod?
No, the host is the one who can have it. They can see the gore pile you just made with a shotgun on their client. I have tested it with my friends. It'll still be inconsistent sometimes because I had a time where zombie just died and they are still intact, but they lose a rib in the process. Best be safe and let your friends download the mod, but people on other clients will see the gore, just not as reliable.

What mods are you using in this gif?
Map: tumtara Gun: auto shotgun reborn All Vfx: realisticfx Character: joker from persona 5 casual outfit HUD: mini hud 2 + crosshair Skybox: informal skybox 2k

Does this affect weapon scripts?
I designed this mod to never affect balance or break other visual mods, this will not affect anything. I run 300+ mods on my own local server and I have yet to find an issue with compatibility.

Why can’t you do it for the special infected as well?
None of the special infected has a unique custom gore model assigned to them; the exception is the boomer. This is way more complex to do; because you need to implement a custom gore mesh to fit their original models like the witch crown gibbing mod. Or else it just looks weird when you gib them; so I have no intention to putting more effort to have the effect. That would require both client and host to have it and that’s not what I want this mod to do.


I don’t take requests, I have college and work.

Credits go to.....

ChimiChamo as I copied his code syntax lol

Tomaz for giving me the code syntax for improving the logic

Ilshat52 for originally designing the idea, this only came up in my head when I saw their mod. Find it here
Popular Discussions View All (1)
0
22 Apr @ 3:26am
ฑ"ฎฑ"ฎฑ
Zadiswa
62 Comments
ZE4 11 Jun @ 3:04am 
soud cool
Cirazuny 22 May @ 8:22pm 
I don't know what is this, i just leave this comment to earn my achivement.
legenda121lvl 10 May @ 11:01am 
)))))))))
SonicVoidParticle 9 May @ 4:55am 
More like this pleasssseee!! Great mod!
傲影 1 May @ 11:15pm 
挺不错的看起来更加真实,但会与某些血溅mod起冲突,我将他们的优先级更改就解决了
travpompey 1 May @ 6:23pm 
what map the is place
Dexterous Hobo 28 Apr @ 12:56am 
-Read Q&A section-
-Looks at comments-
"Do people even read?"
-Disappointment-
Super Loutre 6 Apr @ 8:52pm 
This looks pretty damn satisfying I might give it a try really soon !
reximaginatic 4 Apr @ 7:40pm 
damn men
- 23 Mar @ 12:04am 
Hello.
It's such a cool mode
by the way
Zombies don't fly backwards when you shoot a shotgun. How do you fly backwards?