Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
smoother npc walking
#1
I tryed fiddling with my source for a while but I need help with this one..
How can I make an npc walk more constant when following me? Instead of just walking one tile every second.
Reply
#2
http://web.miragesource.com/forums/viewt...=75&t=2305
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#3
Lol not ai, smoothness. When he's chasing me he looks like he's walking down the isle to get married. I'm talkin about him actually keeping up with you and continously moving as soon as he finishes his last step.
Reply
#4
When I reply with a link, it means it useful.

Don't argue with me.

The reason he walks like that is because of the AI. Seeing the link now?

Fix the AI calculation so it's not the retarded 'Dice' system that is default and it'll sort out the NPC movement.

Speed up the loop if it's too slow.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#5
Like i said i tryed fiddling around with it and I need some help..
I have dragoons master ai fyi.
Ugh.
Reply
#6
If you'd have said that, I would have given you a different answer.

Make sure you give us all information so we can analyse it properly.

I suggest you try running the server on a semi-decent separate machine and turn your GameAI loop timer higher.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#7
Thanks, I was trying to mess with the code inside GameAI. While Im on the subject though, dragoons master's ai causes some pretty annoying lag. Before I attempt, is it optimizable or is it about as good as it gets?
Reply
#8
Everything is optimisable.

Simply make it so you don't recheck the entire matrix for the path every loop, and instead save the path when you need to.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#9
I made it so it saves my location and only rechecks the matrix when I move. I still get lag when Im running away though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)