Help with custom prop_physics! Created 17 years ago2007-03-03 14:14:11 UTC by ultragamer ultragamer

Created 17 years ago2007-03-03 14:14:11 UTC by ultragamer ultragamer

Posted 17 years ago2007-03-03 14:14:11 UTC Post #214777
I have looked at the first XSI model tutorial and made the cube. Then looked at the source modeling setup tutorial. I exported the model smd, skeletal animationsmd, and physbox smd. Model smd=prop_box_ref.smd skeletal animation smd=prop_box_idle.smd physbox smd=prop_box_phys.smd. This the the QC file I am using-

$modelname prop_box/prop_box.mdl
$cdmaterials models/prop_box
$scale 1.0
$body studio "prop_box_ref.smd"
$sequence idle "prop_box_idle.smd" fps 1
$collisionmodel "prop_box_phys.smd" {
$Mass 20
}

I compiled the model, looks fine in the model viewer. Made a map with the prop_box (cube) as a prop_physics entity. Ran the map. The cube isn't there and the console says something like "prop_physics models/prop_box/prop_box.mdl has no prop data. Can be used as only prop_static. DELETED." Can some one help me out here :cry:?
Posted 17 years ago2007-03-03 14:30:13 UTC Post #214778
"Prop data" means the information used when the player interacts with the prop. For instance, a barrel will make sort of a 'clanging' noise when picked up. Without this information coded out in the .QC, the game doesn't know what to do with the prop, and deletes it.

$modelname models/Ball/Ball.mdl
$scale 1
$cdmaterials models/Ball
$surfaceprop "metal"
$keyvalues
{
"prop_data"
{
"base" "Metal.Medium"
}
}
$body studio "Ball_ref.smd"
$sequence idle "Ball_idle.smd" fps 1
$collisionmodel "Ball_phys.smd" {
$Mass 10
}


Here's a metal ball model I designed to test as a prop_physics. Note the "$keyvalues" line. This is where you add in your prop data. Make the $keyvalues section of the .QC look like this.

Where it says "base" "Metal.Medium," set "Metal.Medium" to how you want your prop to "act" when picked up or dropped. Metal.Medium would sound like a metal pot when picked up or dropped, where as something like Wood.Small would sound like a small wooden plank when interacted with. A list of these prop_data commands can be found Here.
Posted 17 years ago2007-03-03 14:49:37 UTC Post #214781
TY! :lol:. Yays! The box works now...it's a complete physics model and I can grav gun it and shoot it/crowbar it if I want :biggrin:. I set the keyvalue as Wooden.Tiny. Thank you.
You must be logged in to post a response.