Left 4 Dead 2

Left 4 Dead 2

234 ratings
Foldable Stock for the Auto Shotgun
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Models
Weapons: Shotgun
File Size
Posted
237.133 KB
28 Apr, 2021 @ 5:34pm
1 Change Note ( view )

Subscribe to download
Foldable Stock for the Auto Shotgun

Description
IMMERSION TIME!

In both Left 4 Dead 1 and Left 4 Dead 2, the survivors always extend the stock of the Auto Shotgun in their first person animation while in third person the stock is extended at all time. This mod changes that, so now the stock of the Auto Shotgun will be retracted whenever the survivors are holding another item and go back to be extended when the survivors are currently holding said weapon.

The way this is achieved is through editing the original script for the Auto Shotgun (weapon_autoshotgun.txt) to make use of an "AddonModel" which is the model used for the weapon/item when is on the back of the survivors. Be aware that because of this, the shotgun will turn invisible on your back when you're playing online in servers without this mod.

Credits
Turtle Rock Studios & Valve: The Auto Shotgun model.
Me: Lazy edit in Blender.
25 Comments
SquidFromAsia 21 Feb, 2023 @ 1:54pm 
why you hating who gave you a wedgie
咖啡 21 Feb, 2023 @ 10:27am 
This garbage will only appear in single player games? Never appeared in multiplayer games
咖啡 21 Feb, 2023 @ 10:23am 
What kind of garbage is this? Will it only appear in single player games? Garbage
Sergi338  [author] 17 Feb, 2023 @ 8:34am 
Sorry for the wait, but you can now a version of the mod that doesn't uses scripts at all right here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2934735652
T626 25 Jan, 2023 @ 5:19pm 
@Sergi388 The frustrating thing that's still going on is that after doing this process the foldable stock on the auto shotgun still isn't working in-game. I repeated this process again after AxeKiller6277 emailed a new, updated version of his mod. After doing it again, it's still not working. I was wondering if you and I could find a way to resolve this?
T626 25 Jan, 2023 @ 5:18pm 
@Sergi388 Hello again, my friend. After working extensively with my good friend, AxeKiller6277 over email and steam chat, analyzing and modifying the coding of Axe's Auto shotgun (Insane) script mod via implanting "AddonModel" "models/w_models/weapons/w_autoshot_m4super_folded.mdl" under the "// Weapon data is loaded by both the Game and Client DLLs." of the file. I then put the newly modified "l4d2 weapon_autoshotgun (insane).txt" into a folder labeled "Scripts" within a desktop folder labeled "Tester". Then I but the "Tester" folder into the vpk.exe file within "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\bin". And lastly put the new Tester vpk. file within the addon directory file.
Sergi338  [author] 6 Jan, 2023 @ 10:09am 
go ahead
T626 6 Jan, 2023 @ 8:17am 
@Sergi388 With your confirmation I now know that it's possible. I recently downloaded Left 4 Dead 2 Authoring Tools, but I've never used it before. So I want to try see how I can help AxeKiller6277 to modify this so they work compatibly together. I also wanted to humbly ask you for your permission to modify this Epic mod of yours?
T626 5 Jan, 2023 @ 8:24pm 
@Sergi388 Okay thanks so much for telling me, mate!
Sergi338  [author] 5 Jan, 2023 @ 5:13pm 
Is one or the other plus in the description I explained how it is achieved so you can modify the mod you're linking in order to have the foldable stock + the stats changes.