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

    • 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
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...