Source Filmmaker

Source Filmmaker

WitchTaunter Oct 21, 2014 @ 3:17pm
Model .QC File Help
A certain model I am using disappears when viewed from a certain view or angle.
Looking through previous discussions I have learned that it is a problem with the hitboxes of the model and that it can be solved by "commenting out $hboxset" in the .QC file of the model.
I don't know where this file is, how to add to the file, or how to decompile/recompile (if I even have to) the file.
Can someone explain how to do this?

Info from this discussion
< >
Showing 1-7 of 7 comments
R234 Oct 21, 2014 @ 3:20pm 
You need to decompile a model to access its QC file. You can use Crowbar for that: http://steamcommunity.com/groups/CrowbarTool
WitchTaunter Oct 21, 2014 @ 4:17pm 
Okay, so I have decompiled the model, and am viewing the qc file with Notepad++. Do I just paste $hboxset at the bottom of the script? I have no knowledge of script format and how to edit them. The Valve wiki says very little and just give the example:
$hboxset "entryboxes"

$hbox 0 "Airboat.Hull" 25.00 10.00 -104.00 85.00 110.00 104.00 // top left
$hbox 1 "Airboat.Hull" -85.00 10.00 -104.00 -25.00 110.00 104.00 // top right
$hbox 2 "Airboat.Hull" -37.50 10.00 40.00 37.50 110.00 104.00 // top front
$hbox 3 "Airboat.Hull" 25.00 -40.00 -104.00 85.00 10.00 104.00 // bottom left
$hbox 4 "Airboat.Hull" -85.00 -40.00 -104.00 -25.00 10.00 104.00 // bottom right
$hbox 5 "Airboat.Hull" -37.50 -40.00 40.00 37.50 10.00 104.00 // bottom front
$hbox 6 "Airboat.Hull" -37.50 10.00 -132.00 37.50 110.00 -88.00 // top rear
$hbox 7 "Airboat.Hull" -37.50 -40.00 -132.00 37.50 10.00 -88.00 // bottom rear

I have no clue what im looking at.
R234 Oct 21, 2014 @ 4:24pm 
Commenting out means you need to remove anything related to hitboxes. If there's nothing about hboxes in the decompiled QC, just recompiling the model as is should work. Far as I know anyway. Gotta say I'm not an expert when it comes to models.
WitchTaunter Oct 21, 2014 @ 4:39pm 
Well, there was not anything relating hitboxes in the original QC. The model however still disappears on and off after recompiling. Thanks for your help, but I guess I'll just have to find a workaround.
R234 Oct 21, 2014 @ 4:44pm 
Hm, well maybe creating hitboxes large enough to encompass the object might be a better solution than removing them altogether if the model is really big.

What model are you working on anyway?
Last edited by R234; Oct 21, 2014 @ 4:45pm
WitchTaunter Oct 21, 2014 @ 4:50pm 
Bonemergable Pony Eyebrows[nutrafin.deviantart.com]

They only have the problem when they are stretched to certain expressions. So I am able to create a workaround without learning how to insert hitboxes (even though I probably should for the next time I run into this problem) by just using a different expression.
Pte Jack Oct 21, 2014 @ 5:06pm 
Take your model into HLMV, go to the Bones(??) tab where the Hitboxes are display, deselect Auto Hitboxes and the if no hitboxes appear, click add hitbox. Now select Generate QC to clipboard, goto to your qc and paste the hit box coord into the qc and recompile. Once that is done, bring your recompiked model into HLVM and view the hitboxes, make adjustments so that none of the model clips outside a box. (if required). Generate the new hitbox list and replace the ones you pasted before. Recompile the model.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Oct 21, 2014 @ 3:17pm
Posts: 7