Left 4 Dead 2
907 ψήφοι
[VScript] Weapon Timer Enforcer
2
2
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Game Content: Weapons, Scripts
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
33.425 KB
5 Σεπ 2023, 21:46
25 Σεπ 2023, 12:30
4 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
[VScript] Weapon Timer Enforcer

ΠΕΡΙΓΡΑΦΗ
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.
Δημοφιλείς συζητήσεις ΠΡΟΒΟΛΗ ΟΛΩΝ (1)
0
25 Σεπ 2023, 12:26
ΕΠΙΣΗΜΑΣΜΕΝΟ: HELP: Enforcements, Their Process and Customisations.
Orinuse
95 σχόλια
Black Wolf 23 Ιουλ, 15:20 
thank you for your answer!
Orinuse  [Δημιουργός] 23 Ιουλ, 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 Ιουλ, 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  [Δημιουργός] 19 Ιουν, 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 Ιουν, 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  [Δημιουργός] 10 Ιουν, 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 Ιουν, 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 Απρ, 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 Ιαν, 15:38 
Is it possible to include the chainsaw? I would like to speed up the equip animation
T626 31 Ιαν, 8:56 
@Orinuse Thank you.