Ever NCP in the game stats messing up every few seconds once summoned
Well i have seen this happen on Delta*, Richscape, Czar and basically every source code around at the moment and im not happy. For me what my game looks and feels like is a big issue so i have narrowed it down to this bit of code that
Code:
npcs[i].updateRequired = true;
npcs[i].animUpdateRequired = true;
npcs[i].DeadApply = true;
npcs[i].actionTimer = 10;
if (npcs[i].followingPlayer && Server.PlayerManager.players[npcs[i].followPlayer] != null) {
Server.PlayerManager.players[npcs[i].followPlayer].summonedNPCS--;
}
} else if (npcs[i].actionTimer == 0 && npcs[i].DeadApply && !npcs[i].NeedRespawn && npcs[i] != null) {
Client plr = (Client) Server.PlayerManager.players[npcs[i].getKiller()];
if ((plr != null) && !plr.disconnected) {
So will someone help me put this code right so ncps dont mess up like retards every time an ncp is summoned.
Thanks