View Full Version : prop impact sounds - huh?

08-06-2007, 04: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
$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

"base" "Metal.Small"

$lod 256
replacemodel "ship_barrel.smd" "ship_barrel_lod.smd"
replacematerial "barrel" "barrel_lod"
replacematerial "goo_orange" "goo_orange_lod"

// VMT:

"$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?

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

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

08-07-2007, 02: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.

08-08-2007, 12:46 AM
behemoth, your color scheme is a role model for us all. viva la avatar!