How do I correctly blend delta'd sequences in Source?

So long story short, I’ve been working on a tool that rips the assets and geometry of characters from ROBLOX, and automatically ports them into the Source engine.
I’m sure I’ve already lost half of you just because I mentioned ROBLOX, but regardless, I’m not really here to argue about it.

Everything is pretty much done with my program, but I’ve hit a brick wall with this one issue, and I was hoping I could possibly find a solution here.
Before I can explain what the problem is, I need to fill in a bit of background animation regarding how their animation system works

http://image.prntscr.com/image/35de30e07e1449829e2c2ceb2ea81901.png[/t][t]http://image.prntscr.com/image/33691c66c07342c7a1953cd9c1039639.png[/t][t]http://image.prntscr.com/image/a636f1a57e334e4ca1a47ed4e9e1561c.png[/t]

Animations on ROBLOX are designed to be applied across multiple different body sizes and variations, so bone motion is applied additively to the current rig to support all of these character variations.

With that said, I have to use delta animations to emulate these animations in Source correctly.
The problem I’m running into occurs when I’m trying to blend animations together. It seems that the animations are stacking on top of each other, instead of transitioning between sequences.

In addition to that, I can’t import these sequences into Source Filmmaker without running into this “stacking” issue.
[t]http://image.prntscr.com/image/c6ec7e14b0ce45b0b88af3e659743a3e.png

What exactly do I need to change in order to correctly work around this problem?

This is the QC script my program generates:



$body "CloneTrooper1019" "CharacterModel.smd"
$modelname RobloxAvatars/CloneTrooper1019.mdl
$upaxis y
$origin 0 -23.1 0
$cdmaterials models/RobloxAvatars/CloneTrooper1019
$surfaceprop flesh
$include CollisionJoints.qc
$sequence "reference" "ReferencePos.smd" {
	fps 1
	loop
}

$sequence "climb" "Animations/Climb.smd" {
	fps 60
	loop
	delta
}

$sequence "idle" "Animations/Idle.smd" {
	fps 60
	loop
	delta
}

$sequence "lookaround" "Animations/LookAround.smd" {
	fps 60
	loop
	delta
}

$sequence "sit" "Animations/Sit.smd" {
	fps 60
	loop
	delta
}

$sequence "walk" "Animations/Walk.smd" {
	fps 60
	loop
	delta
}

$sequence "dance" "Animations/Dance.smd" {
	fps 60
	loop
	delta
}

$sequence "test" "Animations/Test.smd" {
	fps 60
	loop
	delta
}

$sequence "swim" "Animations/Swim.smd" {
	fps 60
	loop
	delta
}


*If supplying the model files and stuff would be helpful, I can provide those too.

(You can also just generate the files using my program directly :stuck_out_tongue:
https://github.com/CloneTrooper1019/Rbx2Source2017)*