Jump to content
The Dark Mod Forums

flying AI


eigenface

Recommended Posts

Pathfinding uses AAS areas. If a table is in the middle of a room, and the table is monsterclipped up to the ceiling, the table top won't be assigned an AAS area, so pathfinding won't send an AI across the top of the table. As Springheel observed when he was working with a prototype elemental, the elemental wouldn't fly over things we would expect it to fly over.

 

It might be that lowering the monsterclip brush to be flush with the table top would allow a flying AI to cross the table. But we've had problems in the past with AI getting stuck on tables and other waist-high func_statics when monsterclip stops at the top surface. Code has been added to reduce those problems, but sometimes the AI get around the safeguards.

 

Also, AAS that is above floor level can ruin AI's use of elevators. When pathfinding involves elevators, the relationships among the AAS areas can get screwed up by dmap when AAS areas are in places you don't expect walking AI to go (i.e. tabletops, trim, window ledges, etc.).

 

So I'm an advocate of eliminating all extraneous AAS areas that could bother elevator use or put walking AI into unrecoverable situations.

 

Whoever begins experimenting with the code to make flying AI (which I'm sure will happen at some point) will need to consider these situations.

Link to comment
Share on other sites

I think this leads to the idea that different "clip" materials need to be added the same way Splash Damage did for Quake Wars...

 

Flying-Monster-Clip ?

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

I've added some very basic support for flying AI. It's full of hacks and not quite functional for now. The fire elemental can follow a patrol route of path_corners at different heights now (but not through doors, it will just bump against a wall in the way and circle there), but in combat it just charges at the player's feet and circles there indefinitely.

 

There is a new exe and pk4 for windows users, but someone will need to compile for linux. Thanks.

  • Like 1
Link to comment
Share on other sites

Angue: This change seems not right:

 

--- def/aas.def (revision 13263)
+++ def/aas.def (revision 13264)
@@ -7,7 +7,9 @@
    "type3"						 "aas32"
    "type4"						 "aas100"
    "type5"						 "aas_rat"
+	   "type5"						 "aas_elemental"

 

Shouldn't that be "type6"?

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

I guess the one thing that could be really great here would be a switch from flying to walking... might be too complicated?

 

I made a gargoyle and did flying anims but he was walking. But it would be great if he could fly down, land and become a walking creature. Then fly away... Of course that would be great for birds, etc.. too.

 

(not that i am promising I will ever do more work on him...)

Dark is the sway that mows like a harvest

Link to comment
Share on other sites

I'm trying to get this to work at the moment... currently I have a flying builder guard (looks really funny... for some reason the head and shoulders detach from the body and float a little bit above the torso... :D ). I'm changing his move type from fly to anim with a path entity, and when he touches the ground, he slides all the way to the wall and keeps moon walking there... :P

Link to comment
Share on other sites

  • 6 months later...

It appears that the head/body detachment when flying is due to the body having its origin by the heel of the right foot. When flying, the body pivots at that point, while head and sword are both pivoting about a different origin. If the body, sword and head would pivot around a common origin, then a complete guard would be bobbing around in the air.

System: Mageia Linux Cauldron, aka Mageia 8

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

      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
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...