Jump to content
The Dark Mod Forums

dmw's DR noob megathread


dmw88

Recommended Posts

Rather than continue to make individual posts for my DR questions I will be posting in this thread from now on.

 

My first question (in this thread) is...

 

Ive finally pushed a FM to the point that I am pathing AI and I am curious about elevators. I have an elevator that moves between 3 floors. Is it possible to have AI make use of this elevator in their patrols?

 

As always thanks in advance.

Link to comment
Share on other sites

Maybe, the route via elevator is not shorter than using the stairs (could be the case if the elevator is far away from the stairs).

Don't know, whether there is a way to add a travel cost to some area to make them prefer another route while still being able to chase you everywhere.

 

Try to block off the stais first to confirm that they can use the elevator at all. For this test you have to use aas32_flood on the floors that are then only reachable by elevator.

Link to comment
Share on other sites

IIRC ai will only use elevators if there is no direct way to reach the destination, for example via stairs. So if every area is reachable via stairs, they won't be using the elevator.

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

IIRC ai will only use elevators if there is no direct way to reach the destination, for example via stairs. So if every area is reachable via stairs, they won't be using the elevator.

 

This is what I remembered too, but the wiki page linked to in post #2 contradicts this after an edit made by Springheel on 2nd September 2016, which was left unchanged by grayman during later revisions of the same paragraph. So this would suggest AIs should be using elevators efficiently nowadays.

Link to comment
Share on other sites

Based on vague recollections of what I did to get the kitchen lift in ITB working and a check of the .map: it seems I have each atdm:mover_multistate_position set to target its corresponding func_aas_obstacle. Worth a try, anyway.

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Link to comment
Share on other sites

 

This is what I remembered too, but the wiki page linked to in post #2 contradicts this after an edit made by Springheel on 2nd September 2016, which was left unchanged by grayman during later revisions of the same paragraph. So this would suggest AIs should be using elevators efficiently nowadays.

 

Yes, I recall a post (I think from Springheel) somewhere in the editor's guild. I think he also created a test set up to find out the AI behaviour when offering both an elevator and stairs and had this test running for several hours. I think the result was, that the AIs quite often preferred the stairs.

Link to comment
Share on other sites

IIRC ai will only use elevators if there is no direct way to reach the destination, for example via stairs. So if every area is reachable via stairs, they won't be using the elevator.

 

I believe grayman made a change somewhere along the line so they would use the elevator if it were the shortest route.

 

edit: here: http://bugs.thedarkmod.com/view.php?id=3029

  • Like 2
Link to comment
Share on other sites

Hey you might want to check out prefabs/ mechanical/ 3 floor elevator to see how it's set up.

 

Make sure your AAS solid and AAS obstacle brushes are placed similar to how they are in the prefab. Ive broken my elevators a couple times by moving those even a few units off.

 

Also make sure the AI can get to the buttons and that the button's ride or fetch spawnarg is set up correctly. Ride is for selecting a floor while on the elevator and fetch is for calling the elevator to a floor.

 

Hope this helps!

Link to comment
Share on other sites

I don't know if there is a full list on the wiki--sometimes it's listed in the vocal.sndshd files, but not always. Which ones were you looking at?

Link to comment
Share on other sites

  • 2 weeks later...

Ive seen on the wiki how to set it up so loot is not frobbable til a chest is opened. I have a chest type object with a glass top that is breakable. I want the contents unfrobbable until it is opened OR broken. How would I approach this?

Link to comment
Share on other sites

You can have a look at the prefab chests for the setup of a frob-block box. Then you need to add a trigger that the box is deactivated, when the lid is borken. I would try the Stim/Response system with a Response on the lid that triggers the frob-block on death. Not sure if this works, but it would be the first thing that comes to my mind.

Link to comment
Share on other sites

Breaking the glass would need to destroy the frob-blocker permanently (so it doesn't activate again if the door is shut). I've never actually worked with broken glass before though. Maybe have the glass be frobbable so it captures the frobtrace? Although that won't work if it's a mix of glass and other materials.

Link to comment
Share on other sites

I'm pretty sure func_fractures trigger their targets when broken: I used that before to change the light image breakable windows were casting onto a floor. So I think you could have the func_fracture target an entity with a trigger Response that sets the chest contents frobable and then removes the atdm:target_set_frobable.

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Link to comment
Share on other sites

Got a new question, this time about readables. Is it possible to feature an image on a readable? Like have a picture on a page in a readable book or something?

 

Also, Ive seen a lot of FMs have books as loot items but I cant find them in the loot list. Am I just missing them somehow? If not, how would I go about making an existing movable entity into a loot item?

Edited by dmw88
Link to comment
Share on other sites

Got a new question, this time about readables. Is it possible to feature an image on a readable? Like have a picture on a page in a readable book or something?

I think this would involve making a modified GUI declaration. http://wiki.thedarkmod.com/index.php?title=GUI_Scripting#See_also You can examine the existing GUIs in /guis/readables inside tdm_gui01.pk4

 

Also, Ive seen a lot of FMs have books as loot items but I cant find them in the loot list. Am I just missing them somehow? If not, how would I go about making an existing movable entity into a loot item?

It's easier to do it the other way round: change the "model" and "inv_icon" spawnargs on an existing piece of loot. Or make an entityDef that inherits from a loot class if you're going to be placing a lot of the same type.

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Link to comment
Share on other sites

Is there a way to override the ase_100 error that pops up when a horse doesnt have enough room? I want to have a horse in a stable that is smaller than 100x100. It is visoble but not reachable by the player, so messing up the AI's behaviour is not a concern for me. I just dont want that message to appear for the player when they launch the FM.

Link to comment
Share on other sites

I am not sure if horses have any idle animations, but if not (or if you don't need them), you could just insert them as a func_static. Or maybe it is possible to insert them as an animated prop (would have to investigat that furhter). As far as I have seen after a quick glance, the horses do not have any move animations, so it may be an idea to change their class to animated prop in general (at least until someone makes more animations for them).

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

      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.
      · 0 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
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...