Left 4 Dead 2

Left 4 Dead 2

6,246 ratings
Left 4 Lib
4
3
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
File Size
Posted
Updated
195.461 KB
22 Oct, 2021 @ 7:41am
15 Feb @ 1:55am
24 Change Notes ( view )

Subscribe to download
Left 4 Lib

In 1 collection by smilzo
Left 4 Fun
4 items
Description
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]
Popular Discussions View All (5)
2
29 Jan, 2023 @ 12:46am
Adding custom chat/damage hooks
Kerouha
0
16 Jun, 2024 @ 2:53am
PINNED: Compatibility with other addons
smilzo
0
27 Mar @ 6:38am
[quote=smilzo]Did you know? You can literally turn L4B2 into L4B1 (kinda) by changing some settings. Here: https://github.com/smilz0/Left4Bots/tree/main/l4b1_style_cfg you can find the L4B2 settings to make L4B2 look like L4B1. It won't be 100% the same b
Francis
258 Comments
MrSwatPL | Bloodycase.com 17 Jun @ 7:47am 
Maybe I'm missing something in my load order or i gotta just ignore it?
MrSwatPL | Bloodycase.com 17 Jun @ 7:34am 
I have an error: despite having this on, the mod says I need this mod in order to work, like wth? :(
I am subscribed to this left4bots still gives me a warning saying this mod needs to be installed and enabled. can anyone help ?
FreddyMannLive 3 Jun @ 1:39am 
okay
TheTuncT 16 May @ 7:43am 


I've added this addon to the Tacticam Addon Collection. Check it out here: Tacticam


[Люблю Леру]berser 14 May @ 10:27am 
XD
Totenkha 10 May @ 3:18am 
Başarımları etkiliyormu?
Francis 27 Mar @ 6:37am 
[quote=smilzo]Did you know? You can literally turn L4B2 into L4B1 (kinda) by changing some settings.
Here: https://github.com/smilz0/Left4Bots/tree/main/l4b1_style_cfg
you can find the L4B2 settings to make L4B2 look like L4B1. It won't be 100% the same because many features have been rewritten and behave slightly differently but it will be pretty close.
Maybe i forgot some setting and there is a closer configuration than this. Let me know if you find a better one. [/quote]
Felthead 11 Mar @ 2:58pm 
...you could've named it... ANYTHING else...
smilzo  [author] 28 Feb @ 7:53am 
lol