Left 4 Dead 2

Left 4 Dead 2

483 ratings
VScript Autoloader
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Game Modes: Co-op
Items: Other
File Size
Posted
Updated
98.302 KB
20 Feb, 2020 @ 3:23am
30 Sep, 2020 @ 3:06am
28 Change Notes ( view )

Subscribe to download
VScript Autoloader

Description
Please load this mod first, otherwise it may be overwritten by other mods



This is the autoloader for the squirrel script (Vscript)

This mod is to resolve the conflict caused by replacing the scriptedmode.nut file

You can put your own files in (scripts/vscripts/autorun/)

The name is not arbitrary, the name must be script_ (number) .nut

Scripts placed in autorun will be automatically loaded in any game mode

Example:
script_1.nut , script_2.nut , script_125.nut

Currently supports 1000 files to load automatically

File prefixes currently supported:
  • script_ (auto call hook func)
  • loader_ (auto call hook func)
  • lib_ (will not call hook func)
  • weapon_ (will not call hook func)
  • server_ (will not call hook func)
  • (map name)_ (auto call partial hook func)
    example: c1m1_hotel_1.nut, c2m1_highway_2.nut
  • (game mode name)_ (auto call partial hook func)
    example: coop_1.nut, versus_2.nut
  • (map name)_(game mode name)_ (auto call partial hook func)
    example: c1m1_hotel_coop_1.nut, c2m1_highway_versus_2.nut

The loader will automatically call the function in the script, which means you don't need to call the function yourself

And the loader provides the function of adding chat commands, you can add chat commands at will

FAQ:

Q: Conflict with some mods
A: Because most of the script mods have replaced the same file (scriptedmode.nut), this is also the purpose of making this mod, but it still needs everyone to actively update and compatible

Q: Mod does not work
A: Go check the list of mods, there may be a conflict

Q: I have modified the priority and moved the mod to the addons folder, but it still doesn’t work
A: View guide How to make any script mod compatible with loader. This method should be 100% successful

Chat commands:
  • !qtgloader_reload - Reload loader
  • !qtgloader_reload_file - Reload all loaded files
  • !qtglib_reload - Reload qtglib

Console commands:
  • scripted_user_func qtgloader_reload - Reload loader
  • scripted_user_func qtgloader_reload_file - Reload all loaded files
  • scripted_user_func qtglib_reload - Reload qtglib
Popular Discussions View All (1)
1
6 Jan, 2021 @ 10:17am
PINNED: BUG Report
.
46 Comments
GI1TcH!mg G@M3R 22 Sep, 2023 @ 7:37pm 
Hey I have a question that I wanna ask you, um how exactly is RNG done and can it be checked from vscript?

because I noticed an issue with survivor legs, I don't know if this is something you can fix but i'm hoping you will understand the problem- when you have a skin that changes layers like lets say you have a bikini skin in third person but in first person it's a different clothing of a layer, it doesn't match with the first person legs model
with the third person model
there are skins that have layers but they just don't match with third and first person
I tried talking to Shadowsyn but he says "not sure how RNG different model parts work tbh, i don't know how it's done or whether it can even be checked for by the script"
Flatbread | #FixTF2 18 Dec, 2022 @ 2:07pm 
Since Team Fortress 2 recently got support for VScript (pulled from L4D2), would it be possible to implement this into TF2 as well?
Ralsei 8 Nov, 2022 @ 3:00pm 
eh for those michael bay likers of l4d2, This Addon can conflict with the Bridge Destruction Add-on which mysteriously disables the auto-spawning of bridges by the way
WellDare 31 Aug, 2022 @ 1:43pm 
When i die this mod makes the time longer
SolexRaeve v3 18 Aug, 2022 @ 7:32am 
what character select command L4D2?
Fsky大魔王 7 Jan, 2022 @ 1:54am 
东西很好,但是团灭重启时必定会卡住差不多半分钟才正常,看了下评论日期好像是临死一搏版本开始的问题,唔,大佬你已经放弃修复了吗
Harry Osporn Nobel Prize 4 Dec, 2021 @ 5:55am 
hello, can you update this mod cause its causing crash when using with other vscript mod
Borb 29 Jul, 2021 @ 5:57pm 
Gilbert, The Creator 3 Jul, 2021 @ 9:38pm 
Can you fix this? everytime when you die and restart it takes a while to load again or it just straight up crashes i had the 3rd person shotgun sfx fix and it crashes
Janivena 19 Mar, 2021 @ 3:25am 
crash