• What's Wrong With this Code?
    3 replies, posted
I'm trying to convert this model: [url]http://garrysmod.org/downloads/?a=view&id=81138[/url] Into a playermodel. But it's not working well. It's stuck in a T pose, not facing the right way, and doesn't have an icon in the menus. Here's the .qc file contents from my work on it: [CODE]$cd "C:\Users\DManganiello15\Desktop\GMod\Projects\Dark Samus" $modelname "darksamus.mdl" $model "Dark Samus" "darksamus.smd" $cdmaterials "models\darksamus\" $hboxset "default" $hbox 0 "Pelvis" -1.403 -7.050 -6.420 12.006 7.174 5.599 $hbox 0 "Spine" 0.000 -6.494 -9.294 16.861 6.605 11.195 $hbox 0 "Head" 0.000 -5.133 -7.046 11.550 5.402 6.084 $hbox 0 "R Chest" -0.784 -5.520 -9.254 16.795 6.879 10.526 $hbox 0 "R FOREARM" -4.800 -4.641 -8.688 12.477 5.566 3.833 $hbox 0 "R ARm Cannon" -2.106 -3.627 -5.686 27.352 7.569 3.547 $hbox 0 "L Chest" -0.697 -6.347 -9.348 12.810 5.388 10.483 $hbox 0 "L Shoulder" -4.444 -4.425 -8.075 9.462 4.842 4.567 $hbox 0 "L Forearm" -1.402 -3.032 -5.774 16.306 3.446 4.629 $hbox 0 "L Hand" -1.205 -3.843 -1.598 5.869 1.695 4.317 $hbox 0 "R Leg" -6.506 -3.875 -5.891 20.021 3.965 8.408 $hbox 0 "R Thigh" 0.000 -3.196 -5.886 29.458 4.192 9.449 $hbox 0 "L Leg" -6.769 -3.701 -5.742 20.603 4.391 8.262 $hbox 0 "L Thigh" -0.081 -3.951 -6.524 30.433 3.577 6.538 // Model uses material "body.vmt" // Model uses material "visor2.vmt" // Model uses material "reflection.vmt" $includemodel "f_anm.mdl" $includemodel "f_gst.mdl" $includemodel "f_pst.mdl" $includemodel "f_shd.mdl" $includemodel "f_ss.mdl" $surfaceprop "metal" $eyeposition 0.000 -0.000 70.000 $illumposition 2.194 -0.581 46.400 $sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00 $collisionjoints "phymodel.smd" { $mass 60.0 $inertia 10.00 $damping 0.01 $rotdamping 1.50 $rootbone "pelvis" $jointmerge "Pelvis" "Spine" $jointconstrain "l leg" x limit 0.00 0.00 0.00 $jointconstrain "l leg" y limit -35.00 35.00 0.00 $jointconstrain "l leg" z limit -10.00 10.00 0.00 $jointconstrain "r leg" x limit -17.00 17.00 0.00 $jointconstrain "r leg" y limit -34.00 34.00 0.00 $jointconstrain "r leg" z limit -10.00 10.00 0.00 $jointconstrain "r thigh" x limit -21.00 21.00 0.00 $jointconstrain "r thigh" y limit -39.00 39.00 0.00 $jointconstrain "r thigh" z limit -12.00 12.00 0.00 $jointconstrain "spine" x limit -15.00 15.00 0.00 $jointconstrain "spine" y limit -15.00 15.00 0.00 $jointconstrain "spine" z limit -17.00 17.00 0.00 $jointconstrain "l chest" x limit -2.00 2.00 0.00 $jointconstrain "l chest" y limit -1.00 -1.00 0.00 $jointconstrain "l chest" z limit -3.00 3.00 0.00 $jointconstrain "l shoulder" x limit -10.00 10.00 0.00 $jointconstrain "l shoulder" y limit -28.00 28.00 0.00 $jointconstrain "l shoulder" z limit -21.00 21.00 0.00 $jointconstrain "l forearm" x limit -15.00 15.00 0.00 $jointconstrain "l forearm" y limit -17.00 17.00 0.00 $jointconstrain "l forearm" z limit -21.00 21.00 0.00 $jointconstrain "r chest" x limit -3.00 3.00 0.00 $jointconstrain "r chest" y limit -1.00 -1.00 0.00 $jointconstrain "r chest" z limit -3.00 3.00 0.00 $jointconstrain "r forearm" x limit -15.00 15.00 0.00 $jointconstrain "r forearm" y limit -19.00 19.00 0.00 $jointconstrain "r forearm" z limit -21.00 21.00 0.00 $jointconstrain "l hand" x limit -10.00 10.00 0.00 $jointconstrain "l hand" y limit -6.00 6.00 0.00 $jointconstrain "l hand" z limit -8.00 8.00 0.00 $jointconstrain "head" x limit -10.00 10.00 0.00 $jointconstrain "head" y limit -10.00 10.00 0.00 $jointconstrain "head" z limit -8.00 8.00 0.00 $jointconstrain "r arm cannon" x limit -10.00 10.00 0.00 $jointconstrain "r arm cannon" y limit -53.00 53.00 0.00 $jointconstrain "r arm cannon" z limit -32.00 32.00 0.00 $jointconstrain "l thigh" x limit -21.00 21.00 0.00 $jointconstrain "l thigh" y limit -39.00 39.00 0.00 $jointconstrain "l thigh" z limit -12.00 12.00 0.00 $animatedfriction 1.000 400.000 0.500 0.300 0.000} [/CODE] Here's a screenshot of my trouble: [IMG]http://cloud.steampowered.com/ugc/1117176606637921770/79A8976BE77718A2CE25C05DC599F08E4162F1AF/[/IMG]
I think the guys over at the modelling section would be able to help you more, here is a link to get to them; [url]http://facepunch.com/forumdisplay.php?f=40[/url]
This might also help you: [url]http://wiki.garrysmod.com/page/Player_model_compilation[/url]
[QUOTE=smithy285;41783025]I think the guys over at the modelling section would be able to help you more, here is a link to get to them; [url]http://facepunch.com/forumdisplay.php?f=40[/url][/QUOTE] Thanks!
Sorry, you need to Log In to post a reply to this thread.