Why are my Garry's Mod Models Hitbox Messed up?
[video=youtube;tMjwuE9r26k]https://www.youtube.com/watch?v=tMjwuE9r26k&feature=youtu.be[/video]
Can someone show me or post/find a video on how to fix it?
Can you post your QC? Also, check the hitboxes in HLMV.
[QUOTE=code_gs;48903594]Can you post your QC? Also, check the hitboxes in HLMV.[/QUOTE]
How do I use Half Life Model Viewer?
Here is my QC:
[QUOTE]$modelname "desk/desk.mdl"
$cdmaterials "models/desk"
$scale 1.0
$surfaceprop "wood"
$body "Body" "desk.smd"
$sequence "idle" "desk.smd" fps 30
$collisionmodel "desk_collision.smd"
{
$mass 40
}[/QUOTE]
You didn't include $concave in the $collisionmodel block.
If your scale is already 1, you don't need to include $scale.
You didn't include $opaque.
Hitboxes != Physics mesh.
vcollide_wireframe 1 to see what they actually look like.
My best guess though is your hitboes just aren't built with concave.
[QUOTE=Lucky9Two;48904757]You didn't include $concave in the $collisionmodel block.
If your scale is already 1, you don't need to include $scale.
You didn't include $opaque.
Hitboxes != Physics mesh.[/QUOTE]
Can you write an example qc that I can use?
Im confused.
[code]
$opaque // Fixes dynamic shadows
$staticprop // useful for props
$modelname desk/desk // path to model
$model Body desk // Internal name - .smd name
$cdmaterials models/desk // materials FOLDER
$surfaceprop wood_panel // Physical property
$hboxset default
$contents solid
$sequence idle desk fps 1 // internal name - .smd name
$collisionmodel desk_collision // name of physics .smd
{
$concave // makes concave collisions
$mass 40 // mass of object in kilos
$inertia 1.00
$damping 0.00
$rotdamping 0.00
}
[/code]
Notice the lack of quotes. You don't need quotes unless you have a space in the file paths/name, which you should never do anyway because it doesn't play nice with certain OS functions.
[QUOTE=Lucky9Two;48913760][code]
$opaque // Fixes dynamic shadows
$staticprop // useful for props
$modelname desk/desk // path to model
$model Body desk // Internal name - .smd name
$cdmaterials models/desk // materials FOLDER
$surfaceprop wood_panel // Physical property
$hboxset default
$contents solid
$sequence idle desk fps 1 // internal name - .smd name
$collisionmodel desk_collision // name of physics .smd
{
$concave // makes concave collisions
$mass 40 // mass of object in kilos
$inertia 1.00
$damping 0.00
$rotdamping 0.00
}
[/code]
Notice the lack of quotes. You don't need quotes unless you have a space in the file paths/name, which you should never do anyway because it doesn't play nice with certain OS functions.[/QUOTE]
Thank's for the qc example.:dance: I will use this one from now on, after I test it
Sorry, you need to Log In to post a reply to this thread.