AI patrol

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Darth_Squoobus
General
General
Posts: 760
Joined: Mon Aug 03, 2009 3:21 am
Projects :: No Mod project currently.
Location: over the hills and far away

AI patrol

Post by Darth_Squoobus »

If I wanted AI to patrol an area, should I just set up a path that connects back to itself or would I have to do something else?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: AI patrol

Post by AceMastermind »

...
...
Patrol hints are used by most unit types. Upon reaching a command post, units will move between patrol hints at random.
...
...
The following properties need to be set in the editor for each patrol hint:
CommandPostName - the command post this hint is associated with.
Primary Stance - what stance the scout will be in when it reaches the patrol hint.
Source:
http://www.secretsociety.com/forum/down ... _notes.txt


EDIT:
According to THIS hint nodes aren't used for AI patrol anymore.
^Thanks to Skyhammer_216 for pointing this out

Have a look at THIS document on how it should be done now.
Recon Trooper
Command Sergeant Major
Command Sergeant Major
Posts: 285
Joined: Fri Sep 11, 2009 5:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Muhamid Ant Farm ???
Contact:

Re: AI patrol

Post by Recon Trooper »

The easy way that I would do is place heaps of hubs next to each and form a filled circle shaped of hubs and connect them. Sounds weird but works.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: AI patrol

Post by Xavious »

Using patrol nodes would be much easier.

EDIT: Paths, not nodes. See Sky's post.
Last edited by Xavious on Sun Oct 04, 2009 1:09 pm, edited 1 time in total.
Recon Trooper
Command Sergeant Major
Command Sergeant Major
Posts: 285
Joined: Fri Sep 11, 2009 5:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Muhamid Ant Farm ???
Contact:

Re: AI patrol

Post by Recon Trooper »

Using patrol nodes would be much easier.
Yeah, do that
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: AI patrol

Post by Sky_216 »

Ummm....guys? From psych0fred's site.....
Hidden/Spoiler:
Patrol Nodes
------------

For defensive movement. Nodes aren't used anymore, it now works with
Patrol Paths. See the "AI Patrol Paths.txt" file.
Hidden/Spoiler:
AI Patrol Paths

Patrol Paths are used as either straight lines or splines so in the editor you should set the
"Spline Type" under the path menu to "Linear" or "C-R".

Path Properties (set in the editor for each path):

"type" = "PatrolPath" : need this part, its what tells the game its a patrol path



Node Properties (set in the editor for specific nodes on a path):

"WaitMin" = "1.0" : When the unit gets to this node, they will wait for a time between
"WaitMax" = "2.5" : waitmin and waitmax before going on.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: AI patrol

Post by Frisbeetarian »

Does that mean the code for them is broken or just that it's better to use patrol paths?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: AI patrol

Post by [RDH]Zerted »

It sounds like the code was removed and replaced with a better system.
Post Reply