2021-10-03 21:28:20 -05:00
|
|
|
// ================================================================
|
|
|
|
//
|
|
|
|
// 357 Animations for Soldiers
|
|
|
|
//
|
|
|
|
// ================================================================
|
|
|
|
|
2021-11-01 07:58:07 -05:00
|
|
|
$definemacro 357ReloadSounds \\
|
|
|
|
{ event AE_CL_PLAYSOUND 10 "Weapon_357.OpenLoader" } \\
|
|
|
|
{ event AE_CL_PLAYSOUND 17 "Weapon_357.RemoveLoader" } \\
|
|
|
|
{ event AE_CL_PLAYSOUND 37 "Weapon_357.ReplaceLoader" } \\
|
|
|
|
{ event AE_CL_PLAYSOUND 47 "Weapon_357.Spin" } \\ // TODO: Not really a spin
|
|
|
|
|
2021-10-03 21:28:20 -05:00
|
|
|
$weightlist "weights_357_shoot" {
|
|
|
|
"ValveBiped.Bip01_Pelvis" 3
|
|
|
|
"ValveBiped.Bip01_R_Clavicle" 3
|
|
|
|
"ValveBiped.Bip01_R_UpperArm" 1.6
|
|
|
|
"ValveBiped.Bip01_R_Forearm" 3
|
|
|
|
"ValveBiped.Bip01_R_Hand" 3
|
|
|
|
"ValveBiped.Bip01_L_Clavicle" 3
|
|
|
|
"ValveBiped.Bip01_L_UpperArm" 2
|
|
|
|
"ValveBiped.Bip01_L_Forearm" 5
|
|
|
|
"ValveBiped.Bip01_L_Hand" 5
|
2021-10-21 23:26:21 -05:00
|
|
|
"ValveBiped.Cod" 0
|
2021-10-03 21:28:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
$sequence "gesture_shoot_357_layer" {
|
2021-10-21 23:26:21 -05:00
|
|
|
"combine_soldier_anims_anims\custom\shootp1.smd"
|
|
|
|
subtract "shootp1" 4
|
2021-10-03 21:28:20 -05:00
|
|
|
activity "ACT_GESTURE_RANGE_ATTACK_REVOLVER" 1
|
|
|
|
frame 0 0
|
|
|
|
delta
|
|
|
|
// Crowbar writes this subtract option to prevent jigglebone and poseparameter problems when delta sequences are recompiled.
|
|
|
|
subtract "@gesture_shoot_pistol_corrective_animation" 0
|
|
|
|
weightlist "weights_357_shoot"
|
|
|
|
hidden
|
|
|
|
}
|
|
|
|
|
|
|
|
$sequence "gesture_shoot_357" {
|
2021-10-21 23:26:21 -05:00
|
|
|
"combine_soldier_anims_anims\custom\shootp1.smd"
|
2021-10-03 21:28:20 -05:00
|
|
|
noanimation
|
|
|
|
blendlayer "gesture_shoot_357_layer" 0 4 6 16 spline
|
|
|
|
numframes 16
|
|
|
|
|
|
|
|
activity "ACT_GESTURE_RANGE_ATTACK_REVOLVER" 1
|
|
|
|
{ event 3014 1 "" }
|
|
|
|
}
|
|
|
|
|
|
|
|
$sequence "shootp2" {
|
2021-10-21 23:26:21 -05:00
|
|
|
$Blend_SMD_Pistol$
|
2021-10-03 21:28:20 -05:00
|
|
|
activity "ACT_RANGE_ATTACK_REVOLVER" 1
|
|
|
|
numframes 16
|
|
|
|
{ event 3014 1 "" }
|
|
|
|
addlayer "Aim_stand_delta_all"
|
|
|
|
blendlayer "gesture_shoot_357" 0 0 0 0 local
|
2021-11-01 07:58:07 -05:00
|
|
|
cmdlist lockfeet
|
2021-10-03 21:28:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
$sequence "shootp2c" {
|
2021-10-21 23:26:21 -05:00
|
|
|
$Blend_SMD_Pistol_Crouched$
|
2021-10-03 21:28:20 -05:00
|
|
|
numframes 16
|
|
|
|
addlayer "gesture_shoot_357" //blendlayer "layer_shootp1" 0 2 4 4
|
|
|
|
addlayer "Aim_stand_delta_all" //addlayer "Aim_crouch_delta_all"
|
|
|
|
activity "ACT_RANGE_ATTACK_REVOLVER_LOW" 1
|
|
|
|
{ event 3014 1 "" }
|
2021-11-01 07:58:07 -05:00
|
|
|
cmdlist lockfeet
|
|
|
|
}
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------
|
|
|
|
|
|
|
|
//$makeaimlayer soldier_Aim_9_directions "hl2mp_ported_anims\Aim_9_directions"
|
|
|
|
|
|
|
|
$makeweapongesturep "gesture_reload_357" "police_animations_anims\custom\reload_357.smd" 15 51 62
|
|
|
|
|
|
|
|
$append "gesture_reload_357" {
|
|
|
|
$357ReloadSounds
|
|
|
|
activity "ACT_GESTURE_RELOAD_REVOLVER" 1
|
|
|
|
{ event 3017 0 "" }
|
|
|
|
{ event 3018 41 "" }
|
|
|
|
}
|
|
|
|
|
|
|
|
$GenericReloadFromIdle "reload_357" $Blend_SMD_Pistol$ "ACT_RELOAD_REVOLVER" "Aim_stand_delta_all" "gesture_reload_357" 15 51 62 41
|
|
|
|
|
|
|
|
$append "reload_357" {
|
|
|
|
$357ReloadSounds
|
|
|
|
fps 30
|
|
|
|
}
|
|
|
|
|
|
|
|
$GenericReloadFromIdle "reload_357_low" $Blend_SMD_Pistol_Crouched$ "ACT_RELOAD_REVOLVER_LOW" "Aim_crouch_delta_all" "gesture_reload_357" 15 51 62 41
|
|
|
|
|
|
|
|
$append "reload_357" {
|
|
|
|
$357ReloadSounds
|
|
|
|
fps 30
|
2021-10-03 21:28:20 -05:00
|
|
|
}
|