Left 4 Dead 2

Left 4 Dead 2

[VScript] Weapon Timer Enforcer
119 Comments
Hot Wet Nobel Laureates 14 Jun @ 11:50am 
Anyone know if there’s a way ti see the weapon durations without having to use this mod? It’d be handy to check if my custom weapons actually are messing with the durations beforehand.
3 foxes in a trenchcoat 9 Jun @ 6:28am 
this stutter also happen when reloading too so its kinda very annoying
3 foxes in a trenchcoat 9 Jun @ 6:23am 
with this addon enabled there is a slight microstutter when switching weapons
ἀποτρόπαιος 28 Apr @ 11:50am 
TEST AND TANKS
Hot Wet Nobel Laureates 25 Apr @ 6:36pm 
I've been looking at the guide for custom durations to see if I could potentially fix the pistol relaod durations when downed, but I don't know where even to begin. Anyone have any luck by any chance?
sans shapiro 19 Mar @ 6:23am 
Is there a mod like this for worldmodel collisions? I’ve noticed some custom weapons and items that become grabbable through the walls in Whitaker's gun shop, or that bots can't see.
i eat tissue 14 Mar @ 5:20am 
In my testing this mod doesn't work with weapon mods that have RNG reloads. could be a problem on my end though but people should take note if they're not
Hot Wet Nobel Laureates 19 Jan @ 1:23pm 
Hope the bug with incapped pistols gets fixed sooner rather than later
Wee Wee 2.0 10 Dec, 2024 @ 5:39pm 
Is there a way to put the enforcement on specific weapons or no?
Shadowysn 8 Dec, 2024 @ 8:54pm 
@n0tEll10T
The mod was made only with Local Servers in mind, it may be possible to support dedicated servers but there isn't a good reason to.
Weapon model mods being used on the server via hosting is the cause of weapon timers going out-of-sync in the first place. Dedicated servers don't use nor benefit from weapon model mods compared to local installations of games people mod with the Workshop, so there's nothing to fix since the timers are already in-sync with the default models on the Dedicated server.
john "handgun" counterstrike 8 Dec, 2024 @ 7:41pm 
So... you can't enforce a timer on DS, at all?
Shadowysn 21 Nov, 2024 @ 8:51pm 
@n0tEll10T
Dedicated servers don't usually need this mod since weapon mods aren't applied to them server-side and the timing will be dictated using the default models.
john "handgun" counterstrike 21 Nov, 2024 @ 8:48pm 
Used this addon in my dedicated server, and it spams this message:
UTIL_GetListenServerHost() called from a dedicated server or single-player game.
vauiol 4 Nov, 2024 @ 10:51am 
Same thing as Vanyarin as well
Hot Wet Nobel Laureates 3 Nov, 2024 @ 4:18pm 
Same thing as Vanyarin
howowive tweasure mwountain 23 Oct, 2024 @ 2:24am 
Thank you for the mod! I have noticed one minor bug with it though.

When incapped, this makes the pistols reload faster than they normally would. Usually you reload slower than normal when in this state but with this mod enabled you reload at regular speed.

This happens with single, dual pistols and Magnum.
Shadowysn 16 Oct, 2024 @ 6:22am 
@Red
This mod doesn't modify or come with any sound file, it's purely server-side-script based.
Something else could've gone wrong with either sound mods or the sound cache with how much L4D2 throws a tantrum with sound editing in general.
Red 16 Oct, 2024 @ 6:15am 
I keep having audio issues with a second of annoying loud static and sometimes the survivors voicelines are sped up and I think it's this mod.
Wee Wee 2.0 12 Oct, 2024 @ 11:12am 
I don't know why but I don't know if the mod is working or not, the animation for my weapons are all the same and the timing is too. I am using MW19 weapon mods
RainyRayne 15 Sep, 2024 @ 10:41pm 
This is bugged in local multiplayer. Makes everyone besides the host play the helping hand animation when firing the single pistol, even with the stock no mods pistol.
Orinuse  [author] 3 Sep, 2024 @ 6:28am 
Sorry to disappoint.. that is sadly not possible without hacking! :(
Kaleidø.vtf 31 Aug, 2024 @ 5:34pm 
pill mods ALSO will cause delays, you think you could add a fix to this for this mod too?
Orinuse  [author] 26 Aug, 2024 @ 7:17am 
Hmm, if you have Sourcemod then would this Sourcemod plugin [forums.alliedmods.net] count? Though, I'm not sure what sort of mod could cause this.. so I'm sorry if it doesn't end up helping!
RageGamer 25 Aug, 2024 @ 8:10am 
Orinuse, I don't know if you could possibly make this, but could you make a weapon ammo enforcer, because one of my mods is increasing my shotgun ammo, but I don't know what it is. I have no "Better Shotgun" mods installed, so could you please make a weapon ammo enforcer if you could? Thank you!
Black Wolf 23 Jul, 2024 @ 3:20pm 
thank you for your answer!
Orinuse  [author] 23 Jul, 2024 @ 12:33pm 
@Black Wolf Oops, sorry! Let me respond to both:
1) Even if the script could, melees are structured differently so complete support is probably not guaranteed currently. It may be possible to support.. but no guarantees! :S
2) The Chainsaw deploy, right? Sadly It needs the actual hacking that Sourcemod is famous for, sorry!
Black Wolf 21 Jul, 2024 @ 6:30pm 
Hey, i love this mod
Is it possible to change the animations of melee? I have been trying but it doesn't seem to work.
And sorry to ask again, what about the Chainsaw? You replied to everyone but me ;-;
Orinuse  [author] 19 Jun, 2024 @ 2:45am 
@⋁ɪʀᴜѕ™ Oh dear, but sorry, I do not know for sure. Once you mod beyond the scope of my script's tools, anything is possible and you'd have to brace yourself for anything!
⋁ɪʀᴜѕ™ 16 Jun, 2024 @ 3:59am 
When i try to do it on dedicated server, customized wte_data.txt and all weapons scripts located left4dead2/scripts/ (weapon_autoshotgun, weapon_smg ect.) too. After that reload animation being faster but some animation statter after reload. Whats problem?
Orinuse  [author] 10 Jun, 2024 @ 6:45am 
@Dusk Holloway Sorry! The file is located inside the VPK file.

@tonGreNto This script takes full control and forces the weapons to act according to it, a customised version of the script's textfile of data would be required! Sorry for the trouble!
Dusk Holloway 8 Jun, 2024 @ 2:10am 
"To start, there's a file named 'ems/orin/wte_data_default.txt'," Nothing in that folder for me, restart, turn off every mod leaving this the only thing, nothing.
tonGreNto 18 Apr, 2024 @ 10:13am 
if i modify a weapon mod, _layer anim is longer than non_layer anim, and non_layer anim has the same frames and fps as the original anim, so that I can interrupt the _layer anim because non_layer anim has finished playing (non_layer anim is a timer, _layer anim is the real anim you can see in the game). But if I using this mod, the _layer anim couldn't interrupt anymore, the game forces animation play completely, I dont know why
Black Wolf 31 Jan, 2024 @ 3:38pm 
Is it possible to include the chainsaw? I would like to speed up the equip animation
T626 31 Jan, 2024 @ 8:56am 
@Orinuse Thank you.
Orinuse  [author] 31 Jan, 2024 @ 12:36am 
@T626 I can vouch for using "-dev", can't say if there are any other alternatives to that, sorry!

@Mister X At the moment, the script lacks support for the shotguns' fire rate so it seems like you've encountered something deadly. I understand why you'd want to do that though, I'll see if I can make this possible.
Mister X 30 Jan, 2024 @ 8:36am 
I tried to modify the shotgun fire rate using format

["12"] = [0.725, "m_flNextAttack"]

it works, but only for the first 2 shot, then the fire rate return to normal unless the sequence is back to 2 or idle state then the fire rate is back to fast again

But with SPAS I try to lower it to 0.6 somehow it consistent with all 10 bullets which is.... weird. Do you know how to fix this?
T626 29 Jan, 2024 @ 6:18am 
@Orinuse So just "-dev" or "-developer" in the game's launch options, right?
Hot Wet Nobel Laureates 21 Jan, 2024 @ 9:31am 
Ok, thanks
Orinuse  [author] 21 Jan, 2024 @ 9:12am 
@Hot Wet Nobel Laureates
They should automatically appear once you enter a local server with "sv_cheats 1", though the debug info is made minimalist so don't expect too much. Hope this helps!
Hot Wet Nobel Laureates 20 Jan, 2024 @ 2:08pm 
I have another question. When you launch the game with -dev, how do we enable debug info on weapon sequences?
Orinuse  [author] 19 Jan, 2024 @ 10:50pm 
@joaogabrielfpereira1
Sent you a friend invite, I'll help you navigate your issue.
clever john 19 Jan, 2024 @ 5:55pm 
I don't understand how to install this script correctly, can anyone help me?
Hot Wet Nobel Laureates 19 Jan, 2024 @ 3:11pm 
Ok, thanks!
Orinuse  [author] 19 Jan, 2024 @ 2:38pm 
@Hot Wet Nobel Laureates
Technically yes, it's the VPK's "ems/wte_orin_default.txt" file and can be accessed using GCFScape or Crowbar. :crtcool:

But un-technically, this is the guide I used to calculate the deploy and reload times from. Go to the animation you're interested in, then divide its frames by its FPS count and you get the duration you want!
Hot Wet Nobel Laureates 19 Jan, 2024 @ 12:54pm 
Out of curiosity, is there by any chance a lost of every weapons deploy and reload times?
Atsalenios Timoros 5 Dec, 2023 @ 12:24am 
Thanks for letting me know mate.
Cheers!
Orinuse  [author] 4 Dec, 2023 @ 9:09am 
@Atasalenois Timoros Big! I'll break it into two parts for easy comprehension:

1) Comment #1:

Modifying playback rate on animations leads to undefined behavior unfortunately, so no support forever and ever!

2) Comment #2:

That's unexpected, thank you! I hope you are able to overcome your obstacles, it's almost the festive season to receive blessings after all!
Atsalenios Timoros 4 Dec, 2023 @ 7:33am 
I would also like to give you 3 ideas for scripts that i would like to do myself if i actually knew how :D.

- Tank that runs faster when it's burning (like in LD41). I think it encourages more thoughtful and strategic gameplay. Now we just spam molotovs when they are available without consequences and make the battles easier.

- Enable collision between survivors so that they cant walk through the bodies of teammates.
I find it very annoying when playing in Expert when we accidentally walk through our teammates while retreating and instantly teamkill each other by accident.
I understand that it could lead to trolling when playing with random people, where they could be blocking and trapping teammates, but with premade team i think it would play better.
- Disable reloading while shoving. Again i think it makes the game more brainless and easy. But that's just my opinion.

I'm curious what you and other people think of those ideas.
Atsalenios Timoros 4 Dec, 2023 @ 6:51am 
One the best mods in the workshop!
Thank you so much for sharing this mate! It makes weapon mods so much better when we can control the reload times.
I do wonder though. At the moment i can choose when to interrupt the animation but is it possible through this mode to also make the motions in the reload animations to speed up or slow down?
Cause that would be pretty dope too.
Kousaka Kyousuke 26 Nov, 2023 @ 12:37am 
Thank you :100: