PDA

View Full Version : prop impact sounds - huh?


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!

Angry Beaver
08-06-2007, 04:15 PM
NM i spotted the VMT which was my question.

Thats is odd, are you sure canister is a valid material type?

MrBehemoth
08-07-2007, 01:57 PM
edit: Apologies - I'm a dumbass. I was using the same map to play about with soundscapes and I forgot that I'd turned off the physics sounds.

Spider-Baby
08-07-2007, 11:46 PM
behemoth, your color scheme is a role model for us all. viva la avatar!