Everything appears ok: the bones, the attachments, the coordinates, the grammar...but doesn´t appear in game. Doesn´t have muzzleflashes both the view and the world models.
This is the QC file of a world model as example (MG42):
Code: Select all
$cd "C:\Users\****\Desktop\Nueva carpeta\mg42"
$modelname "weapons\w_mg42bu.mdl"
$model "studio" "w_mg42bu_ref1.smd"
$cdmaterials "models\weapons\w_models\mg42\"
// Model uses material "w_mg42.vmt"
$attachment "muzzle_flash" "ValveBiped.Weapon_bone" 24.00 1.00 -4.00 rotate 10.00 -0.00 -90.00
$attachment "1" "ValveBiped.Weapon_bone" -3.50 2.00 0.70 rotate 45.00 90.00 -90.00
$surfaceprop "weapon"
$illumposition 3.124 -14.236 2.013
$sequence w_mg42bu_idle "w_mg42bu_idle1" fps 1.00
$sequence w_mg42bu_shoot "w_mg42bu_shoot1" ACT_RANGE_ATTACK_AR2 1 fps 100.00 {
{ event AE_MUZZLEFLASH 0 "SMG1 MUZZLE" }
{ event 3002 0 }
{ event 6001 0 "0" }
}
$collisionmodel "phymodel.smd" {
$mass 8.0
$inertia 1.00
$damping 0.00
$rotdamping 0.00
}