Jump to content
The Dark Mod Forums

bed height


Fidcal

Recommended Posts

The sleeper pose is now fixed but we need to consider what to do about the height. Correct me if I'm wrong but I'm assuming here that the sit animation height is already done and dusted and does not want changing. Since the sleeping animations involves sitting before and after then presumably this determines the sleeper's height.

 

If the above is true then in tests it is now clear that this height is fixed above floor level. I tried non-solid beds and different tricks before I realized it makes no difference. The only thing that works is to raise the bed 3 units. The new pose means now that at this height the body is flush with the surface, probably very slightly clipping in which is ideal as the bed is meant to be soft, and the head sinks slightly into the pillow - which looks natural. See picture below.

 

post-400-1250867136_thumb.jpg

 

So temporarily I've made some 3-unit high brush blocks as feet to raise the bed. (The far bed in the picture is just raised up with no feet so you can see the distance involved.) But I'm wondering how easy it would be to extend the legs of the bed models so we have a standard height.

Link to comment
Share on other sites

That looks really good now.

 

I could raise the beds up without much difficulty, but that would cause problems in all existing maps with sleepers.

Link to comment
Share on other sites

Agreed, too. Raising the bed model would actually fix maps with sleepers, wouldn't it? (How many of these do we have, btw? Probably not many)

"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

Now on tracker. Not all beds need fixing. The best height seems to be 23.5 above floor level for the main top surface of the bed.

 

This is PLUS 3 doom units for the following bed models:

 

models/darkmod/furniture/beds/doublebed_simple.lwo

models/darkmod/furniture/beds/singlebed1.lwo

models/darkmod/furniture/beds/singlebed_set01.lwo

 

But MINUS 4 for this bed (this ruins the character of the bed construction so I'm not sure how this might be shortened unless the bedding can be lowered.) The mapper might put a step at the side of this bed as a compromise. The sleep height is measured from the floor where the AI was standing not the brush surface beneath the bed. This bed is also short - an AI can just about fit.

 

models/darkmod/furniture/beds/bed_single_timber.ase

 

The wiki article on sleeping gives: "Another problem is that the bounding box stays behind and is solid when the AI goes to bed." so I don't know if that would be a further problem if 'fixed'. At the moment they can clip but this seems good to me to clip a little. It also means the AI can sleep in the lower bunk of a double bunk bed. Yes, he clips his head as he sits down but seeing an AI get into a bunk bed is so superior to what we had in Thief it is worth it. I think I can also get him to use the top bunk...

 

Test map is test/sleeperbed.map. All the beds are raised or lowered to the ideal height. Take a look; it's great fun.

 

The four poster bed and double bed equivalent are OK but mappers should stick a patch pillow on there as the head is now slightly raised. There is a pillow in one of the bed prefabs (which have now been changed to the correct height.) In fact, I think there is a prefab with the four-poster with bedding and pillow.

Link to comment
Share on other sites

Cool. Noticed a couple of problems:

 

- They don't close their eyes when sleeping? I was surprised to notice this, because the ability is already there -- they close their eyes when slain.

 

- Don't know if this is a result of messing with the beds or the anims or what, but when they get up from the bed, they fall through the floor (like they used to with chairs)

Link to comment
Share on other sites

Immediately. Some of it very violent and flying high above head height and sometimes upside down. Some alerted AI went back to sleep but floated high. I forgot to either monsterclip these beds or better yet, make them unfrobbable, unpushable moveables so they can path them properly.

Link to comment
Share on other sites

That's a fun map!

 

Some points to consider:

 

* Could we raise the bunkbed's upper part? The clipping might then not be that worse (it must hurt :D

* wish the player position was higher up so you could watch the "go to sleep" better. Ditto for a small delay before they go to sleep

* some of the beds don't cast proper shadows the one in the far right corner f.i. the matress doesn't seem to cast a shadow

* AI weapons seem to clip quit a bit but don't think that can be changed. Does the AI have the ability to put their weapons down before going to bed?

"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

Ragdolls can go unstable if any part of the AF collision bodies are clipping into a solid. You can see them with g_showcollisionmodels 1, they're the red low-poly structures on the AI. Or if the ragdoll is already activated, you can see just those model with af_showbodies 1.

Link to comment
Share on other sites

- Don't know if this is a result of messing with the beds or the anims or what, but when they get up from the bed, they fall through the floor (like they used to with chairs)

 

I noticed the builder do this once, but no one else.

 

 

I also notice that when you KO a sleeper, he 'teleports' to standing, then collapses.

Link to comment
Share on other sites

What does greebo use to convert? Is it a complicated process or something anyone can do (e.g., install blender (free), run conversion script)? Seems silly that model adjustments are always hamstringed by the whole process involving multiple people who may or may not be available at any given time.

Link to comment
Share on other sites

Mappers can always just lower it into the floor anyway.

 

The .lwo ones are now fixed.

 

edit: Wow, I just saw the jittering problem when you kill a sleeper. It's hilarious! I shot him in the head and he flipped around like a rag doll and smacked into the wall, twitching and flailing like he was being electrocuted. Eventually he came to rest, still stuck to the wall.

post-9-1250896741_thumb.jpg

Link to comment
Share on other sites

Hmm, I tried shooting all the sleepers in the head to see what happens, and the vast majority of them seemed fine. The body jerked up a bit, one actually flipped over, but nothing that seemed that unbelievable for someone just shot in the head.

 

The end bed, however, beside the bunk-bed, seems to be a special case (actually I've not tried the bunkbed yet). The AI acts like he's being electrocuted after death, quite different from all the others.

 

edit: I've seen the falling through the floor behaviour a few more times...seems like the AI falls off the bed while in the sitting position and sits on the floor, then goes through the floor when standing up.

Link to comment
Share on other sites

Updated map with monsterclip, AI in top bunk, and adjusted bed positions for changed models. I think that end one who break dances when dying is not the bed but the AI as I tried him away from the bed. Basically I think these are reasonable but not perfect. I saw an AI fall through the floor after awakening at alert so that might be serious but hopefully for the time being a mapper can allow for that, eg, if a critical AI falls out of the map then maybe put a room below from which he can walk back up freely. That might have to suffice until it is solved.

 

One other thing, I've noticed these AI attack me once I alert them even though they are on team 0. Is that intended? That if a team mate is alerted he will attack you? That could be a serious problem if a friendly is needed to help the player but gets alerted.

 

post-400-1250944516_thumb.jpg

Link to comment
Share on other sites

I think that end one who break dances when dying is not the bed but the AI as I tried him away from the bed.

 

I'll have to see if any of the archer attachments are the problem.

 

One other thing, I've noticed these AI attack me once I alert them even though they are on team 0. Is that intended? That if a team mate is alerted he will attack you? That could be a serious problem if a friendly is needed to help the player but gets alerted.

 

If you hurt them they'll turn violent. Possibly if they see you hurt someone else on the same team, not sure about that.

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...