Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
$maxconvexpieces 3 (this tells crowbar that it will define 3 parts instead of one)
The reason why it does that is because it is optimizing the collisions so that the game can run better. I've bumped into it too, but I got it to work for a chair.
$modelname "cwhallsupport_addon\hallsupport\cwhallsupport.mdl"
$scale 1
$body 1 "cwhallsupport.smd"
$cdmaterials "hallsupport\cwhallsupport\"
$surfaceprop "metal"
$contents "solid"
$sequence "idle" "anims\cwhallsupport_idle.smd" {
fps 1
}
$collisionmodel "cwhallsupport_phys.smd"
{
$automass
$inertia 1
$damping 0
$rotdamping 0
$concave
}
My chair for example:
$collisionmodel "jlor_chair_gaming_physics.smd"
{
$mass 15
$inertia 1
$damping 0
$rotdamping 0
$rootbone "static_prop"
$concave
--> $maxconvexpieces 7
}
Don't forget to specify how many parts your collision model have. Make sure your physics model are separate parts, or else the mesh would merge as one for some weird reason.
Like this gaming chair physics, it's one, but has multiple separate vertices.
https://imgur.com/a/H8ZXsBV
https://www.dropbox.com/s/4eb6e6a2dkyeyco/cwhallsupport_phys.blend?dl=0
Also, heres a screenshot of my crowbar before I compile: https://imgur.com/a/GJjsuNO
I think it's something to do with the qc file and the parenting of the collision model. I set up the collision line like this:
$collisionmodel "cwhallsupport_phys.smd"
{
$mass 15
$inertia 1
$damping 0
$rotdamping 0
$rootbone "static_prop"
$concave
$maxconvexpieces 4
}
I don't know what else will fix it, but add that whole line to your qc file and it should work.