by Tesseract » Fri Feb 14, 2014 11:49 pm
I've recently finally got an opportunity to play Zdoom cooperatively with friend after many years. Netcode was as great as I was afraid of, but after we've gone through desyncs (mostly caused by our mistakes) and eventually dealing even with
this bug (by using more stable net connection), we had lots and lots of fun.
Unfortunately, after we had arrived in Doom 2, we've noticed lots of extra ammo scattered around maps. I always thought there is distinct coop and deathmatch flag on things, but apparently vanilla maps have only one, universal multiplayer flag. That means deathmatch specific stuff is always presented in coop, which breaks the game flow quite horribly. This issue was already looked at and worst case (deathmatch weapons everywhere) got it's own dmflag. Other things like ammo and items sadly didn't got the same treatment.
I've found hard to believe noone asked for such feature before, and indeed they did.
http://forum.zdoom.org/viewtopic.php?f=18&t=23196
http://forum.zdoom.org/viewtopic.php?f=4&t=33722
http://forum.zdoom.org/viewtopic.php?f=4&t=13578
http://forum.zdoom.org/viewtopic.php?f=18&t=11609
One guy even did this
http://forum.zdoom.org/viewtopic.php?f=19&t=25544
The requests themselves were NOed, but it seemed to me no strong points against such addition were raised and in one case it was closed mostly due poster's rudeness.
As patch like this is really trivial, I went ahead and coded it.
In addition of weapon removing flag, there are two new ones, one that disallows spawning of extra multiplayer monsters and second that disallows spawning of the rest of multiplayer only actors (minus guns and monsters). Setting everything off effectively makes coop completely like singleplayer.
I've chosen this way just because I didn't want to eat too much new dmflags (as dmflags2 is nearly full), but having separate ammo/items/armor/... is definately an option. I'd also note that 'rest' covers even stuff like extra barrels in E1M1 and other accidentaly multiplayer flagged things.
Also, if explanation for specific 'extra monsters' option is needed, many levelpacks are coop-balanced for several players with appropriate enemy hordes (Scythe 2 for example). If you play 'singleplayer style', trying not to die often, with only two players, this is sometimes not desirable.
These options are used only in coop, but alwaysapplydmflags forces them in deathmatch too (unlike sv_noweaponspawn!).
Hope others will find these useful and enjoyable as much as I do already!
- Attachments
-
coopoptions.zip
- (1.14 KiB) Downloaded 213 times
I've recently finally got an opportunity to play Zdoom cooperatively with friend after many years. Netcode was as great as I was afraid of, but after we've gone through desyncs (mostly caused by our mistakes) and eventually dealing even with [url=http://forum.drdteam.org/viewtopic.php?f=25&t=2956]this[/url] bug (by using more stable net connection), we had lots and lots of fun.
Unfortunately, after we had arrived in Doom 2, we've noticed lots of extra ammo scattered around maps. I always thought there is distinct coop and deathmatch flag on things, but apparently vanilla maps have only one, universal multiplayer flag. That means deathmatch specific stuff is always presented in coop, which breaks the game flow quite horribly. This issue was already looked at and worst case (deathmatch weapons everywhere) got it's own dmflag. Other things like ammo and items sadly didn't got the same treatment.
I've found hard to believe noone asked for such feature before, and indeed they did.
http://forum.zdoom.org/viewtopic.php?f=18&t=23196
http://forum.zdoom.org/viewtopic.php?f=4&t=33722
http://forum.zdoom.org/viewtopic.php?f=4&t=13578
http://forum.zdoom.org/viewtopic.php?f=18&t=11609
One guy even did this
http://forum.zdoom.org/viewtopic.php?f=19&t=25544
The requests themselves were NOed, but it seemed to me no strong points against such addition were raised and in one case it was closed mostly due poster's rudeness.
As patch like this is really trivial, I went ahead and coded it.
In addition of weapon removing flag, there are two new ones, one that disallows spawning of extra multiplayer monsters and second that disallows spawning of the rest of multiplayer only actors (minus guns and monsters). Setting everything off effectively makes coop completely like singleplayer.
I've chosen this way just because I didn't want to eat too much new dmflags (as dmflags2 is nearly full), but having separate ammo/items/armor/... is definately an option. I'd also note that 'rest' covers even stuff like extra barrels in E1M1 and other accidentaly multiplayer flagged things.
Also, if explanation for specific 'extra monsters' option is needed, many levelpacks are coop-balanced for several players with appropriate enemy hordes (Scythe 2 for example). If you play 'singleplayer style', trying not to die often, with only two players, this is sometimes not desirable.
These options are used only in coop, but alwaysapplydmflags forces them in deathmatch too (unlike sv_noweaponspawn!).
Hope others will find these useful and enjoyable as much as I do already!