Hello,
Been trying to make a prop break for the past 3 hours, but it doesn't seem to work
(maybe it's too late and I'm too tired).
Here's what I have so far:
1 main model
4 gib models
here is my main model .qc:
Code
$modelname props/fence_breakable.smd
$body "body" "models/props/fence_breakable.smd"
$sequence idle "models/props/fence_breakable_idle.smd" loop fps 15
$cdmaterials models/props
$surfaceprop "Wooden.Large"
$scale "1"
$keyvalues { "prop_data" { "base" "Wooden.Large" "health" "99"} }
$collisiontext
{
break
{
"model" "models/props/fence_breakable01.smd"
}
break
{
"model" "models/props/fence_breakable02.smd"
}
break
{
"model" "models/props/fence_breakable03.smd"
}
break
{
"model" "models/props/fence_breakable04.smd"
}
}
$collisionmodel "models/props/fence_breakable_phys.smd" {
$concave
$mass 25
}
Display More
here is my big model .qc (1 out of 4, since they're all the same):
Code
$modelname props/fence_breakable01
$cdmaterials models/props
$surfaceprop "Wooden.Large"
$autocenter
$scale "1"
$body studio "models/props/fence_breakable01.smd"
$sequence idle "models/props/fence_breakable01_idle.smd" fps 1
$collisionmodel "models/props/fence_breakable01_phys.smd"
{
$Mass 5
$concave
}
Display More
I use prop_physics and prop_physics_multiplayer (which one do I need to use?)
They both appear in game, and collisions work, I can shoot at them both for 3 or 4 shots, and at the point where they should break and the gibs should appear,
they just disappear, so the main model despawns and nothing else is being spawned (no gibs).
What am I doing wrong!? ![]()
Thanks in advance :x
-wez