Jump to content
The Dark Mod Forums

AI knocked out at start


Xonze

Recommended Posts

Okay, I think I've done my share of searching that I can ask this without feeling guilty. :D

 

I need an AI that is knocked out when the map starts. I've tried a ragdoll but it seems that it's a corpse and so putting the AI in an area doesn't seem to work. (Really I want the objective to tick off once the player gets to a location while holding the knocked out AI, but not sure how to do that as I'm not sure how a shouldered AI is treated.) I've tried S/R but I may not understand how to apply it to an AI. I've tried a small bit of scripting, but didn't get too far with it. I thought about setting it to sleep, but the AI will wake up so that won't work as well.

 

Thanks in advance for any help :D

Link to comment
Share on other sites

What sort of objective do you have in mind that you can't have a corpse over a KO'd body?

 

I could, because I can just change the name of corpse to what I want, but the issue I ran into was that it didn't check off. It might be that I have the objective set up wrong, but how is a shouldered AI treated? How would I be able to set an objective to tell if the AI is shouldered by the player and in the zone? (I've tried enitity and that didn't work) I'm still new with objectives for the most part, though this is the last thing I need before I can start looking for Beta testers :D (which is why I'm replying so fast lol)

 

Thanks for your help

Link to comment
Share on other sites

Well, I looked, and there isn't a scriptevent checking to see if you have shouldered a body.

"Player possesses item atdm_ai_xXx" doesn't work, either.

 

Sort of seems like missing functionality. You may have to skip the "shouldered" part and just say "set his body down in this location" Too bad that's forcing the player to un-shoulder.

1. Player is in location blah

2. atdm_ai_some_person is in location blah

Success Logic: 1 AND 2

 

post-2515-126103803819_thumb.jpg

yay seuss crease touss dome in ouss nose tair

Link to comment
Share on other sites

No luck for me sadly, though it could be because I'm using a ragdoll as he needs to be out before the player gets there. I'll play with it some tomorrow and maybe I'll just remove the objective if I can't get it to work.

 

Thanks for your help :D

 

Well, I looked, and there isn't a scriptevent checking to see if you have shouldered a body.

"Player possesses item atdm_ai_xXx" doesn't work, either.

 

Sort of seems like missing functionality. You may have to skip the "shouldered" part and just say "set his body down in this location" Too bad that's forcing the player to un-shoulder.

1. Player is in location blah

2. atdm_ai_some_person is in location blah

Success Logic: 1 AND 2

 

 

Link to comment
Share on other sites

With info_tdm_objective_location (the clip brush as used in EscZone) you need to add to the object (ragdoll in this case):

 

objective_ent 1

 

That helps performance in case you have hundreds of other entities within a big clip brush. The player itself must be an exception to the above I guess.

 

With info_location (the one that is used to label an area within visportals) you don't need that.

 

Which you use depends on the area covered.

Link to comment
Share on other sites

Hi Fidcal,

 

Thanks for the suggestion, but no luck again :( I think I may have to drop this objective unless anyone has any more ideas, as I'm at a loss.

 

Maybe I'm doing something wrong and pictures of how I have things set might help so:

 

objectives:

nfs8m0.jpg

 

escape:

2mebhnb.jpg

 

ragdoll

1z2fwxs.jpg

 

With info_tdm_objective_location (the clip brush as used in EscZone) you need to add to the object (ragdoll in this case):

 

objective_ent 1

 

That helps performance in case you have hundreds of other entities within a big clip brush. The player itself must be an exception to the above I guess.

 

With info_location (the one that is used to label an area within visportals) you don't need that.

 

Which you use depends on the area covered.

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

    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 1 reply
    • nbohr1more

      Trying to be productive on my down-time before Capcom releases Akuma and my son is constantly on my PC playing Street Fighter...
      · 1 reply
    • OrbWeaver

      Finally got round to publishing a tutorial on baking normal maps in Blender, since most of the ones we have are inaccessible or years out of date.
      · 2 replies
    • 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 )
      · 4 replies
×
×
  • Create New...