MrBehemoth
08-06-2007, 03:10 PM
Hullo... I've made a model for use as a prop_physics with materials, lod model etc. I've tested it ingame and everything works OK apart from one thing...:eek: there are no impact sounds, whether throwing the prop around or hitting it. I've tried defining the surface properties in both the vmt and the qc file (see below). Can anyone tell me which file you set it in? Does the surfaceproperties defined in the QC overide the materials for the whole model?
And does anyone know why my prop wouldn't have any sounds?:confused:
// QC:
////////////////////////////////////////////////////////////////////////////////////
$modelname ship_barrel.mdl
$cdmaterials models models/ship_barrel
$staticprop
$surfaceprop "canister"
$upaxis Z
$scale 1.0
$body "Body" "ship_barrel.smd"
$sequence "idle" "ship_barrel" fps 30
$collisionmodel "ship_barrel_col.smd"
{
//Mass in kilograms
$mass 8
$concave
}
$keyvalues
{
"prop_data"
{
"base" "Metal.Small"
}
}
$lod 256
{
replacemodel "ship_barrel.smd" "ship_barrel_lod.smd"
replacematerial "barrel" "barrel_lod"
replacematerial "goo_orange" "goo_orange_lod"
}
// VMT:
/////////////////////////////////////////////////////////////////////////////////////
"VertexLitGeneric"
{
"$basetexture" "models/ship_barrel/barrel"
"$surfaceprop" "canister"
"$envmap" "env_cubemap"
"$bumpmap" "models/ship_barrel/barrel_norm"
"$normalmapalphaenvmapmask" 1
"$envmapcontrast" 1
"$envmaptint" "[ 0.2 0.2 0.2 ]"
"$model" 1
"$selfillum" 1
}
Have I missed something?
Cheers!
And does anyone know why my prop wouldn't have any sounds?:confused:
// QC:
////////////////////////////////////////////////////////////////////////////////////
$modelname ship_barrel.mdl
$cdmaterials models models/ship_barrel
$staticprop
$surfaceprop "canister"
$upaxis Z
$scale 1.0
$body "Body" "ship_barrel.smd"
$sequence "idle" "ship_barrel" fps 30
$collisionmodel "ship_barrel_col.smd"
{
//Mass in kilograms
$mass 8
$concave
}
$keyvalues
{
"prop_data"
{
"base" "Metal.Small"
}
}
$lod 256
{
replacemodel "ship_barrel.smd" "ship_barrel_lod.smd"
replacematerial "barrel" "barrel_lod"
replacematerial "goo_orange" "goo_orange_lod"
}
// VMT:
/////////////////////////////////////////////////////////////////////////////////////
"VertexLitGeneric"
{
"$basetexture" "models/ship_barrel/barrel"
"$surfaceprop" "canister"
"$envmap" "env_cubemap"
"$bumpmap" "models/ship_barrel/barrel_norm"
"$normalmapalphaenvmapmask" 1
"$envmapcontrast" 1
"$envmaptint" "[ 0.2 0.2 0.2 ]"
"$model" 1
"$selfillum" 1
}
Have I missed something?
Cheers!