Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
Railgun Hunting Rifle (Vscript)
   
Award
Favorite
Favorited
Unfavorite
Game Content: Weapons, Scripts
Game Modes: Single Player, Co-op
Weapons: Sniper
File Size
Posted
Updated
30.552 KB
25 Jul @ 3:17pm
25 Jul @ 10:11pm
2 Change Notes ( view )

Subscribe to download
Railgun Hunting Rifle (Vscript)

In 1 collection by kurochama
Unique Weapons with Special Features
57 items
Description
Ellis, with the knowledge shared by Darth Vader's mechanics back then when Darth Vader's army got lost in "The Last Baktun" campaign, successfully modified his hunting rifle with railgun feature. The railgun shot was so fast & strong that it could stumble a witch & push special infected & tank back.

Yeah, that's the very short background story. So, this mod gives a special upgrade to hunting rifle to allow "Railgun Shot". "Railgun Shot" will leave some electrical traces when shot. I'll explain later on the mechanisms below.


List of features available on "railgun hunting rifle.txt" cfg file:
  1. hunting_rifle_railgun_user: Who can use railgun (bots/ players/ all). For bots, they have 10% chance to use railgun shot on each shot.

  2. hunting_rifle_railgun_damage: The base damage of the railgun shot. The final damage is 5-6x damage of this base damage.

  3. hunting_rifle_railgun_gore_mode: When enabled, common infected killed with railgun shot will have parts of their body destroyed/ gibbed (not really useful, as sniper bullet already gibs a common.This is just for a complementary).

  4. railgun_effect: Which electricity type is used. 0= Default like those on animated previews, 1= Alternative with thicker & more dynamic electricity


Mechanisms of "Railgun Hunting Rifle":
  • When you have more than 5 ammo clip, hold E (Use) & then shoot to use "Railgun Shot". 5 ammo clip will be consumed on each use.

  • "Railgun Shot" leaves some electrical traces when used & some small sparks when the bullet hits objects other than zombies. When hitting zombies, there will be extra blood splatters.

  • "Railgun Shot" has 100% accuracy as long as the target is at the center of crosshair.

  • "Railgun Shot" causes a short delay after use, like 0.5-1 second, so it can't be spammed.

  • "Railgun Shot" final damage is 5-6x damage from the value of "hunting_rifle_railgun_damage". Normal hunting rifle bullet is still applied, so basically the final damage is 2nd damage after the normal bullet damage.

  • "Railgun Shot" causes short knockback to the shooter (1-2 steps backward). For the zombies, common & witch will stumble if they're not killed in one shot, while special infected & tank will be pushed back quite far.

  • "Railgun Shot" can hinder charger's charge attack when he's shot during charging. Charger shot with "Railgun Shot" will stop for around 0.5 second before he starts charging again. Sometimes it completely cancels his charging attack.

  • "Railgun Shot" bypasses riot zombie's armor.

  • Survivor teammates are immune to "Railgun Shot" damage. However, they will still take the normal hunting rifle bullet damage.


So with this mod, you can still escape from witch & tank even with only a hunting rifle in hands.


CREDITS:


NOTES:
  • As "Railgun Shot" can cause a knockback, player can use it to give additional upward knockback after jumping by shooting downward when in the air, though the knockback is only in short range.
2 Comments
kurochama  [author] 12 Aug @ 2:41pm 
@ Saw◭Eater , thanks :steamhappy:
Saw◭Eater 12 Aug @ 1:47pm 
i love ur scripts