Custom Physics Model

Custom Physics Model

Re: Custom Physics Model Posted by Smeg and the Heads on Mon Aug 14th 2006 at 8:11pm
Posted 2006-08-14 8:11pm
2 posts 0 snarkmarks Registered: Aug 14th 2006 Location: UK
I have made a model using 3ds max and have expoted it as a .smd model, i have also made a simple model for my collision model and exported that as an smd. I have compiled the .qc file using the studiomdl you find in the sourcesdk folder. Here is my qc file:

$modelname "DingyEngine.mdl"
$scale 0.40
$cdmaterials "models"
//$staticprop

$body "Body" "C:\Program Files\Steam\SteamApps\SourceMods\Exposed\models\DingyEngine.smd"
$sequence "Idle" "C:\Program Files\Steam\SteamApps\SourceMods\Exposed\models\DingyEngine.smd" fps 30 ACT_IDLE 1

$surfaceprop "metalsolid"

$keyvalues { "prop_data" { "base" "metalsolid" } }

$collisionmodel "C:\Program Files\Steam\SteamApps\SourceMods\Exposed\models\DingyEngineCM.smd"
{
$mass 15.0
$concave
}

So ive compiled it into a .mdl file. In the Hammer Editor I can see my model in the browse model section in the properties of Prop_physic, in the info section it is ticked as a physic model but my model does not appear in game, without the line $keyvalues { "prop_data" { "base" "metalsolid" } } it works as a Prop_dynamic, I have tried very hard to get it into game and looked at various tutorials and cannot figure it out, any help with this will be very appreciated.
Re: Custom Physics Model Posted by Campaignjunkie on Tue Aug 15th 2006 at 7:37am
Campaignjunkie
1309 posts
Posted 2006-08-15 7:37am
1309 posts 329 snarkmarks Registered: Feb 12th 2002 Occupation: Student Location: West Coast, USA
When compiling the map with your model, check for any error messages in the "VBSP" stage.

If that doesn't yield anything, start your mod with the parameters "-console -dev". When you load the map with your model in it, check the console output for anything weird, maybe something like "prop_physics at [245, 125, 251] (problem). DELETED."

Also, try using a prop_physics_override instead of a prop_physics.
Re: Custom Physics Model Posted by Smeg and the Heads on Tue Aug 15th 2006 at 10:55am
Posted 2006-08-15 10:55am
2 posts 0 snarkmarks Registered: Aug 14th 2006 Location: UK
I checked the console and it said the prop_data was wrong so ive corrected that and it works now. Thanks for the help.
Re: Custom Physics Model Posted by Pvt.Scythe on Tue Aug 15th 2006 at 11:29am
Pvt.Scythe
730 posts
Posted 2006-08-15 11:29am
730 posts 113 snarkmarks Registered: Sep 19th 2004 Occupation: student Location: Finland
Then flag his answer as correct so that the search engine finds this
question and the answer. :smile: And CJ gets ten more snarkmarks. :razz:
''Everyone wades in s**t until they're competent enough to walk on it. Jesus style.''
Dystopia - Empires