Custom Physics Model
Post Reply
Quote
Re: Custom Physics Model
Posted by Smeg and the Heads on Mon Aug 14th at 8:11pm 2006


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 FilesSteamSteamAppsSourceModsExposedmodelsDingyEngine.smd"
$sequence "Idle" "C:Program FilesSteamSteamAppsSourceModsExposedmodelsDingyEngine.smd" fps 30 ACT_IDLE 1

$surfaceprop "metalsolid"

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

$collisionmodel "C:Program FilesSteamSteamAppsSourceModsExposedmodelsDingyEngineCM.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.





Quote
Re: Custom Physics Model
Posted by Campaignjunkie on Tue Aug 15th at 7:37am 2006


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.




Quote
Re: Custom Physics Model
Posted by Smeg and the Heads on Tue Aug 15th at 10:55am 2006


I checked the console and it said the prop_data was wrong so ive corrected that and it works now. Thanks for the help.



Quote
Re: Custom Physics Model
Posted by Pvt.Scythe on Tue Aug 15th at 11:29am 2006


Then flag his answer as correct so that the search engine finds this question and the answer. <img src=" SRC="images/smiles/icon_smile.gif"> And CJ gets ten more snarkmarks. :P



''Everyone wades in s**t until they're competent enough to walk on it. Jesus style.''
Dystopia - Empires




Post Reply