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

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 6 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...