Currently I am trying to get my model to accept textures however I am running into a problem in the .qc, whenever I try to compile my model Crowbar comes up with this error to give me: "w_revolver_silenced.qc(14): - bad command {"
This is what is in the .qc file.
"
$modelname "weapons\w_models\w_revolver_silenced.mdl"
$staticprop
$bodygroup "mybody"
{
studio "w_revolver_silenced.smd"
}
$cdmaterials "models\weapons\w_models\revolver_s_t.vmt
$texturegroup "skinfamilies"
{
{
"revolver_s_t.vmt"
}
}
// Model uses material "revolver_s_t.vmt""
$surfaceprop "concrete"
$contents "solid"
$illumposition 5.126 -13.847 3.849
$bbox -6.656 -3.822 -0.58 34.35 14.048 8.279
$cbox 0 0 0 0 0 0
"
How do I fix the problem?
Replies
Black Frame* QC
$modelname "weapons\c_models\c_black_frame\c_black_frame.mdl" $model "Body" "c_black_frame.dmx.smd" $cdmaterials "models\weapons\c_models\c_black_frame" $cdmaterials "" $hboxset "default" $hbox 0 "weapon_bone" -4.130 -7.264 -25.883 4.482 11.755 16.272 // Model uses material "models/weapons/c_items/c_black_frame.vmt" $attachment "muzzle" "weapon_bone" -0.00 6.66 15.17 rotate -90.00 -0.00 0.00 $attachment "backblast" "weapon_bone" -0.00 6.66 -25.28 rotate 90.00 -0.00 0.00 $surfaceprop "metal" $illumposition -5.081 0.176 2.245 $sequence idle "idle" loop fps 15.00 $collisionmodel "phymodel.smd" { $concave $mass 9.0 $inertia 1.00 $damping 0.00 $rotdamping 0.00 }Original Blackbox QC
$cd "c:\extracted\c_blackbox" $modelname "weapons/c_models/c_blackbox/c_blackbox.mdl" $model "body" "c_blackbox.dmx.smd" $lod 7 { replacemodel "c_blackbox.dmx" "lod1_c_blackbox.dmx" } $lod 12 { replacemodel "c_blackbox.dmx" "lod2_c_blackbox.dmx" } $lod 20 { replacemodel "c_blackbox.dmx" "lod3_c_blackbox.dmx" } $cdmaterials "models\weapons\c_items\" $cdmaterials "" $hboxset "default" $hbox 0 "weapon_bone" -4.130 -7.264 -25.883 4.482 11.755 16.272 $hbox 0 "weap_jig1" -4.006 -0.955 -0.270 4.006 1.908 8.919 // Model uses material "models/weapons/c_items/c_blackbox.vmt" $attachment "muzzle" "weapon_bone" -0.00 6.66 15.17 rotate -90.00 -0.00 0.00 $attachment "backblast" "weapon_bone" -0.00 6.66 -25.28 rotate 90.00 -0.00 0.00 $surfaceprop "metal" $illumposition -5.081 0.176 2.245 $sequence idle "idle" loop fps 15.00 $collisionmodel "phymodel.smd" { $concave $mass 9.0 $inertia 1.00 $damping 0.00 $rotdamping 0.00 }there are differences but basically you just update what you need for each weapon on a case by case.
$cd "C:\program files\baked\123"
$modelname "weapons\c_models\c_shampur\shampur.mdl"
$mostlyopaque
$model "BodyR" "bodyR.smd"
$cdmaterials "models\weapons\c_shampur"
// Model uses material "models\weapons\c_shampur\TEXTUREOFFUCKINGSHAMPUR.vmt"
$hboxset "default"
$surfaceprop "metall"
$illumposition -0.892 0.000 31.608
$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00
// Model uses material "models\weapons\c_shampur\TEXTUREOFSHAMPUR.vmt"
$attachment "weapon_bone" "weapon_bone" 0.00 0.00 0.00 rotate 0.00 -0.00 -0.00