Egoboo Forum

The Legend of Egoboo Sporks of Yore
waypoints

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Egoboo Forum Forum Index -> -> Development
View previous topic :: View next topic  
Author Message
jay_pee_em
Grub Bug
Grub Bug


Joined: 03 Jul 2008
Posts: 4
Location: Los Angeles, CA

PostPosted: Tue Sep 16, 2008 8:12 pm    Post subject: waypoints If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

I would post to the new forum but:

phpBB : Critical Error

Could not connect to the database

So I thought I'd just post here for now.

When you add values to chraigotoadd[], chraigotox[], and chraigotoy[], is the ai character going to automatically go to these waypoints? If so, where is the code that actually makes the ai character follow these points? If not, how does the waypoint system work?
_________________
http://www.teamroflcopter.com/
Back to top
View user's profile Send private message Send e-mail Visit poster's website
penguinflyer5234
Penguin King


Joined: 01 Feb 2008
Age: 25
Posts: 1684
Location: Somewhere

PostPosted: Tue Sep 16, 2008 8:29 pm    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

You can't use AddWaypoint from the Scripting language?
_________________
Donna Noble has left the library. Donna Noble has been saved.

Back to top
View user's profile Send private message
jay_pee_em
Grub Bug
Grub Bug


Joined: 03 Jul 2008
Posts: 4
Location: Los Angeles, CA

PostPosted: Tue Sep 16, 2008 8:36 pm    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

I can use addwaypoint, but what that scripting function does is it adds values to the three arrays that i talked about. I want to know where in the code the ai actually follows these waypoints.
_________________
http://www.teamroflcopter.com/
Back to top
View user's profile Send private message Send e-mail Visit poster's website
penguinflyer5234
Penguin King


Joined: 01 Feb 2008
Age: 25
Posts: 1684
Location: Somewhere

PostPosted: Tue Sep 16, 2008 8:47 pm    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

Line 3585 of script.c (2.6.5b)?
In the function let_character_think(character)?
It seems to convert the waypoint into a latch...
_________________
Donna Noble has left the library. Donna Noble has been saved.

Back to top
View user's profile Send private message
bgbirdsey
Developer
Developer


Joined: 25 Sep 2007
Posts: 873
Location: Minnesota

PostPosted: Tue Sep 16, 2008 10:57 pm    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

Everything is done under the function let_character_think().

The function set_alerts() determines whether the next waypoint has been reached and updates the waypoint list.

In let_character_think(), under the heading "// Set latches", an AIs latch is set to make it move toward the next waypoint.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Egoboo Forum Forum Index -> -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


© 2007 Informe.com. Get Your Own Free Portal.
Powered by phpBB © 2001, 2005 phpBB Group


RedSilver 1.01 Theme was programmed by DEVPPL HTML Forum
Images were made by DEVPPL Photoshop Forum