Raised This Month: $ Target: $400
 0% 

L4DToolZ Metamod plugin (l4d1 & l4d2)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ivailosp
Senior Member
Join Date: Feb 2009
Old 05-30-2009 , 22:06   L4DToolZ Metamod plugin (l4d1 & l4d2)
Reply With Quote #1

this plugin add this cvar to l4d and l4d2
sv_maxplayers - max human players that can join your server. -1 to disable and use standart check (range 0 to 32)
sv_removehumanlimit - remove kick for players when they are more than 8 for vs and 4 for coop(0 to disable, 1 to enable)
sv_force_unreserved - if you set it to 1 before connection from lobby your server will stay unreserved and allow players to connect using connect command, this command sets sv_allow_lobby_connect_only 0, so you need to create lobby using ms_force_dedicated_server and then connect to server, your friends may see wrong max players in friend lobby, so give them ip.

1.0.0.9f for L4D1: https://forums.alliedmods.net/showpo...postcount=1123
1.0.0.9h for L4D2: http://forums.alliedmods.net/showpos...postcount=1211
1.0.0.9f source: https://github.com/ivailosp/l4dtoolz/

Last edited by ivailosp; 07-06-2013 at 20:46.
ivailosp is offline
KrankFL
Member
Join Date: May 2009
Old 05-31-2009 , 06:11   Re: L4DToolZ Metamod plugin
Reply With Quote #2

Nice one! it is working pretty good

Thanks!
KrankFL is offline
NeilF
Junior Member
Join Date: Mar 2010
Old 03-11-2010 , 15:42   Re: L4DToolZ Metamod plugin
Reply With Quote #3

Sorry, can someone explain how I actually install this? I'm just trying to set up my own server to allow 5 or more of us to play in campain.

So where do I put the files in the zip?
NeilF is offline
waertf
Member
Join Date: Jan 2009
Old 05-31-2009 , 07:59   Re: L4DToolZ Metamod plugin
Reply With Quote #4

Good Job !
__________________
waertf is offline
lovemf
BANNED
Join Date: May 2009
Old 05-31-2009 , 17:47   Re: L4DToolZ Metamod plugin
Reply With Quote #5

good job

but i change

sm_cvar z_minion_limit 20

why i only can spawn 5 boss?

thanks
lovemf is offline
lovemf
BANNED
Join Date: May 2009
Old 05-31-2009 , 17:49   Re: L4DToolZ Metamod plugin
Reply With Quote #6

and can do this?

sv_maxplayers max human players that can join your server
sv_maxslots max max srcds.exe slots
lovemf is offline
ivailosp
Senior Member
Join Date: Feb 2009
Old 05-31-2009 , 18:03   Re: L4DToolZ Metamod plugin
Reply With Quote #7

sm_cvar z_versus_smoker_limit
sm_cvar z_versus_boomer_limit
sm_cvar z_hunter_limit
sm_cvar z_gas_limit 2
sm_cvar z_max_player_zombies
sm_cvar survivor_limit
play with this cvars, some of then need a plugin to be able to chage the limit

sv_maxslots? max slots is set to 32 in my plugin - you need more?
ivailosp is offline
lovemf
BANNED
Join Date: May 2009
Old 06-01-2009 , 05:35   Re: L4DToolZ Metamod plugin
Reply With Quote #8

Quote:
Originally Posted by ivailosp View Post
sm_cvar z_versus_smoker_limit
sm_cvar z_versus_boomer_limit
sm_cvar z_hunter_limit
sm_cvar z_gas_limit 2
sm_cvar z_max_player_zombies
sm_cvar survivor_limit
play with this cvars, some of then need a plugin to be able to chage the limit

sv_maxslots? max slots is set to 32 in my plugin - you need more?
i'd mean is use two parameters

add sv_maxslots can change scrds.exe maxslots and another sv_maxplayers change game max player

if i set

sv_maxslots 32
sv_maxplayers 20

then server only can join 20 players and 12 slots let Monster bot join.


sorry my bad english. and thanks agaian.
lovemf is offline
satannuts
Member
Join Date: Jan 2010
Old 02-10-2010 , 15:59   Re: L4DToolZ Metamod plugin
Reply With Quote #9

ivailosp
Great plugin - I'm a big fan.

back on page one someone asked:
Quote:
Originally Posted by lovemf View Post
and can do this?
sv_maxplayers max human players that can join your server
sv_maxslots max max srcds.exe slots
and you responded:
Quote:
Originally Posted by ivailosp View Post
...
sv_maxslots? max slots is set to 32 in my plugin - you need more?
I think he was requesting if you could ADD that functionality to your plugin.

Could you add the cvar to limit slots AND a separate one to limit human players?

I wanted to set up a reserved slot to kick high ping player when admin connects to my server [running l4dtoolz with bebop for 8 player coop]
cvars in server.cfg:
sm_cvar sv_maxplayers 9 //8 man coop
sm_cvar sv_visiblemaxplayers 8 //-1 default
sm_cvar sv_removehumanlimit 1
sm_cvar sv_unlock_sb_add 1
sm_cvar sv_force_unreserved 1
//sm_cvar z_max_player_zombies 4
sm_cvar survivor_limit 8 //default 4

from sourcemod.cfg:
Quote:
// Specifies how the reserved slots plugin operates. Valid values are:
// 0 : Public slots are used in preference to reserved slots. Reserved slots are freed before public slots.
// 1 : If someone with reserve access joins into a reserved slot, the player with the highest latency and
// no reserved slot access (spectator players are selected first) is kicked to make room. Thus, the reserved
// slots always remains free. The only situation where the reserved slot(s) can become properly occupied is
// if the server is full with reserve slot access clients.
// --
// Requires: reservedslots.smx
// Default: 0
sm_reserve_type 1

// Specifies the number of reserved player slots. Users with the reservation
// admin flag set will be able to join the server when there are no public slots
// remaining. If someone does not have this flag, they will be kicked.
// (Public slots are defined as: maxplayers - number of reserved slots)
// --
// Requires: reservedslots.smx
// Default: 0
sm_reserved_slots 1

// Specifies whether or not reserved slots will be hidden (subtracted from max
// slot count). Valid values are 0 (visible) or 1 (hidden).
// --
// Requires: reservedslots.smx
// Default: 0
sm_hide_slots 1
I don't understand too much script, but when reserved slots hides a slot, it changes sv_visiblemaxplayers according to the max slots.

From reservedslots.sp:
Code:
SetConVarInt(sv_visiblemaxplayers, g_MaxClients);
}

public OnMapStart()
{
    g_MaxClients = GetMaxClients();
    
    if (GetConVarBool(sm_hide_slots))
    {        
        SetVisibleMaxSlots(GetClientCount(false), g_MaxClients - GetConVarInt(sm_reserved_slots));
    }
}

public OnConfigsExecuted()
{
    if (GetConVarBool(sm_hide_slots))
    {
        SetVisibleMaxSlots(GetClientCount(false), g_MaxClients - GetConVarInt(sm_reserved_slots));
    }    
}
I have sv_visiblemaxplayers set to 8, but the reservedslots plugin changes it to 31 when sm_hide_slots set to 1.

Would you be able to fix this by adding a new cvar?
or is this problem beyond the scope of your plugin?
satannuts is offline
ivailosp
Senior Member
Join Date: Feb 2009
Old 06-01-2009 , 12:08   Re: L4DToolZ Metamod plugin
Reply With Quote #10

my plugind don't have sv_maxslots, l4d also don't have sv_maxslots.
but if you set only sv_maxplayers 20 it will let 20 ppl to join and will have 12 slots for bots
ivailosp is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode