Jump to content
The Dark Mod Forums

Is warning tied to greeting?


Springheel

Recommended Posts

I have a situation where I expect an AI to be issuing warnings about a missing object to his friends, but he never does. I've turned off his ability to greet (canGreet 0)...does that spawnarg also affect warnings?

Link to comment
Share on other sites

It shouldn't. At first glance, I only see it being used for greetings.

 

Remove the canGreet = 0 and see if it starts working.

 

If not, I suggest a small test map with a couple generic guards. Set canGreet = 0 and see if warnings occur.

 

Atm I can't dig through the warning code. Can do this later if need be.

 

Only friends warn each other. Neutrals don't. If that matters.

Link to comment
Share on other sites

Hmm, I tested cascadetest.map and missing object warnings seem to be working fine. I'll test the canGreat flag, but it might have something to do with distance as well. IIRC, AI will warn of missing objects in a smaller range than murders and other alerts, correct? Are these values exposed somewhere so mappers can modify them (for an especially important missing object, for example).

Link to comment
Share on other sites

I just double-checked, added canGreet 0 to an AI and she immediately announced to others and they joined the search.

"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

IIRC, AI will warn of missing objects in a smaller range than murders and other alerts, correct?

 

I was surprised how far AI can be away to notice a missing object, it seemed to be their line of sight, as long as it was lit of course.

"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

Ok, it's not canGreet.

 

edit: ok, additional confirmation that it's not cangreet. :)

 

I was surprised how far AI can be away to notice a missing object

 

Yes, the range they notice it is around 500 units, I think. But there's also a cap on how far away they'll warn other AI about it. An AI who notices a missing object and then walks to the other side of the map won't tell the AI there. But I forget what the range is.

Link to comment
Share on other sites

I was surprised how far AI can be away to notice a missing object, it seemed to be their line of sight, as long as it was lit of course.

 

Factors affecting this:

 

Illumination at the spot where the item was.

Size of lost item. (Bigger lost items should be easier to notice.)

LOS from spot to AI.

AI's FOV to the spot.

Distance from spot to AI.

Visual acuity of AI.

Link to comment
Share on other sites

There is also a vertical limit, beyond which a warning won't occur.

 

If the spot where the event took place is more than 100 vertically from the spot where the AI is considering warning another AI, the warning doesn't happen.

 

I don't recall the reasoning behind this, but it made sense at the time. Perhaps something to do with AI being on different floors of a building, and not wanting to spread the word from floor to floor.

Link to comment
Share on other sites

There are a few more conditions, and those conditions vary with what's happening and what's happened in the past.

 

At this point, if it still doesn't work, I suggest posting a test map showing the problem. Then I'll have a specific situation to debug.

Link to comment
Share on other sites

The issue is the distance. 500 units seemed like a lot in the cascadetest.map made of small hallways, but it's not that much in large rooms--the church in St. Lucia is about 800 units long, so if a theft happens at the front of the room AI won't bother telling AI at the other end. Same thing is going on in my map.

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 )
      · 3 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...