Which part of Killer Kork's code is for flocking?
by Alfonse See · in Technical Issues · 02/05/2008 (4:38 am) · 8 replies
Hello, I'm a student currently taking a course in game programming at a local institution. One of my current projects involve Torquescript - building on top of a TGE FPS demo to make it a full-fledged game.
I've utilized Killer Kork as the bot for my game. I'm having trouble finding where exactly is the flocking aspect of it implemented. Can somebody help me out?
I've utilized Killer Kork as the bot for my game. I'm having trouble finding where exactly is the flocking aspect of it implemented. Can somebody help me out?
#2
02/05/2008 (6:35 am)
I think he's mistaken Kork following that path for flocking...
#3
02/05/2008 (7:23 am)
So Kork uses a different implementation for flocking instead of the three standard rules of cohesion, alignment and separation?
#4
02/05/2008 (7:27 am)
Kork is following a series of predefined way points that comprise a path. They are simply a group of objects you place into the game with the mission editor.
#5
02/05/2008 (8:15 am)
I know about the path following aspect of Kork, but I've observed pretty clear flocking behaviour among groups of Kork bots. Yet, I'm not sure which part of the code deals with the basic flocking after reading through it multiple times. I'm still pretty new to Torque, forgive my ignorance.
#6
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10278
And from a cursory glance, there is improved ai... although I'm not sure about flocking in particular, the follow friendly would certainly give the illusion of basic flocking.
Just my 2cents...
EDIT: After reading the post in more detail, it does mention basic flocking.
Have you checked out: ..\server\scripts\aiAlgo1.cs ?
02/05/2008 (8:26 am)
Alfonse is using the Killer Kork Resource:www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10278
And from a cursory glance, there is improved ai... although I'm not sure about flocking in particular, the follow friendly would certainly give the illusion of basic flocking.
Just my 2cents...
EDIT: After reading the post in more detail, it does mention basic flocking.
Have you checked out: ..\server\scripts\aiAlgo1.cs ?
#7
02/05/2008 (3:39 pm)
Yeah I've read through it, but which line in particular? I know aiAlgo1 controls the bot's thinking.
#8
02/15/2008 (3:00 pm)
I am fairly certain the follow friendly (all controlled in AIAlgo1.cs in the updateInterestingObjects and stateFollow functions) is the only flocking that that Killer Kork implements. Its not really flocking but its pretty cool to get for free! (I want to take this opportunity to thank and praise the creators of Killer Kork again!)
Torque 3D Owner Stephen Zepp