Re: Model needs to explode upon throwing
Posted by fishy on
Sun Oct 12th 2008 at 10:38pm
Posted
2008-10-12 10:38pm
fishy
member
2623 posts
1476 snarkmarks
Registered:
Sep 7th 2003
Location: glasgow
I never actually got around to making a breakable model but, IIRC, you need to make all the individual gib pieces as seperate models, and include some lines in the main pumpkin model's .qc file that tells it to use those gibs when it gets broken.
Re: Model needs to explode upon throwing
Posted by haymaker on
Sun Oct 12th 2008 at 11:16pm
Posted
2008-10-12 11:16pm
439 posts
921 snarkmarks
Registered:
Apr 1st 2007
Location: CAN
I fooled around with this, you will need to decompile the model, edit the .qc to include explosive properties, then recompile making sure the texture information is correct in the.qc.
Here's what I did to make the hl2 gas pump throwable and explosive ( and also half-sized :O )
$cd "D:\STEAM\steamapps\xxx\sourcesdk_content\hl2mp\modelsrc\tinytown\gaspump"
$modelname "tinytown/gaspumptiny.mdl"
$scale 0.5
$model "Body" "gaspump001a_reference.smd"
$lod 20
{
replacemodel "gaspump001a_reference" "lod1_gaspump001a_reference"
}
$keyvalues
{
prop_data {
"dmg.bullets" "1.0" "dmg.club" "1.0" "dmg.explosive" "1.0" "health" "20" "explosive_damage" "120" "explosive_radius" "256" }
physgun_interactions {
"onfirstimpact" "break" }
fire_interactions {
"flammable" "yes" "explosive_resist" "yes" "ignite" "halfhealth" }
}
$cdmaterials "models\props_wasteland/"
// Model uses material "gaspump.vmt"
$surfaceprop "metal"
$illumposition 0.000 0.000 31.950
$sequence idle "idle" fps 30.00
$collisionmodel "phymodel.smd" {
$concave
$mass 64
$inertia 1.00
$damping 0.00
$rotdamping 0.00
}
Re: Model needs to explode upon throwing
Posted by Juim on
Mon Oct 13th 2008 at 12:12am
Posted
2008-10-13 12:12am
Juim
member
726 posts
386 snarkmarks
Registered:
Feb 14th 2003
Occupation: Motion Picture Grip
Location: Los Angeles
Thanks, haymaker, what program could I use to de-compile a model?
Keep in mind, that I never have made a custom model yet.Although, given the proper basic instructions, I think I could do it.