AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus (https://forums.alliedmods.net/showthread.php?t=92663)

HL-SDK 05-17-2009 22:54

[TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
2 Attachment(s)
This is copied from l4dmods forum. I wrote it. If it does not belong here, feel free to prune it and throw it in the trash. I trust the sourcemod crowd is sharp enough to skip to step 3 or 4 and write their own .cfgs

Getting started...
Admins should have these options with sm_execcfg or adminmenu -> server -> execute cfg (needs to be added to cfg list).
I personally had luck with the chat command "/execcfg <filename>"

This is highly customizable, I prefer to run 5v5 versus. In that case to spawn the infected bots I use a modified version of: http://forums.alliedmods.net/showthread.php?t=84681 that does not show log messages.
This is beta, no guarantees are made, report bugs/issues here. This procedure was tested on 32-bit winXP steam dedicated server with sourcemod 1.2.0 and all plugins/extensions posted.
Hunterbrute please take no offence, you inspired me earlier this month with your infected gameplay on versus. I got a similar result by going to VS, switching teams then going to survival and triggering the event. The whole thing was pretty complicated, I'll admit.

---
EDIT

After much testing, the best way to switch between modes is sending /execcfg sourcemod/<gamemode>.cfg. This may/may not disconnect extra players. Let me know what kind of results you get and happy hunting!
The only console spam I have seen is from the plugin that creates bots (2 of them). I'll have a look at taking care of that, but I might not, considering it is just commenting out a .sp file :crab:

Link to that modified version is here: http://forums.alliedmods.net/showpos...75&postcount=9

---Updated files with l4d_maxplayers <= 18
---You will find 10 different configuration files in the .zip archive.

Downtown1 05-18-2009 00:57

Re: [TUTORIAL] [L4D] 12-Player Survival
 
Quick question, if it's 12 player survival then why did you set maxplayers to 18? :).

Quote:

sm_cvar sv_visiblemaxplayers 18 //I set to maxplayers
Please, please, remove this or set it to -1. I worked hard to make my extension report the right amount of players without using this command. The right way to use sv_visiblemaxplayers would be with a reserved slots plugin (i.e. l4d_maxplayers 13, sv_maxvisibleplayers 12), not to do what the extension already does.

Quote:

sm_cvar z_max_player_zombies 4 //Stock
sm_cvar survivor_limit 4 //Stock
Minor nitpick: I would prefer sm_resetcvar here.

HL-SDK 05-18-2009 09:48

Re: [TUTORIAL] [L4D] 12-Player Survival
 
Thank you for letting me know that that was not needed. I changed the maximum players in survival up so high because each infected bot takes up a player slot. I ran into problems with 14 survivors and 18 players, particularly the console was complaining that it couldn't create a hunter and a tank. The limit was reduced to 12, allowing up to 6 special infected at a time.

These are only results of my testing, if anyone has suggestions or corrections, they are welcomed.

ivailosp 05-18-2009 10:58

Re: [TUTORIAL] [L4D] 12-Player Survival
 
in surv mode si can be up-to 4 smokers, 4 hunters and 2 tanks :} so you need more free slots

HL-SDK 05-18-2009 11:49

Re: [TUTORIAL] [L4D] 12-Player Survival
 
Quote:

Originally Posted by ivailosp (Post 829910)
in surv mode si can be up-to 4 smokers, 4 hunters and 2 tanks :} so you need more free slots

Do you know what usually spawns in coop on "impossible"? I think I only saw one special at a time which doesn't make too much sense.

Downtown1 05-18-2009 12:35

Re: [TUTORIAL] [L4D] 12-Player Survival
 
Hi, I look at your 12surv.cfg again.

Quote:

sm_cvar l4d_maxplayers 22
Will not work. Only valid values are between -1 and MaxClients (which is 18) ... so -1 and 18. Anything else it will get reset to the old value. This is because if you had more than 18 clients the game would just crash since the game limits it to a maximum of 18 currently.

Furthermore, you do not need to set it as #survivors+#infected. l4d_maxplayers is ONLY for human players. Bots safely ignore this value, so set it the same as you would set the survivor_limit in the case where all humans are playing survivor.

Once again though, you are trying to get 22 clients into the game. That will just not work AFAIK since it's currently hardcoded to be 18 by Valve. So either you allow less SI to spawn (less hunters, more tanks :P) or you just play with 8 survivors (8 sur + 10 inf = 18 clients total).

Hunterbrute 05-18-2009 17:07

Re: [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
Downtown is correct, with 16 players the SI stop spawning in larger groups and the survivor team becomes over powered.

Number Six 05-19-2009 00:01

Re: [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
Lobby started VS > playing > finish campagn > switch .cfg survival x8 but server blocked on versus mode (no possibility change with cvar and others method , lobby reservation think (?)) , BUT THE GOOD NEWS .... ! ^^ , people joining with no problem !! OK they are surprised (its no versus question) , but possibly joined without problem the survival x8 started versus , just the lobby reservation blocked mod the problem .

"This is highly customizable, I prefer to run 5v5 versus. In that case to spawn the infected bots I use a modified version of: http://forums.alliedmods.net/showthread.php?t=84681 that does not show log messages."
Interest !!! Where where ???? lol

HL-SDK 05-19-2009 13:43

Re: [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
1 Attachment(s)
I just commented out the logging parts. I want to link to the original plugins pages as much as possible since they may update. Chances are, I will not update with them. Either way, this should reduce console spam at times.

I do not know how starting a game from lobby works but I am glad you had some success. You mentioned not being able to do versus. Check that mp_gamemode changes to versus, then load up a versus map and check that the z_max_player_zombies and survivor_limit are at the right numbers.

The way I connect is set sv_allow_lobby_connect_only to 0 and just direct connect.

Downtown1 05-19-2009 15:57

Re: [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
There is also at least one plugin that is maintained and supports 8v8 versus :

L4D Super Versus - http://forums.alliedmods.net/showthread.php?p=830069

Might be a worthwhile addition.

Number Six 05-19-2009 16:18

Re: [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
yup super versus run great ;)

The major problem for me , the respawn infecteds blocked on 4 with the plugin , and very slowwwwwwwww ......
Playing last night on the visual77 server , and on all infecteds respawn very fast (and furious) and multiples boomers/smokers/hunters :shock: , not limited 4 !
With the super versus , survivor 6 np , infected 6 (players humains) but not for the bots ...
please help me !! :oops:

Special cvars ? Plugins ? Others ? ...

DDR Khat 05-19-2009 17:53

Re: [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
Quote:

Originally Posted by Number Six (Post 830649)
yup super versus run great ;)

The major problem for me , the respawn infecteds blocked on 4 with the plugin , and very slowwwwwwwww ......
Playing last night on the visual77 server , and on all infecteds respawn very fast (and furious) and multiples boomers/smokers/hunters :shock: , not limited 4 !
With the super versus , survivor 6 np , infected 6 (players humains) but not for the bots ...
please help me !! :oops:

Special cvars ? Plugins ? Others ? ...

Care to explain what you mean in this situation "Not for the bots"?
There are no bot infected in versus mode. If you mean co-op mode, the A.I director will not spawn more than the Server cvars allow.

As for spawning in versus I have no issue at all, I played earlier and had an entire team of 8 players in versus spawning as hunters and stuff.

GrossKopf 05-25-2009 15:43

Re: [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
I installed it and it seems to be working nicely. I haven't been able to fully test it yet, but I have a question. I tried to add a line to the configs to change the name of the server, depending on the config, but that doesn't seem to work.

For example, 5v5 VS, I put this in:

sm_cvar hostname "FLOT #2|5v5 Versus|FLOTGaming.net"

but it didn't change the name. I also tried without sm_cvar and it didn't work. Any suggestions?

GrossKopf 05-25-2009 17:04

Re: [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
Ok, did some more testing, by myself and I found some problems. I didn't test each and every config and I didn't write down specific problems, but in general, in the VS configs, if I was infected, the bots had a tendancy to huddle together. Sometimes they stopped doing anything and just stood around like they were waiting for something. In 8v8 Versus, as the survivor, I found that I couldn't open the safe house door. It was telling me to wait until all players were ready. In survivor mode, when I loaded, the survivors were already fighting the infected and they started on the outside part of the lighthouse fence (at the bottom of the road).

I might test each config with my clanmates when I have more time but generally it seems this is bugged.

Slash The Mighty 06-01-2009 06:56

Re: [TUTORIAL] [L4D] Many-Player Survival/Coop/Versus
 
This is pretty awesome, and I even got a server host company into making me a custom deal about hosting a L4D server with this on, for only £6 a month even!

+Karma, and a tip for your tutorial. You should find a vote plugin, modify it slightly (with permission of cors), allowing players to start a vote for which config should be used, and the config with the most votes gets executed.

Edit:

Apparently karma was removed, so I'm just gonna give you a thumbs up and say thanks instead. :P


All times are GMT -4. The time now is 18:09.

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