Left 4 Dead 2

Left 4 Dead 2

[VScript] Weapon Timer Enforcer
119 kommentarer
Hot Wet Nobel Laureates 14. juni kl. 11:50 
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. juni kl. 6:28 
this stutter also happen when reloading too so its kinda very annoying
3 foxes in a trenchcoat 9. juni kl. 6:23 
with this addon enabled there is a slight microstutter when switching weapons
ἀποτρόπαιος 28. apr. kl. 11:50 
TEST AND TANKS
Hot Wet Nobel Laureates 25. apr. kl. 18:36 
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. kl. 6:23 
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. kl. 5:20 
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. kl. 13:23 
Hope the bug with incapped pistols gets fixed sooner rather than later
Wee Wee 2.0 10. dec. 2024 kl. 17:39 
Is there a way to put the enforcement on specific weapons or no?
Shadowysn 8. dec. 2024 kl. 20:54 
@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 kl. 19:41 
So... you can't enforce a timer on DS, at all?
Shadowysn 21. nov. 2024 kl. 20:51 
@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 kl. 20:48 
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 kl. 10:51 
Same thing as Vanyarin as well
Hot Wet Nobel Laureates 3. nov. 2024 kl. 16:18 
Same thing as Vanyarin
howowive tweasure mwountain 23. okt. 2024 kl. 2:24 
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. okt. 2024 kl. 6:22 
@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. okt. 2024 kl. 6:15 
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. okt. 2024 kl. 11:12 
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 kl. 22:41 
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  [ophavsmand] 3. sep. 2024 kl. 6:28 
Sorry to disappoint.. that is sadly not possible without hacking! :(
Kaleidø.vtf 31. aug. 2024 kl. 17:34 
pill mods ALSO will cause delays, you think you could add a fix to this for this mod too?
Orinuse  [ophavsmand] 26. aug. 2024 kl. 7:17 
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 kl. 8:10 
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. juli 2024 kl. 15:20 
thank you for your answer!
Orinuse  [ophavsmand] 23. juli 2024 kl. 12:33 
@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. juli 2024 kl. 18:30 
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  [ophavsmand] 19. juni 2024 kl. 2:45 
@⋁ɪʀᴜѕ™ 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. juni 2024 kl. 3:59 
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  [ophavsmand] 10. juni 2024 kl. 6:45 
@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. juni 2024 kl. 2:10 
"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 kl. 10:13 
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 kl. 15:38 
Is it possible to include the chainsaw? I would like to speed up the equip animation
T626 31. jan. 2024 kl. 8:56 
@Orinuse Thank you.
Orinuse  [ophavsmand] 31. jan. 2024 kl. 0:36 
@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 kl. 8:36 
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 kl. 6:18 
@Orinuse So just "-dev" or "-developer" in the game's launch options, right?
Hot Wet Nobel Laureates 21. jan. 2024 kl. 9:31 
Ok, thanks
Orinuse  [ophavsmand] 21. jan. 2024 kl. 9:12 
@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 kl. 14:08 
I have another question. When you launch the game with -dev, how do we enable debug info on weapon sequences?
Orinuse  [ophavsmand] 19. jan. 2024 kl. 22:50 
@joaogabrielfpereira1
Sent you a friend invite, I'll help you navigate your issue.
clever john 19. jan. 2024 kl. 17:55 
I don't understand how to install this script correctly, can anyone help me?
Hot Wet Nobel Laureates 19. jan. 2024 kl. 15:11 
Ok, thanks!
Orinuse  [ophavsmand] 19. jan. 2024 kl. 14:38 
@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 kl. 12:54 
Out of curiosity, is there by any chance a lost of every weapons deploy and reload times?
Atsalenios Timoros 5. dec. 2023 kl. 0:24 
Thanks for letting me know mate.
Cheers!
Orinuse  [ophavsmand] 4. dec. 2023 kl. 9:09 
@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 kl. 7:33 
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 kl. 6:51 
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 kl. 0:37 
Thank you :100: