Left 4 Dead 2

Left 4 Dead 2

1,176 betyg
[VScript] Pointblank Shotgun Gibbing
2
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Game Content: Scripts
Innehållsbeskrivningar: Diverse innehåll med vuxet tema, Mycket våld eller blod
Filstorlek
Lades upp
Uppdaterades
3.901 KB
16 feb @ 8:01
17 feb @ 6:33
4 ändringsnotiser ( visa )

Abonnera för att ladda ner
[VScript] Pointblank Shotgun Gibbing

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

Only works in local/single-player.




Ursprungligen skrivet av 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
63 kommentarer
Rackie 9 sep @ 13:05 
Straight up brutality, I like it XD
Unsigned_User 17 jul @ 11:07 
Me gustó más el otro deberías dejarlo aparte este esta muy meh la verdad
ZE4 11 jun @ 3:04 
soud cool
Cirazuny 22 maj @ 20:22 
I don't know what is this, i just leave this comment to earn my achivement.
legenda121lvl 10 maj @ 11:01 
)))))))))
SonicVoidParticle 9 maj @ 4:55 
More like this pleasssseee!! Great mod!
傲影 1 maj @ 23:15 
挺不错的看起来更加真实,但会与某些血溅mod起冲突,我将他们的优先级更改就解决了
Glockandballplayer1 1 maj @ 18:23 
what map the is place
Dexterous Hobo 28 apr @ 0:56 
-Read Q&A section-
-Looks at comments-
"Do people even read?"
-Disappointment-
Super Loutre 6 apr @ 20:52 
This looks pretty damn satisfying I might give it a try really soon !