Jump to content
The Dark Mod Forums

idle_only and alert_idle_only


Sotha

Recommended Posts

I have a RIT that points to two possible paths:

1) idle_only path_corner that takes the AI to sleep

2) alert_idle_only path_corner that takes to the AI to patrol.

 

The desired effect is:

AI goes to sleep if everything is peaceful and quiet. If they have evidence of intruders they patrol around.

 

The observed effect is:

Not seeing any evidence of intruders, the AI targets the path_corner that takes them to sleep. On their way they stumble into a dead comrade! They freak out and run to seek help. Lots of AI enter the area and look for intruders. The initial AI relaxes and.... ..GOES TO SLEEP!

 

After the AI gets up again, THEN she goes to the patrol alert_idle_only route.

 

So it looks like AI does not check if their current waypoint target is idle_only once they relax from a disturbance.

 

Should they? Is it even possible?

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

I guess the spawnarg is checked once they search for the next waypoint. Once this isstored they will not check the condition again. Maybe it helps if you do not only use the spawnarg on the path_corner but on the path_sleep either. So the ai may move towarsd the bad in a case as described by you but won't lay down.

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

That's map path setup. I'd simply add another path node at the sleep one which precedes it to evaluate the condition then. This way they will go patrol based on your circumstance. (You probably already know but for other readers, be careful to provide secondary targets for every node using idle only with the other condition so if their alert changes they will have appropriate available nodes to go to rather than getting stuck.)

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Link to comment
Share on other sites

The simplest thing I can think to do is mark every path node on the "sleep" branch as "idle_only".

 

Every path node.

 

So if his alert level goes up and comes down, and he's seen evidence of intruders, he'll only pay attention to the path nodes marked "idle_only" or not marked either way.

 

If every node up to sleeping is "idle_only", then he'll skip over those and continue searching beyond the sleep node. Once he finds a node that says "alert_idle_only", or not marked either way, he'll go to that one and continue on his way, looking for "alert_idle_only" or the default nodes that aren't marked either way.

Link to comment
Share on other sites

If every node up to sleeping is "idle_only", then he'll skip over those and continue searching beyond the sleep node. Once he finds a node that says "alert_idle_only", or not marked either way, he'll go to that one and continue on his way, looking for "alert_idle_only" or the default nodes that aren't marked either way.

 

Brilliant! Thanks for the advice!

Clipper

-The mapper's best friend.

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

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • 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.
      · 7 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
×
×
  • Create New...