Making an animated prop, some part use frame 6 as idle frame

I have been trying to make an animated prop for a map. The prop is a tower that’s supposed to collapse.
Each part of the tower has it’s own bone skinned to it.

Screenshot from 3ds max at frame -1 (Which is the idle frame)

Screenshot from hammer with idle set as the animation

Every “block” of the tower is it’s own object in max and only those 4 blocks from the screenshot is having problems. The rest of the model is working like it should.
If compared, it would look like those 4 blocks use frame ~6 as their idle position.

The .qc file:



$modelname	"Dash	ower.mdl"
$scale		"1"
$body mybody	"tower_ref.smd"
$cdmaterials	"models\Dash"
$surfaceprop	"concrete"

$sequence idle		"tower_idle.smd" loop fps 15

$sequence collapse	"tower_collapse.smd" fps 30{
 { event AE_CL_PLAYSOUND 1 "TowerCollapse.concrete_break"}
 { event AE_CL_PLAYSOUND 40 "TowerCollapse.metal_groan" }
 { event AE_CL_PLAYSOUND 150 "TowerCollapse.boulder_hard"} 
 { event AE_CL_PLAYSOUND 205 "TowerCollapse.concrete_break"} 
 { event AE_CL_PLAYSOUND 250 "TowerCollapse.Bell" }
 { event AE_CL_PLAYSOUND 260 "TowerCollapse.rock1" }
 { event AE_CL_PLAYSOUND 265 "TowerCollapse.rock2" }
}

$collisionjoints tower_phys.smd {

	$mass 15000.0
	$inertia 1.00
	$damping 0.00
	$rotdamping 0.00
	$rootbone "bone1"
}

This is now working because I forgot a space between 30 & {, but I would still like some response to the first problem.



$sequence collapse	"tower_collapse.smd" fps 30 {
 { event AE_CL_PLAYSOUND 1 "TowerCollapse.concrete_break"} //This is line 10 with the error
 { event AE_CL_PLAYSOUND 40 "TowerCollapse.metal_groan" }
 { event AE_CL_PLAYSOUND 150 "TowerCollapse.boulder_hard"} 
 { event AE_CL_PLAYSOUND 205 "TowerCollapse.concrete_break"} 
 { event AE_CL_PLAYSOUND 250 "TowerCollapse.Bell" }
 { event AE_CL_PLAYSOUND 260 "TowerCollapse.rock1" }
 { event AE_CL_PLAYSOUND 265 "TowerCollapse.rock2" }
}

When I compile I get this error:
ERROR: d:\spil\steam\steamapps************\sourcesdk_content\hl2\modelsrc\dash ower.qc(10): - bad command {
ERROR: Aborted Processing on ‘Dash ower.mdl’

Try putting a space between 30 and {. The compiler tends to be an ass at times with these little details.

Year I did find that out. I’m not used to a syntax being so strict really.