paint can effect

Joined
Feb 21, 2005
Messages
304
Reaction score
0
I'm trying to create a model ingame of a tomato that is thrown against a wall and smashes (dissapears) and leaves a decal of a tomato splat anywhere it is thrown. I am trying to figure out how to do this with the paint can effect. does anyone know which method valve used to do this? to use the paintcan the way it is intended all I have to do is place a prop_physics in the map and set the world model to "props_junk/metal_paintcan001a.mdl" and it works. I've tried to take some lines from the paintcan's .qc file and add/substitute it in my tomato model .qc file, including setting the surfeceprop to "paintcan", but that did not help. Can anyone clue me in? Thanx
 
lol crackhead ....
s2wiss cheese i think you should ask this in the coding forums .
 
thats a very interesting question.
post the QC of the hl2 paintcan, im too lazy :p.
 
Here is the paintcan .qc file


$cd "C:\Documents and Settings\David\Desktop\work\hl2\source\decompiled_models"
$modelname "props_junk/metal_paintcan001a.mdl"
$model "Body" "metal_paintcan001a_reference.smd"
$cdmaterials "MODELS\props_junk/"
// Model uses material "Cardboard_boxes001a.vmt"
$surfaceprop "paintcan"
$illumposition 0.030 -0.007 0.000
$sequence idle "idle" fps 30.00
$collisionmodel "phymodel.smd" {

$concave
$mass 7.0
$inertia 1.00
$damping 0.00
$rotdamping 0.00
}
 
Back
Top