Left 4 Dead 2

Left 4 Dead 2

681 ratings
Automatic Guns/Autofire VScript
2
   
Award
Favorite
Favorited
Unfavorite
Survivors: Survivors
Game Content: Scripts
File Size
Posted
Updated
1.509 KB
20 Mar, 2023 @ 4:51am
3 May, 2023 @ 5:26pm
2 Change Notes ( view )

Subscribe to download
Automatic Guns/Autofire VScript

In 1 collection by R󠀡F
Muh Vscripts
21 items
Description
Local only.

Turns all semi auto weapons to automatic. Nuff said.
54 Comments
sinwithagrin 13 Jun @ 2:42pm 
can you do the reverse too?
Cr0w 11 Jun @ 1:24pm 
Hi! Question, I'd like to make a change to this script and somehow limit the fire rate on dual pistols by adding a slight wait time in-between the next shot so that it's a little slower while only holding down. Do you know what could possibly get that to work as intended?
打求生的Doro 6 May @ 3:10am 
射击时会引起卡顿
OPapai 23 Apr @ 2:44pm 
thanks and good job
그르르왈왈 27 Jan @ 11:34pm 
Does local-only mean I can't use it online?
PeopleLikeStuff 15 Dec, 2024 @ 9:30pm 
Would it be possible to make this only apply to certain weapons (like the pistols for example)?
4512369781 9 Nov, 2024 @ 7:05am 
@LuckyRoot
yes, use this code in weapon_fire event:
NetProps.SetPropInt(Surv.GetActiveWeapon(), "m_releasedFireButton", 0);
LuckyRoot 22 Oct, 2024 @ 9:26am 
@RF
I see. Then I guess assigning the weapon as either the Hunting or Military Rifle in the weapon script is the only reliable way to do it...
Thanks!
R󠀡F  [author] 21 Oct, 2024 @ 7:10am 
I think its possible but it would be too glitchy due to the client prediction.
LuckyRoot 21 Oct, 2024 @ 6:18am 
@R󠀡F
@4512369781
Hi. Newbie modder here. Is it possible to make a vscript that does the opposite and turns an automatic weapon to semi-auto like the pistol/magnum/hunting rifle/military rifle? If so, may I ask for some pointers regarding the code?