Hey. So I'm in the middle of creating my SWEP and just as I wanted crowbar to define all my bones, it only shows me a small section of them. Here is my .qc
[CODE]$ModelName "weapons\c_pyrosradarguntestv2.mdl"
$BodyGroup "studio"
{
studio "c_pyrosradargun_reference.smd"
}
$SurfaceProp "default"
$Contents "solid"
$MaxEyeDeflection 90
$CDMaterials "models\weapons\"
$Attachment "light01" "pp_radargun_light02" 0 0 0 absolute
$Attachment "light02" "pp_radargun_light01" 0 0 0 absolute
$CBox 0 0 0 0 0 0
//$BBox -6.293 -17.265 -16.448 26.343 13.653 -2.417
$HBoxSet "default"
$Sequence "idle" {
"radargun_anims\idle.smd"
activity "ACT_VM_IDLE" 1
fadein 0.15
fadeout 0.2
fps 2.82
}
$Sequence "draw" {
"radargun_anims\draw.smd"
activity "ACT_VM_DRAW" 1
fadein 0.2
fadeout 100
fps 35
}
$Sequence "activate" {
"radargun_anims\activate.smd"
activity "ACT_VM_ACTIVATE" 1
fadein 0.2
fadeout 100
fps 30
}
[/CODE]
And here is the compile log:
[CODE] Building binary model files...
Working on "v_radargun.qc"
SMD MODEL c_pyrosradargun_reference.smd
SMD MODEL radargun_anims\idle.smd
SMD MODEL radargun_anims\draw.smd
SMD MODEL radargun_anims\activate.smd
$definebone "ValveBiped_Bip01_R_Clavicle" "" -13.555603 3.864359 -10.662990 -21.129192 131.538339 116.919262 -0.000000 0.000000 0.000000 -0.000000 -0.000003 0.000000
$definebone "ValveBiped_Bip01_R_UpperArm" "ValveBiped_Bip01_R_Clavicle" 0.000360 0.000261 0.000002 25.073148 172.240803 7.309108 0.000000 -0.000001 0.000000 -0.000003 -0.000001 0.000000
$definebone "ValveBiped_Bip01_R_Forearm" "ValveBiped_Bip01_R_UpperArm" 11.692550 -0.000002 0.000003 -0.000003 -30.710829 0.000001 0.000000 0.000000 0.000000 -0.000003 -0.000004 0.000001
$definebone "ValveBiped_Bip01_R_Hand" "ValveBiped_Bip01_R_Forearm" 11.481703 -0.000003 0.000005 38.227630 44.997871 -63.911269 0.000000 -0.000000 0.000000 0.000001 -0.000002 0.000003
$definebone "pp_radargun_light02" "ValveBiped_Bip01_R_Hand" 1.786916 0.972971 -4.333696 1.480525 -107.583315 -89.428003 -0.000000 0.000000 0.000000 -0.000003 0.000002 0.000002
$definebone "pp_radargun_light01" "ValveBiped_Bip01_R_Hand" 0.618625 -2.714103 -4.446435 1.480525 -107.583315 -89.428003 0.000000 0.000000 0.000000 -0.000003 0.000002 0.000002
$definebone "pp_radargun_body" "ValveBiped_Bip01_R_Hand" 3.217486 -1.546454 -2.700475 1.480525 -107.583315 0.572039 0.000000 0.000000 0.000000 0.000002 0.000002 -0.000002
$definebone "pp_radargun_trigger" "pp_radargun_body" 0.000000 2.014412 -0.406905 0.000002 0.000002 -0.000002 0.000000 0.000000 0.000000 0.000002 0.000002 -0.000002
... Compiling ".\v_radargun.qc" finished. Check above for any errors.
[/CODE]
IIRC, the $definebone command Crowbar has doesn't actually do $definebone automatically, it just forces a check for $definebone commands inside your QC, you'll still have to manually do $definebone in the QC for each and every bone yourself.
You're mostly correct. The -definebones switch doesn't actually define anything, however, it does dump a list of all the bones and formats them so you then just copy/paste the $definebone statements into your QC.
As to why it's not picking up certain bones, I'm not sure. I tried it with my own model and it got all the bones that were in the SMD, even the ones that aren't rigged to anything.
Sorry, you need to Log In to post a reply to this thread.