Left 4 Dead 2

Left 4 Dead 2

1,251 betyg
[VScript] Weapon Timer Enforcer
2
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Game Content: Weapons, Scripts
Filstorlek
Lades upp
Uppdaterades
33.425 KB
5 sep, 2023 @ 21:46
25 sep, 2023 @ 12:30
4 ändringsnotiser ( visa )

Abonnera för att ladda ner
[VScript] Weapon Timer Enforcer

Beskrivning
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. Layers? Who told you about that?

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.
Populära diskussioner Visa alla (1)
0
25 sep, 2023 @ 12:26
KLISTRAD: HELP: Enforcements, Their Process and Customisations.
Orinuse
119 kommentarer
Hot Wet Nobel Laureates 14 jun @ 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 jun @ 6:28 
this stutter also happen when reloading too so its kinda very annoying
3 foxes in a trenchcoat 9 jun @ 6:23 
with this addon enabled there is a slight microstutter when switching weapons
ἀποτρόπαιος 28 apr @ 11:50 
TEST AND TANKS
Hot Wet Nobel Laureates 25 apr @ 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 @ 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 @ 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 @ 13:23 
Hope the bug with incapped pistols gets fixed sooner rather than later
Wee Wee 2.0 10 dec, 2024 @ 17:39 
Is there a way to put the enforcement on specific weapons or no?
Shadowysn 8 dec, 2024 @ 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.