Left 4 Dead 2

Left 4 Dead 2

857 ratings
[VScript] Weapon Timer Enforcer
2
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Weapons, Scripts
File Size
Posted
Updated
33.425 KB
5 Sep, 2023 @ 9:46pm
25 Sep, 2023 @ 12:30pm
4 Change Notes ( view )

Subscribe to download
[VScript] Weapon Timer Enforcer

Description
Your weapon mods might be changing the duration of your draw and reload!

Deploys and reloads don't have a set duration, they take their server-sided animation's duration. So on local servers where the hoster uses animation mods.. well in short, it's bad news to players accustomed to the default durations. To that bad news earlier, I propose a solution: Subscribe to my script, because it will enforce the vanilla animation timers' durations on reloads and deploys.

So how does it work? To start, there's a file named 'ems/orin/wte_data_default.txt', and inside it is data of the durations and animation sequence IDs for the relevant vanilla timers. That file is read when the script first runs, then cached. The default file can't and shouldn't be edited, instead create a copy of the default file as 'left4dead2/ems/orin/wte_data.txt' then edit your new file. Don't leave out the documentation inside.

I hope my script services you well, have a good one.

Warning!
This script relies on sequence order. In local servers, if your weapon mods act strange after installing my script (having strangely-timed deploys or reloads), then the sequence order is mismatched and you must customise your own 'left4dead2/ems/orin/wte_data.txt' file.

Launch the game with the "-dev" option to enable debug information on weapon sequences. You must also start a session using the "map" console command.

Credits
> mav - Commissioner of this valuable modding asset.
> hckrmnasia - Technical advisor.
Popular Discussions View All (1)
0
25 Sep, 2023 @ 12:26pm
PINNED: HELP: Enforcements, Their Process and Customisations.
Orinuse
92 Comments
Orinuse  [author] 19 Jun @ 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 @ 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 @ 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 @ 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 @ 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 @ 3:38pm 
Is it possible to include the chainsaw? I would like to speed up the equip animation
T626 31 Jan @ 8:56am 
@Orinuse Thank you.
Orinuse  [author] 31 Jan @ 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 @ 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 @ 6:18am 
@Orinuse So just "-dev" or "-developer" in the game's launch options, right?