Jump to content
The Dark Mod Forums

Path entities


Recommended Posts

There might be a work around to this, but I find it fairly cumbersome to create a path_corner, path_turn, and path_wait when creating patrols. This gets pretty insane when you've got multiple patrols on different routes and tasks.

 

Is it possible to combine these into one entity or give path_corners the ability to turn the AI and make them to wait? Pardon my ignorance if this is out of the question from a coding standpoint.

 

 

 

Link to comment
Share on other sites

You can add an "angle" spawnarg to a path_wait and the AI will turn toward the angle and then wait. (This is mentioned on the wiki page.)

 

That brings 3 entities down to 2.

 

To bring it down to 1, we'd need to add "angle" and "wait" spawnargs to a path_corner. This would need to be a new entity, because we don't want "angle" and "wait" spawnargs to suddenly come alive if a mapper has used them in existing maps (where they'd be ignored).

Link to comment
Share on other sites

Oh awesome! I missed that bit in the wiki. Sounds like a new entity would be the way to go for future releases, if people are up for it. Maybe path_destination, path_end or something of the sort. It would definitely make path creation and editing a bit easier.

 

While we are on the topic, I remember reading somewhere you can reverse the direction an AI takes along a path? I can't for the life of me find where I read that.

Edited by kingsal
Link to comment
Share on other sites

I've never read anything about reversing the direction. The code looks at the target of a path_node and follows that. It doesn't have the ability to go backward.

 

If an AI travels from A to B, and you want him to go from B to A, you have to provide a distinct set of path_nodes from B to A.

  • Like 1
Link to comment
Share on other sites

I usually work like this:

1) make path_corner and path_wait. Put them next to each other.

2) make path_corner target path_wait

3) select both path_corner and path_wait

4) clone them around and place them where the AI should patrol. Rotate so that the path_wait angle points where you want the AI to look towards

5) fly through the AI patrol path from node to node and always make the previous path_wait of the previous node to the path_corner of the next node. You can do it like this: select previous node's path_wait. Fly to next node path_corner. Select it. Press ctrl+K. Deselect. Choose this node's path_wait and fly to the next node's path_corner & repeat.

6) done! Quick and easy.

 

Bonus1) you could make path_corner->path_anim->path_wait nodes to include some RITs or animations.

Bonus2) you could put each patrol route into own layer for clarity.

  • Like 1

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Ah I see, I must have misread something about changing the direction of the AI pathing nodes.

 

Sotha, that's a pretty good process. Now that I know path_waits can carry an angle, things will be a lot easier. AI pathing is something I've been struggling with.

 

I have another somewhat related question. When using a monster clip volume, will the engine consider the top surface of monsterclips as a path-able area? Is there a distance threshold at which it will consider that surface unreachable? (Something like ..if the surface is above 16 units to the nearest floor, it will be ignored as a path-able area)

 

Thanks for the help!

Edited by kingsal
Link to comment
Share on other sites

Haha, that's what I figured. I've been bringing my bushes to the ceilings as well. Volta is plagued by wacky monster clipping. Plagued.

 

The outdoor area is constructed in such a way that the tops of the playable space are visportals, allowing players to see the tower in the distance. This is a huge nightmare and something I'll probably never do again. My assumption is that's whats causing the AAS process to take a while on compiling. Will caulk knock out AI pathing?

Link to comment
Share on other sites

The determining factor if an area is accessible for AI is the distance between a walkable area and the ceiling. The lowest the AAS can be (and consequently the maximum between surface and ceiling should be) is 12 units for the rat AAS.

 

If you use caulk as a surface, it should not be considered a walkable surface. But if you can see the surface from somewhere farther up, it might cause artifacts.

Link to comment
Share on other sites

In addition, caulk is solid. Wouldn't use that therefore. nodraw might work, but that needs to be tested.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Ansome

      Finally got my PC back from the shop after my SSD got corrupted a week ago and damaged my motherboard. Scary stuff, but thank goodness it happened right after two months of FM development instead of wiping all my work before I could release it. New SSD, repaired Motherboard and BIOS, and we're ready to start working on my second FM with some added version control in the cloud just to be safe!
      · 0 replies
    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
×
×
  • Create New...