Left 4 Dead 2

Left 4 Dead 2

Selective Fire
463 Comments
wo bist du 18 Jan @ 5:32pm 
翻译
快慢机
按O单发三连发全自动
按P开关保险
imouto10074 26 Nov, 2024 @ 4:38am 
I press P button and crosshair turn into blue,but its not working at all when I press O,and the crosshair just keep in blue.BTW the Safety is working but I can't close it.
EvilJackCarver 19 Nov, 2024 @ 10:52am 
Easy enough to do. If you're using my version of it from 2017, just comment out line 34 (add a "//" at the start) and change 33 to read alias +switchfire firetoggle

Technically you shouldn't even need to comment out L34 since it only gets called from L33.
Doc903 18 Nov, 2024 @ 2:58pm 
Would you be willing to make a dupe of this, without the "safe" option?
Doc903 26 Oct, 2024 @ 8:55pm 
Yeah, autoexec seemed to be the easiest route(for me, at least), and it is beautiful. I have ADS mods, so being able to switch firemodes helps when trying to play tactically with a suppressed weapon.
Ars3ny 2 Sep, 2024 @ 4:56pm 
Just say you don't feel like making a video tutorial instead of sending half of the Old Testament
LoadedAK47  [author] 2 Sep, 2024 @ 6:12am 
I do apologize, but expanding on what eviljack has said this mod page is well documented, check the discussion tab. The step by step for the mod is there including the new method and some optional/alternate version of this mod for you to try.

Sorry there are no plans for a vid tutorial as Valve has made modding this game more annoying and I don't play the game anymore. So this mod is as is. It does work. It just now is a hassle to get working, which the tutorial page covers on getting it to work.
EvilJackCarver 2 Sep, 2024 @ 2:25am 
This was created, published, and uploaded over eleven years ago. It has not been maintained for seven years. In the eleven years since the script was made, and the seven since I stopped maintaining it, everyone involved in the project has been too busy with real-world stuff to bother creating a video tutorial for a six-step install requiring basic computer literacy skills (the most advanced of which is changing file extensions).

Whether or not that constitutes a joke is an exercise left for the reader.
BunZy 1 Sep, 2024 @ 9:13pm 
five star without video tutorial?
is this a joke?
Ars3ny 22 Aug, 2024 @ 7:03pm 
Please, in the name of God. Make a freaking video tutorial
♠Tw1z1^GloBal^ac1D♠ 26 Jul, 2024 @ 9:56am 
how fire from gun im write in console bind mouse1 +fire im not fire im delete mod
EvilJackCarver 22 Jun, 2024 @ 4:05am 
You need to rebind your firing controls. You can do that easily enough in the options menu, or you can type "bind mouse1 +fire" in the console.
NEVADA 21 Jun, 2024 @ 9:02am 
After I installed your shit and then deleted it, all my guns stopped firing, and I checked all the files and subscriptions.
Pemarces273 28 Dec, 2023 @ 8:13pm 
Thanks! This mod is working, not sure how other people finds it not working.
Mike Ross 9 Nov, 2023 @ 3:18pm 
Doesn’t even work at all. Read all your instructions too, easy to follow, but no follow through.
Ruke (Soreasan) 13 Jun, 2023 @ 8:41am 
Edit: Scratch the below. After trying maybe 10-20 minor tweaks to timing, i found that hand clicking could go back to 30 s /3.5s, and changing wait 2; wait 2; to wait 5; wait 4 sped the firing time down to 3.0s.

I did upgrade computers from a 40-60 fps computer to a 144 fps computer. So it appears firing times are the same. I wonder if perhaps the script firing rates may vary by computer [or if the last stand update throttles the wait commands if spammed too often. ]
Ruke (Soreasan) 13 Jun, 2023 @ 3:26am 
Hey this might be really random.

But for dual pistol firing rates. I've been noticing that my old notes (as well as wiki) always listed firing rates of pistol at 10 shots a second. (30 in 3.0s). As well as old human firing rates of (3.5s for 30 shots).

However i seemed to notice that within the last 6 months, it seems like pistol firing rates have gone from 3.0s-3.1s on the holdfire script to 4.0-4.1s per 30 bullets.

It got to the point i actually got bugged enough to dig into the game files and research how to use gcfscape to inspect game files and i noticed it appears the file for weapon_pistol.txt appears to have been altered.

weapon_pistol.txt
//"CycleTime" "0.15"
"CycleTime" "0.175" // (Delay between shots, in s. Dual pistols appear to be coded as two single pistols wielded twice(?) )

Has anyone else using hold2fire or hand pistols noticed them seeming to fire slower than before? It seems like you're capped at 7.5 shots a second now vs 10 shots a second before.
LoadedAK47  [author] 19 Mar, 2023 @ 9:00am 
The mod adjust the key bindings, through a script to function. Which is cached separately. When you uninstall, simply got to ur key binding settings and set/revert them to default
ZeddieMcDazzler 17 Mar, 2023 @ 10:51am 
also i think it's because some piece of files get stuck even if you try deleting it permanently with recycle bin it's still there but what surprises me the most that it removed my firing key because of course this mod needs to do the file configuration so it likely would mix up with the main script
ZeddieMcDazzler 17 Mar, 2023 @ 10:44am 
thanks for the help though now i can change the crosshair color
ZeddieMcDazzler 17 Mar, 2023 @ 10:44am 
okay so i realized now why i couldn't shoot my gun , apparently something automatically removed my firing key which is of course mouse 1
EvilJackCarver 17 Mar, 2023 @ 10:34am 
Type in console:

bind mouse1 +attack
cl_crosshair_blue 220
cl_crosshair_green 182
cl_drosshair_red 138

You can change the cl_crosshair_* color values to your liking, if you so wish. Interested to know how it broke your game, though.
ZeddieMcDazzler 17 Mar, 2023 @ 10:16am 
i broke my game with this thing so i deleted the mod cuz i don't want it anymore then when i go back my crosshair is red entirely and i can't shoot my weapons
maceleet 9 Feb, 2023 @ 2:49am 
Holy Jesus! I think I guessed what burst mode is for... 😂
Andromeda 27 Nov, 2022 @ 10:49pm 
I can relate to the wrist pain. My wrist hurts for no reason sometimes so I have to wear a brace for it
Ruke (Soreasan) 27 Nov, 2022 @ 10:31pm 
Oh, yeah i mostly made the holdfire variant mostly just for personal use since i loved using pistols akimbo but didn't want to worry about the carpal tunnel or wrist pain while doing l4d2 pve.

I've just tbh never really been too sure of the rights or credits, as it mentions it's more of a coder's mismash of 5 other people's work to make something with cycling modes + rapid fire and messing with it a bit.

As mentioned steam removed the ability to just subscribe and have the script run, so you'd still need to copy the script into the autoexec files anyways and it's forked from their code.

I mostly made it for personal use but if anyone wants to use it, go ahead. I'd be fine with it being shared or improved or tweaked for my portions except i would have no idea how the credit rights with it being a frankenwork of 5 different people would go. That's mostly why i haven't. Anyways if you copy it over to the autoexec.cfg, should work.
Andromeda 18 Nov, 2022 @ 5:42pm 
Oh
EvilJackCarver 18 Nov, 2022 @ 5:35pm 
There wouldn't be any benefit from doing that, since folks would still need to extract and manually copy everything over. Easier to leave it as a thread here than it is to upload it.

And that's not going into the fact that I don't have (nor do I plan to seek) permission from its author to do so.
Andromeda 18 Nov, 2022 @ 2:53pm 
Could you upload the Hold2Fire script into its own workshop item?
Andromeda 15 Nov, 2022 @ 7:46pm 
Thanks!
EvilJackCarver 13 Nov, 2022 @ 11:51pm 
The pump shotguns are semiautomatic (1 click = 1 bullet). The others (SPAS 12, XM1014) are automatic (will keep firing until you run out of shells), I believe .
Andromeda 13 Nov, 2022 @ 11:32am 
Then, which one do shotguns fall into?
EvilJackCarver 13 Nov, 2022 @ 12:16am 
Burst is 1 click = 2 or 3 bullets, depending on the gun.
Andromeda 12 Nov, 2022 @ 12:06pm 
And then burst is like the shotguns?
EvilJackCarver 12 Nov, 2022 @ 10:21am 
Barring limitations in the game,

Semi-automatic: 1 click = 1 bullet, no matter how long you hold down the mouse button. Think default handgun/sniper behaviour.

Full-automatic: Click and hold, and it'll keep firing until you either let go of the mouse button or run out of ammo. Think default assault rifle/M60 behaviour.
TheGamingVoid 12 Nov, 2022 @ 12:28am 
yes! same here...
Andromeda 11 Nov, 2022 @ 9:18pm 
Also, I'm still confused about semi vs full auto. Could you give a couple examples of both? I promise I'm not trying to be annoying, I'm just kind of stupid
Andromeda 11 Nov, 2022 @ 5:12pm 
Could you make the Rapid Hold2Fire script into a separate workshop item?
Andromeda 10 Nov, 2022 @ 4:46pm 
Oh
EvilJackCarver 10 Nov, 2022 @ 4:13pm 
The Rapid Hold2Fire script does not have its own workshop page. The script is posted in its entirety in the body of that discussion post.
Andromeda 10 Nov, 2022 @ 4:09pm 
Is there a link to take me directly to the workshop page for the Rapid Hold2Fire script. My brain doesn't work well and I can't find it. Sorry
Andromeda 10 Nov, 2022 @ 4:02pm 
Thank you!
EvilJackCarver 10 Nov, 2022 @ 12:09am 
Andromeda 9 Nov, 2022 @ 1:17am 
Could you give me the workshop link?
EvilJackCarver 9 Nov, 2022 @ 12:53am 
The best you'll get is probably going to be Soreasan's Rapid Hold2Fire script in the pinned discussions.
Andromeda 9 Nov, 2022 @ 12:43am 
Could you make a version that makes all weapons have full-auto?
Andromeda 9 Nov, 2022 @ 12:31am 
Thank you
EvilJackCarver 9 Nov, 2022 @ 12:09am 
To massively simplify things, semi-automatic means if you pull and hold the trigger, only one bullet is coming out; whereas full-automatic means if you pull and hold the trigger, it won't stop until the magazine is empty.

Granted, there are nuances that make the above inaccurate (and not just compared to real-world ballistics; the wait command is imprecise), but it's close enough that it works for a layman's explanation for how a video game script that emulates a selective-fire mechanism.
Andromeda 8 Nov, 2022 @ 4:24pm 
what's the diff between Semi- and full-auto? I genuinely don't know.
Jungler 3 Nov, 2022 @ 6:49pm 
Thank you so much it does work you just gotta follow the instruction