Thread: Ncp's going crazy when ncp summoned

Results 1 to 2 of 2
  1. #1 Ncp's going crazy when ncp summoned 
    girov123
    Guest
    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
    Reply With Quote  
     

  2. #2  
    Registered Member
    Polaroid's Avatar
    Join Date
    Jul 2009
    Posts
    936
    Thanks given
    1,088
    Thanks received
    63
    Rep Power
    94
    Its coz ur applying it for every NPC just make it yours
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •