Flagging a model for physics?

Modelling, Textures, Animating and other general engine asset topics.

Flagging a model for physics?

Postby Portalboat on Thu Oct 28, 2010 11:21 pm

I'm trying to get a model to be a prop_physics, but it's not flagged as such in the Hammer Model Viewer. How would I get it flagged?

Here's my .QC:
Code: Select all
$modelname   "props_lohac\scalemate.mdl"
$body scalemate   "scalemate.smd"
$surfaceprop   cloth
$cdmaterials   "LOHAC\models"
$texturegroup "ScalemateSkin"
{
   { "scalemate" }
   { "scalemate_purple" }
   { "scalemate_yellow" }
}
$collisionmodel "scalemate_phys.smd"
{
   $concave
   $mass 10
}
$sequence idle "scalemate_idle" loop fps 1
Portalboat
Regular
Regular
 
Joined: Tue Aug 11, 2009 4:00 pm

Re: Flagging a model for physics?

Postby omnicoder on Thu Oct 28, 2010 11:34 pm

You need propdata.
Image
If only the future implemented IForeseeable...
"whats threading? does it have to do with strings?" - stegarootbeer
User avatar
omnicoder
Been Here A While
Been Here A While
 
Joined: Sun Feb 07, 2010 8:35 am

Re: Flagging a model for physics?

Postby Portalboat on Fri Oct 29, 2010 1:54 pm

Well, I added prop data, and now it crashes Hammer whenever I try to load it in the VGUI viewer (however, it loads fine otherwise.) Will this mean that I can't use it in game?

Code: Select all
$modelname   "props_lohac\scalemate.mdl"
$body scalemate   "scalemate.smd"
$surfaceprop   cloth
$cdmaterials   "LOHAC\models"
$texturegroup "ScalemateSkin"
{
   { "scalemate" }
   { "scalemate_purple" }
   { "scalemate_yellow" }
}
$collisionmodel "scalemate_phys.smd"
{
   $concave
   $mass 10
}
$sequence idle "scalemate_idle" loop fps 1
$keyvalues
{
   prop_data
   {
      base         Plastic.small
      dmg.bullets      0
      fire_interactions
      {
         flammable   yes
      }
   }
}

      


Portalboat
Regular
Regular
 
Joined: Tue Aug 11, 2009 4:00 pm

Return to Art Creation

Who is online

Users browsing this forum: No registered users

cron