Re: [L4D, L4D2] No Death Check Until Dead
Quote:
2. MissionWillBeLost determines whether or not director_no_death_check will be set to 0 the next time a human player dies. If the only player still alive is a human, MissionWillBeLost gets set to true. If another living human player is put into the game, MissionWillBeLost gets set to false. If it's false, the next time a human player dies, the cvar does not get reset to 0. Right now I'm using the number 3 for this check because it's only intended for servers with 4 survivor players. Three dead humans, bots, or idle players will make the death check kick in when the fourth one gets killed. 3. Bots and idle players are considered "deadguys" because, by default, they don't go on playing when there are no more human players alive. If you were playing on a map with no other human players and you die, the mission is restarted. This is how the game works without plugins. I can't imagine anyone would want the game to allow bots to continue playing when all human players are dead, but if you really want that feature, I believe there is a cvar which allows them to keep playing despite all human players being dead, and this plugin could be altered to check for that. |
Re: [L4D, L4D2] No Death Check Until Dead
Update: Fixed a bug where the death check stopped working after the first map of a campaign.
|
Re: [L4D, L4D2] No Death Check Until Dead
There are some plugins, especially "takeover 0.8" which allows you to takeover a living bot after you died. I think your plugin is still capable of getting used in multislot servers.
1. You wrote that you set the value to 3 because of max survivors = 4. So I could set this value to 9, as we have 10 survivors, right ? If this works you could create a cvar which handles the survivor count, so the plugin can be used for ANY survivor count instead of 4 only. 2. Remove the check for bots. Without this check for bots the round continues and we can type !takeover to continue as the bot. My aim is that this plugin ONLY ends a round when EVERYBODY is DEAD :) Would this work or do you see any complications? |
Re: [L4D, L4D2] No Death Check Until Dead
Quote:
|
Re: [L4D, L4D2] No Death Check Until Dead
I could create a cvar which toggles the bot-check for people who want to use that takeover option, or for people who just want to let the bots keep on going for whatever reason.
As for the number of players, I'm sure there's probably an easy to way to set this dynamically. I would think that if you had less than four it would probably not work in it's current incarnation. I'll look into this. Creating a cvar for extra players is an option but making it dynamic based on the total number of survivors in play (bot and human alike, both dead and alive) would kill two birds with one stone. |
Re: [L4D, L4D2] No Death Check Until Dead
Update: Toggle for including or excluding bots and idle players added. The plugin also now works with any number of players.
The number of players fix was easier than I thought it would be. Now, instead of checking for the number of dead players, it checks for the number of alive ones. When that number drops to one, the boolean for the death check gets set to true. When the number goes above or below that, it's reset to false. |
Re: [L4D, L4D2] No Death Check Until Dead
1 Attachment(s)
Update 1.4.1 - Possible bugfix, we'll see it it works. It's uploaded either way.
|
Re: [L4D, L4D2] No Death Check Until Dead
Yeah, found a bug in the previous version, probly the same one u discovered. If connected with only one player in game, all players dead, the map restart works. If more than one player is in game the mod will not restart the map after all players are dead, tested both option 1 and 2. Will be testing the new version tomorrow and will get back to you. Btw thanks for the great plugin, I'm pretty sure the one before the last worked fine even with 4+ players, tested on helms deep map(not 100% sure though. Anyways, I will keep u posted on my findings.
|
Re: [L4D, L4D2] No Death Check Until Dead
Odd. So this problem is from the latest versions only? I should start saving previous versions of these...
|
Re: [L4D, L4D2] No Death Check Until Dead
I know exactly why it's not working. It's because I added that one extra "if" section to the player_death event and it doesn't like it. It's finicky about the number of calculations it has to go through before it works.
I may have to create two different versions of this: one that includes bots and one that excludes them. Otherwise I'll have to come up with a pretty creative workaround... |
| All times are GMT -4. The time now is 22:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.