Left 4 Dead 2

Left 4 Dead 2

391 ratings
Foldable Stock for the Auto Shotgun
   
Award
Favorite
Favorited
Unfavorite
Game Content: Weapons, Models
Weapons: Shotgun
File Size
Posted
456.589 KB
17 Feb, 2023 @ 8:25am
1 Change Note ( view )

Subscribe to download
Foldable Stock for the Auto Shotgun

Description
IMMERSION TIME! NOW WITH FULL ONLINE COMPATIBILITY!

In both Left 4 Dead 1 and Left 4 Dead 2, the survivors always extend the stock of the Auto Shotgun in the deploy animation in 1st person. However, in 3rd person, the stock is static and never moves (staying extended at all times).
This mod changes that, so now the stock of the Auto Shotgun will be retracted every time the survivors holster the weapon and will be extended when the weapon is unholstered.

The original mod (which you can find here) made use of a modified version of the Auto Shotgun script (weapon_autoshotgun.txt) with an added "AddonModel" which would be used when the weapon was holstered. This new version on the other hand doesn't use any custom scripts whatsoever but instead takes advantage of a leftover feature from the first game which allows weapons to change back and forth between meshes in a bodygroup called "flashlight". The "magic" is entirely client-side and doesn't need the server to have the mod installed which in turn means you can use this mod in Official Dedicated Servers (or any server for that matter) without having to worry about getting kicked due to server consistency checks. As a matter of fact, the mod should still work for you on any server.

Many thanks to Oxxy. Without him, I wouldn't know about this feature at all.

Known Issues
  • If you go into 3rd person, the stock of your Auto Shotgun will be retracted whether the weapon is holstered or not. This bug only affects the survivor you're playing as, on the rest of survivors the mod works as intended.

Credits
Turtle Rock Studios & Valve: Original assets.
Oxxy: Beta brain rot.
Me: Model edits & Compilling.
37 Comments
Priest 24 Jan @ 4:19am 
I got it, thanks you for the answer.
Really useful mod for immersion, because one particular reanimation by Arima have unfoldable stock
Sergi338  [author] 23 Jan @ 6:36pm 
Yes, this mod only replaces the worldmodel.
The viewmodel is left untouched .
Priest 23 Jan @ 5:55pm 
Sorry for really dumb question, but does it work with custom reanimaions?
Sergi338  [author] 7 Jun, 2023 @ 11:49am 
is not
The Afterman 6 Jun, 2023 @ 6:37pm 
is this beyta
Sergi338  [author] 20 May, 2023 @ 12:44pm 
this is a mod moment
Mr.4ox 20 May, 2023 @ 12:16am 
Is this beta moment or retail moment
Sergi338  [author] 28 Mar, 2023 @ 8:20pm 
actual reskins (a.k.a texture swaps) = yes
custom models = no
TheOptimisticEmo 28 Mar, 2023 @ 3:32pm 
is this mod compatible with other tactical shotgun skins?
anny 24 Feb, 2023 @ 5:57am 
so this is the bright side of L4D2 Modding

I love it