Left 4 Dead 2

Left 4 Dead 2

5,097 betyg
Left 4 Lib
4
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Game Content: Scripts, Miscellaneous
Filstorlek
Lades upp
Uppdaterades
219.136 KB
22 okt, 2021 @ 7:41
16 jun @ 2:08
23 ändringsnotiser ( visa )

Abonnera för att ladda ner
Left 4 Lib

I 1 samling av smilzo
Left 4 Fun
4 artiklar
Beskrivning
This addon contains some shared VScript code that is used by my addons:

This addon is mandatory if you have one of the addons listed above. They will not work without this!


Centralized User System
L4L also contains a centralized user system that is shared among all my addons.
The system automatically assigns a user level to the joining player. The other addons will use this level to give/restrict access to certain features to that player.

The L4U user levels are:
  • Admin
  • Friend
  • User
  • Griefer
When you first host a local game with this and one of my other addons (Left 4 Fun, Left 4 Bots, Left 4 Lib), you (the host) are automatically added as admin and you will be admin on all the addons.

You can add other admins by editing the file 'ems/left4lib/cfg/admins.txt' or directly ingame with the following commands:
  • Via chat: !l4u add [player/character name] admin
  • Via console: scripted_user_func l4u,add,[player/character name],admin
Remove the admin with:
  • Via chat: !l4u remove [player/character name]
  • Via console: scripted_user_func l4u,remove,[player/character name]
At the same way you can assign a Friend or Griefer level to a player:
  • Via chat: !l4u add [player/character name] [friend/griefer]
  • Via console: scripted_user_func l4u,add,[player/character name],[friend/griefer]
And you can remove the assigned level the same way you remove admins.

The Friend and Griefer lists are saved into the files 'ems/left4lib/cfg/friends.txt' and 'ems/left4lib/cfg/griefers.txt'.
The players who do not belong to any of these lists are automatically given the normal User level.


Addon settings

L4L also has its own settings. You can find more details HERE[github.com].

Some of these settings (like hooks_chatcommand_trigger) affect all the addons that use this library.

You can change the settings by editing the file 'ems/left4lib/cfg/settings.txt'.


Compatibility

This should be fully compatible with any Admin System/VSLib version and most addons in general.


Are you a L4D2 modder?

You are free to use the features contained in this addon, if you want to. Technical details can be found in the form of comments inside the .nut files.
Only one thing i ask you: please, do not put the L4L files in your addon but consider referencing L4L as an external required addon like i do in L4F, L4B and L4G. Reason for this is that by duplicating this library you will create multiple versions of it making the addons using the library incompatible with each other.

More info can be found on the L4L GitHub Repository[github.com].


Like my mods?
Donations are not required but are greatly appreciated.
[ko-fi.com]
Populära diskussioner Visa alla (4)
2
29 jan, 2023 @ 0:46
Adding custom chat/damage hooks
Kerouha
0
16 jun @ 2:53
KLISTRAD: Compatibility with other addons
smilzo
0
6 sep @ 9:13
Left 4 lib causes my melee and shove to be OP
Average Water Enjoyer
240 kommentarer
Zuza 21 dec @ 7:06 
I had to subscribe all mods because they made game harder on normal dificult, boomer and zombies have too much health. Now trying to get rid of all this stuff
Wenda 20 dec @ 10:10 
im getting a crash with this too now
dritsss 17 dec @ 12:04 
why is it crashing? :steamsad:
smilzo  [skapare] 4 dec @ 8:52 
@Sefo For L4L it's exactly that "workaround" for empty server crash. Basically sb_all_bot_game is set/reset by L4L whenever the first human player joins the server / last one disconnects. This should allow the use of that cvar without crashes, as long as there is nothing else setting that cvar. This is why i said to remove it from convars.txt and cfg and make sure that you have no other addon/plugin setting it.
Sefo 2 dec @ 15:08 
@smilzo I forgot to ask, what is the difference between workshop L4B2/L4L mods from their dev versions?
Sefo 27 nov @ 6:58 
@smilzo Got it, I'll keep it in mind. For now I use stable L4B2 + L4L on the servers and monitor how everything works. Thanks again!
smilzo  [skapare] 27 nov @ 6:52 
@Sefo with dev version you had to remove sb_all_bot_game from anywhere (convars.txt, cfg and launch). allow_all_bot_survivor can stay.
Sefo 27 nov @ 6:38 
P.S.
I tried dev versions of L4B2 + L4L and they didn't help, the server kept crashing instantly on startup and map change. Until I removed allow_all_bot_survivor_team 1 and sb_all_bot_game 1 from L4B2 convars.txt and left sm_cvar sb_all_bot_game 1 + sm_cvar allow_all_bot_survivor_team 1 in my server.cfg. Weird configs conflict.
Sefo 27 nov @ 6:31 
@smilzo Thank you for your quick response and help.
You were right, it's about those commands: allow_all_bot_survivor_team 1 and sb_all_bot_game 1. They were written in my server.cfg and, apparently, somehow conflicted with the same commands in the L4B2 convars.txt. As soon as I removed these 2 commands from convars.txt - the server stopped crashing.
Hybrid 24 nov @ 16:11 
Whenever I try to spawn a bot via Admin System, the bot fails to spawn and I get this error

[L4L][ERROR] HooksHub.InterceptChat - Exception in func 'L4LROOT': attempt to call 'null'