Thread: How to stop NPCs from walking on each other?

Results 1 to 10 of 10
  1. #1 How to stop NPCs from walking on each other? 
    Super Donator

    Janizary's Avatar
    Join Date
    Jul 2009
    Age
    19
    Posts
    2,132
    Thanks given
    109
    Thanks received
    137
    Rep Power
    1031
    In God Wars, my boss NPCs go on one spot and gang-rape me Is there any way to stop them from stepping on each other?

    [Only registered and activated users can see links. ]
    Quote Originally Posted by Pirlo View Post
    I don't think the cold war existed during/before WWI
    Reply With Quote  
     

  2. #2  
    :doge:

    Join Date
    Jan 2009
    Posts
    3,759
    Thanks given
    221
    Thanks received
    816
    Rep Power
    2113
    look how your playercombat does it. try figuring out how it works, and implement it in your class.
    Reply With Quote  
     

  3. #3  
    Super Donator

    Janizary's Avatar
    Join Date
    Jul 2009
    Age
    19
    Posts
    2,132
    Thanks given
    109
    Thanks received
    137
    Rep Power
    1031
    That really didn't help...

    [Only registered and activated users can see links. ]
    Quote Originally Posted by Pirlo View Post
    I don't think the cold war existed during/before WWI
    Reply With Quote  
     

  4. #4  
    Member
    Join Date
    Oct 2008
    Posts
    744
    Thanks given
    2
    Thanks received
    6
    Rep Power
    0
    He never does...
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member
    Santaher0's Avatar
    Join Date
    Sep 2008
    Posts
    2,033
    Thanks given
    324
    Thanks received
    49
    Rep Power
    1282
    lol! at demon and think there was released noclip tut for stopping the noclipping of npcs trough objects not sure but it might help aswell with npcs if not just convert it so it works for npcs.
    - Support my project [Only registered and activated users can see links. ]

    - Santaher0's [Only registered and activated users can see links. ]

    - Santaher0's [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Member
    Join Date
    Oct 2008
    Posts
    744
    Thanks given
    2
    Thanks received
    6
    Rep Power
    0
    Yeah Santaher is right the tutorial is

    [Only registered and activated users can see links. ]

    but you have to add every object to the lists which is time consuming.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    Super Donator

    Janizary's Avatar
    Join Date
    Jul 2009
    Age
    19
    Posts
    2,132
    Thanks given
    109
    Thanks received
    137
    Rep Power
    1031
    I don't think it covers NPC over NPCs does it?

    [Only registered and activated users can see links. ]
    Quote Originally Posted by Pirlo View Post
    I don't think the cold war existed during/before WWI
    Reply With Quote  
     

  8. #8  
    Registered Member
    Unique's Avatar
    Join Date
    May 2008
    Posts
    457
    Thanks given
    0
    Thanks received
    1
    Rep Power
    164
    NPC n = Engine.npcs[p.attackNpc];
    for (NPC en : Engine.Npcs) {
    if (n.absX == en.absX && n.absY == en.absY) {
    en.absX--;
    }
    }

    Something like that try.
    Rs-kings
    Reply With Quote  
     

  9. #9  
    Super Donator

    Janizary's Avatar
    Join Date
    Jul 2009
    Age
    19
    Posts
    2,132
    Thanks given
    109
    Thanks received
    137
    Rep Power
    1031
    Quote Originally Posted by Unique View Post
    NPC n = Engine.npcs[p.attackNpc];
    for (NPC en : Engine.Npcs) {
    if (n.absX == en.absX && n.absY == en.absY) {
    en.absX--;
    }
    }

    Something like that try.
    Where do I add that NPC class? NPCCombat?

    [Only registered and activated users can see links. ]
    Quote Originally Posted by Pirlo View Post
    I don't think the cold war existed during/before WWI
    Reply With Quote  
     

  10. #10  
    Member
    Join Date
    Oct 2008
    Posts
    744
    Thanks given
    2
    Thanks received
    6
    Rep Power
    0
    Probably NPC class.
    [Only registered and activated users can see links. ]
    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
  •