Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
Rifle with Underbarrel Shotgun (Vscript)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Weapons, Scripts
Game Modes: Single Player, Co-op
Weapons: Rifle
File Size
Posted
Updated
29.048 KB
11 Jun @ 2:23pm
13 Jun @ 7:29pm
3 Change Notes ( view )

Subscribe to download
Rifle with Underbarrel Shotgun (Vscript)

In 2 collections by kurochama
Unique Weapons with Special Features
56 items
Underbarrel Shotgun Series
5 items
Description
This one was originally a prototype, as I simply just wanted to test for fun when I remembered about some people requesting underbarrel shotgun as the alternative for m203. But it turned out to be working after testing this :D . Well, that's good news then :D .

So, this mod is about underbarrel shotgun installed on rifle (m16). The template for shotgun itself is from "Improvised Pipe Shotgun" custom weapon by Rectus. I just slightly modified it to become a portable version that can be installed anytime on any weapons. While m203 series requires you to press Scope/ Aim to shoot m203, this one requires you to hold E (Use) button to shoot underbarrel shotgun.


List of features available on "rifle with underbarrel sg.txt" cfg file in "underbarrel shotgun series" folder:
  1. rifle_underbarrel_sg_user: Which type of survivor can use this (bots/ players/ all). For bots, they have 10% chance to use this automatically when they have underbarrel shotgun ammo.

  2. rifle_underbarrel_sg_damage: The damage of underbarrel shotgun. Min= 1, max= no limit.

  3. rifle_underbarrel_sg_shot_count: How many shots until you get underbarrel shotgun ammo.

  4. rifle_underbarrel_sg_gore_mode: When enabled, common infected killed with underbarrel shotgun will have parts of their body destroyed/ gibbed (NOTES: Only compatible with default common skins, & common skin mods that allow gibs on common)


Mechanisms of "Rifle with Underbarrel Shotgun":
  • Keep shooting until you get a notification about underbarrel shotgun ammo.

  • Hold E (Use) & then shoot the gun to use underbarrel shotgun.

  • When using underbarrel shotgun, fire rate will drop until next shot.

  • Underbarrel shotgun only has 1300 shot range max, so it can't be used to shoot zombies from afar.

  • The pellet spread is randomized, so even if you aim at the center of crosshair, there's a chance that the shot will miss if the target is far enough (effective only in close to medium range).

  • Underbarrel shotgun can penetrate multiple zombies at once.

  • Underbarrel shotgun has flat damage, so the shotgun bonus damage on tank is not applied on this one.

  • Underbarrel shotgun can pierce through riot zombie's armor.
    .
  • Underbarrel shotgun can damage objects. It means that it should be able to damage custom enemies/ bosses in some custom campaigns too.

  • Survivors are immune to the underbarrel shotgun (no friendlyfire on teammates).


So, now you can have both rifle & shotgun at the same time with this.


CREDITS:



NOTES:
  • Not all weapons on "M203 Series" are compatible with this, especially those that use E (Use) to shoot m203 (examples: m203 series for snipers, ak47, m60, spas). Actually it won't be bugged if you use both. It's just that the gun will shoot both m203 & underbarrel shotgun at the same time.
14 Comments
Autobot Seaspray 27 Jun @ 3:37am 
holy sh- i remember asking for this before and its a dream come true

masterkeys underrated
Zaden 16 Jun @ 11:21am 
Ahhh... Reminds me of the days I played COD.
Having an under-barrel shotgun, grenade launcher or flamethrower is always fun!
8ceptonix 13 Jun @ 10:08pm 
nice! those could be on other the categories like the desperado series or maybe a new one. Also hopefully someone makes a under barrel shotgun model for the ak
kurochama  [author] 13 Jun @ 6:05am 
@ 8ceptonix , last time I tested with 60 damage, witch still survived when shot in medium range, but she died when shot in close range. You can lower the damage via cfg file if the default 50 damage is still too powerful.
As for that trick you mentioned for sniper, I ever tried that, but via weapon script by changing "weapon_sniper_scout.txt". That was fun enough. But I'm not sure whether I'll implement it on underbarrel for snipers. Currently I'm working on ak47.
8ceptonix 13 Jun @ 4:03am 
damn this hilariously 1 shots witches at a distance without editting the numbers. How about snipers with this but lower its spread so it would look like the sniper critted
kurochama  [author] 12 Jun @ 2:35pm 
@lukepineda42 , probably I'll do that later.
lukepineda42 12 Jun @ 12:37pm 
also ak47 version when?
lukepineda42 12 Jun @ 12:36pm 
finally, underbarrel shotgun