Hello,
I am rewriting the original Zombie Plague 5.0.8a from scratch, with some changes in the code, and I am stuck with a problem that I am almost 100% sure I have done everything right, and I just can't seem to find what's wrong with the code that it bugs like that!
Latest source code is on both main and development branches:
- Main:
https://github.com/theycallmeyuzdi/z...edux/tree/main
- Development:
https://github.com/theycallmeyuzdi/z...ee/development
- Resource files:
https://downloads.rvrealm.com/game-s...-resources.zip
The problem is basically as follows:
- When someone becomes the first zombie in an infection game mode, if they were killed, they spawn as zombie the next round although it has been reset
- When the first zombie infects other humans, the same problem will occur for them the next round, unless they terminate all humans
- When there are two players in the server, the one that is already zombie will stay as zombie, and the other player may turn into a zombie, no one can kill the other and the round won't end, and on the next round the two players will be zombies
Maybe a more experienced coder can help out? What's the problem? What did I do wrong? How to fix it?
__________________