Left 4 Dead 2

Left 4 Dead 2

Automatic Guns/Autofire VScript
57 Comments
R󠀡F  [author] 28 Aug @ 5:44pm 
Nothing prevents you from modifying mods for private use.
AVGyerra 26 Aug @ 11:20pm 
Am I allowed to modify your script so that only the akimbo pistols are on auto? I'm not quite sure... how.. but I want to experiment
More power 15 Jul @ 6:56am 
Hi! Could you make a script which turns all full auto weapons into semi-auto, please?
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?
RedBigEvilDevil 8 Oct, 2024 @ 6:08pm 
@see no weevil maybe this mod will help you, it reduces the chance of instant killing of a common infected with a sniper weapon https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3284675086
Conditional Formatting 23 Sep, 2024 @ 10:23pm 
biblically accurate akimbo pistols, i can see john woo smiling on this mod from above
XxEeNnXxEeIi 26 Aug, 2024 @ 8:17am 
I made this before long time ago, but my version is little buggy on dual-pistol that rate of fire is uncontrollable can you give me some idea for fix that?
pet 23 Aug, 2024 @ 7:25am 
mayhaps
R󠀡F  [author] 23 Aug, 2024 @ 7:01am 
Just change the ammo type.
pet 23 Aug, 2024 @ 6:51am 
what about removing the auto-kill feature of semi-auto sniper rifles against common infected, especially at expert since that type? like, it has to always correspond to the value i've set on my customized weapon script. idk if it's only a feature of the ammo types used in weapon script or a vscript feature itself since a). i haven't tried it yet b). my coding knowledge knowledge isn't all that extensive.
R󠀡F  [author] 21 Aug, 2024 @ 11:55am 
@lec Hardcoded, not possible.
pet 21 Aug, 2024 @ 11:49am 
Hm, what about removing the burst feature for combat rifle?
Matikanetannhauser 16 Aug, 2024 @ 2:16am 
Thanks for making Akimbo Pistols somewhat useful as a secondary SMG
Haru 9 Aug, 2024 @ 1:44am 
感谢
zong 28 Jul, 2024 @ 1:07pm 
makes akimbos shoot fast af
Stepheezy 24 Jul, 2024 @ 9:11am 
fire asf
G11_Operator 30 Jun, 2024 @ 1:58pm 
the pistols have a switch now?
R󠀡F  [author] 8 Jun, 2024 @ 2:13am 
@nelson010491 Literally vanilla feature.
nelson010491 7 Jun, 2024 @ 11:48pm 
bug: 9mm pistol with 30 ammo plays empty-reloading animation when there's 1 ammo left.
R󠀡F  [author] 4 May, 2024 @ 12:50pm 
Only if you host.
iMonkey 4 May, 2024 @ 12:11pm 
Does it work in play online ?
(^^^) Xeno 26 Apr, 2024 @ 6:31am 
Can this be only apply for the scar and dual pistol?
古月寂 8 Apr, 2024 @ 6:16am 
我还要:steamthumbsup:
lookyvk 16 Jan, 2024 @ 8:54am 
please also do the opposite
SleepyJoe 15 Dec, 2023 @ 5:21pm 
can you make something like this that does the opposite, turn on automatic weapons to semi?
豊川祥子 22 Nov, 2023 @ 9:24pm 
爱护鼠标,呵护手指:steamthumbsup:
76561198268536306 13 Nov, 2023 @ 11:33pm 
It's good because it makes the dual pistols viable for once, other than that, I kinda feel weird using this
事已至此,先睡觉吧 12 Nov, 2023 @ 9:38am 
手指+左键寿命拯救者:steamthumbsup:
Kousaka Kyousuke 5 Nov, 2023 @ 9:04am 
You saved my finger, thank you:100::yaranaika:
勇者林克 19 Oct, 2023 @ 5:32am 
thank you:steamthumbsup:
Lord of the Pile 16 Oct, 2023 @ 3:12pm 
i love it :steamthumbsup:
威龙 11 Oct, 2023 @ 11:09pm 
打写专太需要这个了,不然拿小手枪打手都要按烂了
尼古拉斯-厚礼蟹 1 Oct, 2023 @ 5:29am 
连点脚本:steamthumbsup::steamthumbsup::steamthumbsup:
Khalid2ez 15 Aug, 2023 @ 3:45pm 
genious
Poolsup (TH) 25 Jun, 2023 @ 8:48am 
autofire is not good idea is spread bullet on crosshair...
wo bist du 27 May, 2023 @ 4:06pm 
my finger said thank u:steamhappy:
IKeinub 25 May, 2023 @ 2:59pm 
MC Be like
驶向黎明 22 May, 2023 @ 4:37pm 
and u ,my friend,u are the real hero,this is best autofire mod i know and i try
R󠀡F  [author] 3 May, 2023 @ 5:27pm 
@4512369781 Works great, thanks for that. Updated the addon.
R󠀡F  [author] 3 May, 2023 @ 5:39am 
Need to try that.
4512369781 3 May, 2023 @ 5:36am 
I know a simpler code, like this:
NetProps.SetPropInt(Surv.GetActiveWeapon(), "m_isHoldingFireButton", 0);