![]() |
smoother npc walking - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: smoother npc walking (/showthread.php?tid=1670) |
smoother npc walking - seraphelic - 10-04-2008 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. Re: smoother npc walking - Robin - 12-04-2008 http://web.miragesource.com/forums/viewtopic.php?f=75&t=2305 Re: smoother npc walking - seraphelic - 12-04-2008 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. Re: smoother npc walking - Robin - 12-04-2008 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. Re: smoother npc walking - seraphelic - 12-04-2008 Like i said i tryed fiddling around with it and I need some help.. I have dragoons master ai fyi. Ugh. Re: smoother npc walking - Robin - 12-04-2008 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. Re: smoother npc walking - seraphelic - 13-04-2008 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? Re: smoother npc walking - Robin - 13-04-2008 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. Re: smoother npc walking - seraphelic - 13-04-2008 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. |