Jump to content


Ragdoll not working

  • Please log in to reply
2 replies to this topic

#1 PaulRazvan



  • Member
  • Pip
  • 6 posts

Posted 19 February 2018 - 04:59 AM



I know this is not TDM, but Doom 3, again. I hope I'm not causing problems. But I find your forums alot friendlier and active.


I have a custom monster in-game working all well, except for the ragdoll. When killed it goes in T-Pose. I must tell I don't know how to set-up a ragdoll, some people who have looked told me it's something wrong with the animations, some told me it's nothing wrong with them but can't seem to fix it. Now here comes the question. Is anyone on these forums willing to help me try and fix it if I send him the files? I've been having this problem for some time. 


#2 Springheel


    Creative Director (retired)

  • Admin
  • 36846 posts

Posted 19 February 2018 - 10:37 AM

Working with ragdolls is a pretty high-level task.  There are probably only a couple people around here that know how to do that.

#3 Epifire



  • Active Developer
  • PipPip
  • 495 posts

Posted 20 February 2018 - 12:58 AM

I think it requires a def file with constraint data? I'm not sure how else we'd go about that so lemme do ya a look here. Aight, so digging into some of our def files I think I can point to the block that will properly handle your ragdoll. These are used in TDM but considering these look pretty standard, I'd say they're inherited functions from the original D3 ragdoll system.


One thing to take into account, is if you're indeed using a brand new monster (and importantly with new rig with anims) you'll most certainly need to define this somewhere for the game to understand your rig's ragdoll constraints. I wanted to create a roller bot at some point but I haven't delved enough into this process myself to be %100 certain but hopefully this will help.


*Taken from tdm_ai_base.def*


"editor_float mass" "Character's mass in kg."
"editor_var ragdoll"  "Specifies the .af file to use for a ragdoll when the creature dies"
"editor_var ragdoll_slomoStart" "Start time of ragdoll slow motion relative to death time, defaults to -0.2"
"editor_var ragdoll_slomoEnd" "End time of ragdoll slow motion relative to death time, defaults to 1.0"
"editor_var ragdoll_jointFrictionDent" "Joint friction dent on ragdoll."
"editor_var ragdoll_jointFrictionStart" "Start time for joint friction dent"
"editor_var ragdoll_jointFrictionEnd" "End time for joint friction dent"
"editor_var ragdoll_contactFrictionDent" "Contact friction dent on ragdoll."
"editor_var ragdoll_contactFrictionStart" "Start time for contact friction dent"
"editor_var ragdoll_contactFrictionEnd" "End time for contact friction dent"
"editor_bool af_push_moveables" "whether the monster's articulated figure pushes obstacles while they're alive."


If it's any help, you may want to compare this to whatever default base you're pulling from in stock D3 assets. "Editor_var_ragdoll" looks to be of the greatest interest to what you're encountering, because I'd imagine if the game cannot locate a proper .af file; it's likely to be kicking it to Tpose for lack of identifying the correct information. If you do have all this information lined up in a working def file, I'd second check the lines for typos as well as the integrity of the af file itself.


EDIT: Did a tad bit more searching and I think this .af file crops up in one other spot (directly on a character def file). It's worth assuming the articulatedFigure declaration is searching the .af file so maybe this is closer to what you're needing.




* ============================= CORPSE ============================
entityDef atdm:env_ragdoll_builder_acolyte
"inherit" "atdm:env_ragdoll_humanoid_base"
"editor_usage" "Ragdoll for builder_acolyte"
"model" "tdm_ai_builderacolyte"
"articulatedFigure" "guard_base"
"def_head" "atdm:ai_head02_hood_brown"
"head_joint" "Head"


I'm starting to get kinda curious how to rig up some of this stuff myself now that I've been rummaging around in these folders a good bit. Either way hope that helps man!

You need a model? Epi does you a model.


Toss me a PM I promise I don't bite.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users