• Plasmid's Ragdoll Prop Tutorial (simple)
    4 replies, posted
This is a real simple tutorial for making small stuff on props ragdolled. [B][I]I'll assume you have some knowledge of 3ds max and the plug-ins you need already.[/I][/B] to begin open 3ds max Here we have our prop imported and ready to be rigged. [img_thumb]http://puu.sh/1Hyi4[/img_thumb] Now go to the tool bar and click animation/Bone Tools [img_thumb]http://puu.sh/1HynE[/img_thumb] A small window will pop up. this window is for creating and editing bones. click the create bones button. now go to your side view and click,drag the bone where you want. In this case we are ragdolling the pin, so make a large bone for the base and a second bone for the pin.(when dragging middle or right click to get out of bone mode.) [img_thumb]http://puu.sh/1HyoG[/img_thumb] now that we got our bones in place we need to add a skin. go to the modifier list and add a SKIN modifier. [img_thumb]http://puu.sh/1HyqV[/img_thumb] First check the box labeled vertices so we can select the verts. then click ADD. select both bones in the window that comes up and add them. now scroll down on the right window and click the little wrench. the weighting window will come up. select the grenade(making sure bone 1 is selected on your right window) now click 1 on the weight tool, your model will be red (telling us our selection is rigged to this bone) Now select the pin, rig it to bone 2. good work . your done with part one. Now we are going to make the physics model. [img_thumb]http://puu.sh/1Hyr9[/img_thumb] [img_thumb]http://puu.sh/1HysN[/img_thumb] Create 2 boxes by going to Create/StandardPrimatives/Box [img_thumb]http://puu.sh/1Hyt6[/img_thumb] Drag and click to create the square, make one for the base and one for the pin [img_thumb]http://puu.sh/1Hyur[/img_thumb] now select both squares go to the modifier list and add a EditMesh modifier [img_thumb]http://puu.sh/1HyuJ[/img_thumb] Now add a skin to them, add your bones, and rig the squares only to 1 bone Base square to bone 1, second square to bone 2 [img_thumb]http://puu.sh/1Hyvo[/img_thumb] Part 2 done, now export your SMDs your base model export a refence model name it grenade.smd now export your skeleton sequence name it ragdoll.smd now go to your physics model export a refrence name it phymodel.smd [B][I] make sure you add a texture to the Phymodel in some cases it wont export and be invisible in HLMV[/I][/B] [B]onto the QC[/B] [code]$surfaceprop "metal" $modelname "Plasmid/Asian_bitches.mdl" $mostlyopaque $cdmaterials "models/plasmid/grenade" $model "studio" "gernade.smd" { $sequence ragdoll "ragdoll.smd" FPS 30 $collisionjoints "phymodel.smd"{ $mass 60.0 $inertia 10.00 $damping 0.01 $rotdamping 1.50 $rootbone "bone01" $noselfcollisions $jointconstrain "bone02" x limit -32.00 19.00 0.00 $jointconstrain "bone02" y limit -95.00 95.00 0.00 } [/code] get your model compiled then view it in source SDK we need to set our constraints now. (since I didnt compile this ill use breen for examples) go to the physics tab you'll see a drop down menu that contains all the bones (which have physics models) pick your pin phy XYZ are the different bending positions the sliders show how far you can bend them. Min is your base and max is how far it can go, click on Y move the max slider to the right. under is a "test" slider move that back and forth to see the results of the max slider. when you have everything you need click generate QC this will coppy the settings to your clipboard. paste it in your QC [img_thumb]http://puu.sh/1Hzg4[/img_thumb] You will get something like this [code]$collisionjoints ragdoll { $mass 90.0 $inertia 10.00 $damping 0.01 $rotdamping 1.50 $rootbone "bone01" } $sequence ragdoll "ragdoll_pose" FPS 30 activity ACT_DIERAGDOLL 1 [/code] delete the following [code]$collisionjoints ragdoll { $sequence ragdoll "ragdoll_pose" FPS 30 activity ACT_DIERAGDOLL 1 [/code] you don't need these two parts as the qc already had them. compile again and your done, now with constraints. congratulations you are now 1 step closer to ragdolling and becoming another depressed FP porter.
[QUOTE=Rinfect;39038724]but im not depressed [sp]thanks for the tutorial <3[/sp][/QUOTE] you will be once you get into ragdolling people.
very nice tutorial thanks
Later some time im gonna check this out, looks really helpful! :D Thanks plasmid! :)
Sorry, you need to Log In to post a reply to this thread.