Left 4 Dead 2

Left 4 Dead 2

Sprint System (Vscript)
37 Comments
Kirbo2424 28 Aug @ 4:33pm 
if you want to make non-toggleable and held down

alias +sprint "kuro_sprint_mode 1"

alias -sprint "kuro_sprint_mode 0"

bind shift +sprint

also you can just unbind e and then rebind the interact button so you can just have a custom button
kurochama  [author] 18 Aug @ 11:45pm 
@Zaden , try "m_iFOV". This controls the zooming state. 0 is to zoom out back to normal state, while value above 0 affects the zoom rate (how far the zoom). I used this netprops on my "M203 Series" mods. If you want to apply sprint on zoom, you can use timer to check if "m_iFOV" is changed. If it's changed, change the movement speed etc.
Zaden 18 Aug @ 4:36pm 
@kurochama
By any chance, do you know how to bind it with the Scope-In or Zoom input inside the VScript?
I've tried "m_hZoomOwner" and "ZoomButton = 524288"
kurochama  [author] 16 Aug @ 4:35am 
@ Zaden , there's a netprops for changing movement speed. It's "m_flLaggedMovement". You can check the scripts for some examples. This netprops can still be active on ladders & in water, though the speed is still reduced & not as fast as when sprinting on normal grounds.

@ ZOLKING , it should work automatically on campaign mode, as on the animated previews, I tested on campaign mode. But you need to host the local server.
ZOLKING 15 Aug @ 11:38pm 
How do I make it work in campaign mode and not just survival?
Zaden 12 Aug @ 3:36pm 
@kurochama
May I ask, how did you manage to do it?! :O
I've been trying to do a vscript that would give you a speed boost (mine would be while you scoped-in), and yours is the only scrip that lets me do it :mbnecodown:
kurochama  [author] 13 Jul @ 8:13am 
@Wero !!! , the custom button works like flashlight. One press to activate, & another press to deactivate. & the formats on the alias must be like that on the example to set a toggle on/off on a button.
Wero !!! 13 Jul @ 6:42am 
@kurochama for some reason I can't stop running when I try to use the stop button
kurochama  [author] 12 Jul @ 7:48pm 
@Wero !!! , just write it on console like on the example. Another example by using "TAB":
bind tab "sprint+"
alias sprint+ "kuro_sprint_mode 1; bind tab sprint-"
alias sprint- "kuro_sprint_mode 0; bind tab sprint+"
Wero !!! 12 Jul @ 4:32pm 
I didn't understand how to change the buttons...
kurochama  [author] 10 Jul @ 11:54am 
@톰 , actually the value there is not on/ off but the number of ammo clip added. For example, if you set "Smg Ammo Clip" to 50, after reloading & shooting your first bullet, you'll get 99 ammo clip (50 + 50 - 1 bullet shot).
10 Jul @ 8:59am 
The number of bullets in the magazine.
I've used the "Merciless Bots" you mentioned
"More primary ammo clip" has only on and off
It is difficult to adjust the details of the numbers
Pwnage Peanut 8 Jul @ 5:54pm 
Rushers gonna rush
kurochama  [author] 8 Jul @ 7:52am 
@ 톰 , ammo clip, or reserve ammo? If it's reserve ammo, normally that can be done by changing some cvars related to certain guns, like "ammo_smg_max", "ammo_assault_rifle_max" etc. Even "Admin System" should be possible to modify these cvars.
If it's ammo clip, I already made that long time ago, but it's bundled with "Merciless Bots" mod as one of the features there.
8 Jul @ 7:30am 
I'm sorry, I was talking about the magazine capacity for local servers
君を三年待つ. 8 Jul @ 6:55am 
Bro, do you remember that chat with Wuchan at the M60 turret last year, about the map not working sometimes? What you told Wuchan back then was that it doesn't work on some maps, right?
kurochama  [author] 8 Jul @ 4:13am 
Shunyang 8 Jul @ 4:00am 
ayo, can you tell me what map is this from ur preview? been looking for this map.
o_-KILLJOY-_o 7 Jul @ 8:10pm 
E makes sense
君を三年待つ. 7 Jul @ 10:43am 
Excuse me, is the moving speed also unlimited and can be adjusted at will?
Mickey Adaptus 7 Jul @ 10:31am 
Great mod, thank you
kurochama  [author] 7 Jul @ 12:00am 
@happyzombie , you can try it first. I said on the "Notes" that it may be incompatible, though when I tested to sprint in the water, it somehow worked. If "Tactical Movement" uses the same method as how walking in water works, then sprinting may work. Otherwise, the scripts might try to override each other when sprint is activated, depending of which timer tick is faster to trigger movement speed modification.
happyzombie 6 Jul @ 11:09pm 
Can this work with script mods like Tactical Movement?
kurochama  [author] 6 Jul @ 11:03pm 
@톰 , what is "number of long rounds"? Could you explain it?
5 Jul @ 4:24am 
Please create an adon that can control the number of long rounds of guns for local servers
kouga 4 Jul @ 7:46pm 
@kurochama, woohoo!! thank you so much!
kurochama  [author] 4 Jul @ 5:09pm 
@Kouga , You can try "allow_custom_button_for_sprint" feature that I added just recently. Follow the instructions above to bind a key
kouga 4 Jul @ 3:42pm 
i see! what about holding direction for a few seconds to sprint?
kurochama  [author] 4 Jul @ 3:26pm 
@Unsants , yes, even faster than bhop if the "sprint_speed" is set to certain value :steamhappy: .

@Kouga , double tap might be tricky as it can trigger a bug where the sprint is active by accident.

@Courier 6-μ , for now there's no setting to change it. I chose E (Use) button as it's one of safest button to activate sprint, as players only use E to open doors & operate switches, generator, etc.
Courier 6-μ 4 Jul @ 2:54pm 
how to change button for activating it?
Coolio 4 Jul @ 1:18pm 
jelq mod when?
TunedHonda 4 Jul @ 12:21pm 
mango mango mango
kouga 4 Jul @ 8:44am 
what do you think about a mode where you sprint if you double tap WASD instead?
Unsants 4 Jul @ 8:20am 
Does that mean that the survivors can move faster now?
death to amerikkka 4 Jul @ 7:45am 
interesting
kurochama  [author] 4 Jul @ 7:36am 
@Kouga , that will conflict with "walk" function.
kouga 4 Jul @ 5:10am 
holy peak. i must ask though why not attach the function to shift?