Tweaking the Decompiled QC Files
Modding a Left 4 Dead 2 Survivor
Tweaking the Decompiled QC Files
Due to quirks of the original survivor models in the game, some editing of the decompiled qc file is needed.
The L4D1 survivors are missing the attachment that shows the melee weapons on their backs. All but Bill and Rochelle are missing the attachment that shows the two-handed melee weapons correctly in their hands. Also, Francis and Louis have their ragdoll animation further in the list of animations instead of being the second animation, so some special setup is needed so that their animations play correctly in multiplayer games.
Bill
Fix missing melee on back
Insert this line in the qc file at end of existing $attachment lines:
$attachment "melee" "ValveBiped.Bip01_Spine4" 2.87 -5.56 5.47 rotate 24.08 175.37 97.14
Francis
Fix missing melee on back
Insert this line in the qc file at end of existing $attachment lines:
$attachment "melee" "ValveBiped.Bip01_Spine4" 2.87 -5.56 5.47 rotate 24.08 175.37 97.14
Fix two-handed melee carried between legs
Insert this line in the qc file at end of existing $attachment lines:
$attachment "L_weapon_bone" "ValveBiped.L_weapon_bone" 0.00 -0.00 0.00 rotate -0.00 0.00 -0.00
Fix animations for online use
Delete all $includemodel lines from the qc file, which usually has:
$includemodel "survivors/anim_Biker.mdl" $includemodel "survivors/gestures_biker.mdl"
Delete all $sequence and $animation lines from the qc file.
Insert these lines in the qc file in the order given (usually immediately above the $ikchain lines), changing the two sequence lines as indicated:
$sequence Biker "<change_to_idle_or_reference_smd_file_name>" fps 30.00 $declaresequence animHack $declaresequence Heal_Self_Standing_06 $declaresequence Idlenoise $declaresequence Idle_Standing_Align $declaresequence Idle_Standing_Rifle $declaresequence NamVet_AimMatrix_Rifle_Walking $declaresequence NamVet_AimMatrix_Rifle_CrouchWalking $declaresequence NamVet_AimMatrix_Rifle_Standing_Calm $declaresequence NamVet_AimMatrix_Rifle_Standing $declaresequence francis_AimMatrix_Rifle_Running $declaresequence Run_Rifle $declaresequence idle_axe_mdl $sequence ragdoll "<change_to_ragdoll_or_reference_smd_file_name>" ACT_DIERAGDOLL 1 fps 30.00 $includemodel "survivors/anim_Biker.mdl" $includemodel "survivors/gestures_biker.mdl"
Louis
Fix missing melee on back
Insert this line in the qc file at end of existing $attachment lines:
$attachment "melee" "ValveBiped.Bip01_Spine4" 2.64 -5.12 4.45 rotate 24.08 175.37 97.14
Fix two-handed melee carried between legs
Insert this line in the qc file at end of existing $attachment lines:
$attachment "L_weapon_bone" "ValveBiped.L_weapon_bone" 0.00 -0.00 0.00 rotate -0.00 0.00 -0.00 $attachment "weapon_bone" "ValveBiped.weapon_bone" 0.00 0.00 0.00 rotate 0.00 0.00 -0.00
Fix animations for online use
Delete all $includemodel lines from the qc file, which usually has:
$includemodel "survivors/anim_Biker.mdl" $includemodel "survivors/gestures_biker.mdl"
Delete all $sequence and $animation lines from the qc file.
Insert these lines in the qc file in the order given (usually immediately above the $ikchain lines), changing the two sequence lines as indicated:
$sequence Manager "<change_to_idle_or_reference_smd_file_name>" fps 30.00 $declaresequence Heal_Self_Standing_06 $declaresequence Idlenoise $declaresequence Idle_Standing_Align $declaresequence Idle_Standing_Rifle $declaresequence NamVet_AimMatrix_Rifle_Walking $declaresequence NamVet_AimMatrix_Rifle_Running $declaresequence NamVet_AimMatrix_Rifle_CrouchWalking $declaresequence NamVet_AimMatrix_Rifle_Standing_Calm $declaresequence NamVet_AimMatrix_Rifle_Standing $sequence ragdoll "<change_to_ragdoll_or_reference_smd_file_name>" ACT_DIERAGDOLL 1 fps 30.00 $includemodel "survivors/anim_biker.mdl" $includemodel "survivors/gestures_biker.mdl"
Zoey
Fix missing melee on back
Insert this line in the qc file at end of existing $attachment lines:
$attachment "melee" "ValveBiped.Bip01_Spine4" 2.64 -3.72 4.45 rotate 24 175 97
Fix two-handed melee carried between legs
Insert this line in the qc file at end of existing $attachment lines:
$attachment "L_weapon_bone" "ValveBiped.L_weapon_bone" 0.00 0.00 0.00 rotate 0 0 0
Coach
Fix two-handed melee carried between legs
Insert this line in the qc file at end of existing $attachment lines:
$attachment "L_weapon_bone" "ValveBiped.L_weapon_bone" 0.00 0.00 0.00 rotate 0 0 0
Ellis
Fix two-handed melee carried between legs
Insert this line in the qc file at end of existing $attachment lines:
$attachment "L_weapon_bone" "ValveBiped.L_weapon_bone" 0.00 0.00 0.00 rotate 0 0 0
Nick
Fix two-handed melee carried between legs
Insert this line in the qc file at end of existing $attachment lines:
$attachment "L_weapon_bone" "ValveBiped.L_weapon_bone" 0.00 0.00 0.00 rotate 0 0 0