Lightsaber animations on custom player models

The title says it all. I’m just here asking if someone can explain to me how to add custom lightsaber animations onto custom player models or refer to a video/thread that explains it. Thanks!

Assuming you have already have your animations, you have to recompile your models and include the extra animations in your QC file.



$includemodel "m_anm.mdl" //Regular male animations (if your model is a male)
$includemodel "lightsaber_anm.mdl" //Lightsaber animations (if they are called that)


should i include the path to the lightsaber model?

No, that would be your $modelname path

For some reason there is an error when I try to recompile it

My magic 8ball says you should post the error.

ERROR: Missing file.

My first guess would be that the filename you entered doesn’t point to anything.

No it definitely points to the QC file. Do all of the files like .dx80 and .phy have to be present in the directory?

Post your directory structure and your full QC.


$modelname "KriegSyntax\SW_752\dooku_est.mdl"

$bodygroup "body"
{
	studio "dooku_est_dooku_body_2.smd"
}
$bodygroup "head"
{
	studio "dooku_est_dooku_head.smd"
}
$bodygroup "hands"
{
	studio "dooku_est_awoi_pri_hands.smd"
}
$bodygroup "cape"
{
	studio "dooku_est_dooku_cape.smd"
	blank
}


$cdmaterials "models\KriegSyntax\SW\dooku\"

$attachment "eyes" "ValveBiped.Bip01_Head1" 3.79 -3.78 0.01 rotate 0 -80.1 -90
$attachment "mouth" "ValveBiped.Bip01_Head1" 1 -5.7 0 rotate 0 -80 -90
$attachment "chest" "ValveBiped.Bip01_Spine2" 5 4 0 rotate 0 90 90
$attachment "anim_attachment_head" "ValveBiped.Bip01_Head1" 0 0 0 rotate -90 -90 0

$surfaceprop "flesh"

$contents "solid"

$eyeposition 0 0 70

$hboxset "default"
$hbox 1 "ValveBiped.Bip01_Head1" -1.25 -6.5 -3.19 8.25 3.5 3.31
$hbox 4 "ValveBiped.Bip01_L_UpperArm" 0 -2.75 -2.75 12.51 1.75 2.25
$hbox 4 "ValveBiped.Bip01_L_Forearm" 0 -2.19 -2.38 13 1.81 1.62
$hbox 4 "ValveBiped.Bip01_L_Hand" 0.06 -2 -1.5 4.06 1 2.5
$hbox 5 "ValveBiped.Bip01_R_UpperArm" 0 -3 -2.25 12.39 2 2.75
$hbox 5 "ValveBiped.Bip01_R_Forearm" -0.5 -2.2 -1.55 12.5 1.8 2.45
$hbox 5 "ValveBiped.Bip01_R_Hand" 0.06 -2 -2.5 4.06 1 1.5
$hbox 6 "ValveBiped.Bip01_L_Thigh" 0 -3.75 -3.25 17.85 3.75 3.25
$hbox 6 "ValveBiped.Bip01_L_Calf" 0 -3.51 -3.28 15.64 3.49 2.72
$hbox 6 "ValveBiped.Bip01_L_Foot" -1.07 -2 -2.84 5.04 5 2.16
$hbox 6 "ValveBiped.Bip01_L_Toe0" -0.5 -3 -2.19 2.5 0 2.46
$hbox 7 "ValveBiped.Bip01_R_Thigh" 0 -3.75 -3.25 17.85 3.75 3.25
$hbox 7 "ValveBiped.Bip01_R_Calf" 0 -3.51 -2.82 15.64 3.49 3.18
$hbox 7 "ValveBiped.Bip01_R_Foot" -1.06 -2.01 -2.28 5.05 4.99 2.72
$hbox 7 "ValveBiped.Bip01_R_Toe0" -0.5 -3 -2.6 2.5 0 2.1
$hbox 3 "ValveBiped.Bip01_Pelvis" -7.5 -5.5 -6 7.5 8.5 5
$hbox 2 "ValveBiped.Bip01_Spine2" -2.5 -2.5 -7 14.5 7.5 7
$skipboneinbbox




$sequence "ragdoll" "dooku_est_anims\ragdoll.smd" {
	fps 30
	"ACT_DIERAGDOLL" 1
}

$includemodel "m_anm.mdl"
$includemodel "bastila.mdl"
$includemodel "darkjedi.mdl"
$includemodel "casualjedi_01.mdl"
$includemodel "casualjedi_02.mdl"
$includemodel "casualjedi_03.mdl"
$includemodel "casualjedi_04.mdl"
$includemodel "casualjedi_05.mdl"
$includemodel "casualjedi_06.mdl"
$includemodel "casualjedi_07.mdl"
$includemodel "casualjedi_08.mdl"
$includemodel "casualjedi_09.mdl"
$includemodel "jedirobes_01.mdl"
$includemodel "jedirobes_02.mdl"
$includemodel "jedirobes_03.mdl"
$includemodel "jedirobes_04.mdl"
$includemodel "jedirobes_05.mdl"
$includemodel "jedirobes_06.mdl"
$includemodel "jedirobes_07.mdl"
$includemodel "jedirobes_08.mdl"
$includemodel "jedirobes_09.mdl"
$includemodel "padawan_01.mdl"
$includemodel "padawan_02.mdl"
$includemodel "padawan_03.mdl"
$includemodel "padawan_04.mdl"
$includemodel "padawan_05.mdl"
$includemodel "padawan_06.mdl"
$includemodel "padawan_07.mdl"
$includemodel "padawan_08.mdl"
$includemodel "padawan_09.mdl"
$includemodel "jedibattlelord_01.mdl"
$includemodel "jedibattlelord_02.mdl"
$includemodel "jedibattlelord_03.mdl"
$includemodel "jedibattlelord_04.mdl"
$includemodel "jedibattlelord_05.mdl"
$includemodel "jedibattlelord_06.mdl"
$includemodel "jedibattlelord.mdl"
$includemodel "jedibattlelord_08.mdl"
$includemodel "jedibattlelord_09.mdl"
$includemodel "satale.mdl"
$includemodel "vaylin.mdl"
$includemodel "darthnihilus.mdl"
$includemodel "mkotor_01.mdl"
$includemodel "mkotor_02.mdl"
$includemodel "mkotor_03.mdl"
$includemodel "mkotor_04.mdl"
$includemodel "mkotor_05.mdl"
$includemodel "mkotor_06.mdl"
$includemodel "mkotor_07.mdl"
$includemodel "mkotor_08.mdl"
$includemodel "mkotor_09.mdl"

$ikchain "rhand" "ValveBiped.Bip01_R_Hand" knee 0.707 0.707 0
$ikchain "lhand" "ValveBiped.Bip01_L_Hand" knee 0.707 0.707 0
$ikchain "rfoot" "ValveBiped.Bip01_R_Foot" knee 0.707 -0.707 0
$ikchain "lfoot" "ValveBiped.Bip01_L_Foot" knee 0.707 -0.707 0
// The PHY file's checksum value is not the same as the MDL file's checksum value.

$collisiontext
{
	animatedfriction 
	{
		"animfrictionmin" "1.000000"
		"animfrictionmax" "1000.000000"
		"animfrictiontimein" "0.800000"
		"animfrictiontimeout" "0.000000"
		"animfrictiontimehold" "0.500000"
	}
	editparams 
	{
		"rootname" "valvebiped.bip01_pelvis"
		"totalmass" "90.000000"
		"jointmerge" "ValveBiped.Bip01_Pelvis,ValveBiped.Bip01_Spine1"
	}
}



I don’t know how to post directory structure