From d4f197a35c207c9891d3f4dc5e9708af48c935de Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 9 Aug 2016 17:53:52 -0400 Subject: Added some weapons --- gamemode/shared/animations/swing_knife.lua | 208 +++++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 gamemode/shared/animations/swing_knife.lua (limited to 'gamemode/shared/animations/swing_knife.lua') diff --git a/gamemode/shared/animations/swing_knife.lua b/gamemode/shared/animations/swing_knife.lua new file mode 100644 index 0000000..7dc9520 --- /dev/null +++ b/gamemode/shared/animations/swing_knife.lua @@ -0,0 +1,208 @@ +RegisterLuaAnimation('knife_swing_up', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -119.0702, + RR = 35.7771, + RF = 21.6572 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + } + }, + FrameRate = 2 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -24.2641, + RR = -24.1204, + RF = -2.919 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 64.2667, + RR = 5.0335 + } + }, + FrameRate = 3 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) + +RegisterLuaAnimation('knife_swing_down', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = 74.1135, + RR = 12.868, + RF = -31.8524 + }, + ['ValveBiped.Bip01_R_Hand'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = -6.8706 + } + }, + FrameRate = 2 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -69.5085, + RR = -8.3118, + RF = -32 + }, + ['ValveBiped.Bip01_R_Hand'] = { + RU = -3.0004, + RR = -38.9819 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 76.5184, + RR = 3.7464, + RF = 58.2735 + } + }, + FrameRate = 3 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Hand'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) + +RegisterLuaAnimation('swing_hammer_left', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -85.901, + RR = -26.4874, + RF = -25.791 + }, + ['ValveBiped.Bip01_R_Hand'] = { + }, + ['ValveBiped.Bip01_L_Clavicle'] = { + RR = 87.4193 + }, + ['ValveBiped.Bip01_R_Clavicle'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 63.6936, + RR = -12.6269, + RF = -50.5597 + } + }, + FrameRate = 1 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -14.9409, + RR = 45.7766 + }, + ['ValveBiped.Bip01_R_Hand'] = { + RR = -24.354 + }, + ['ValveBiped.Bip01_R_Clavicle'] = { + RR = 10.3959, + RF = -5.5748 + }, + ['ValveBiped.Bip01_L_Clavicle'] = { + RR = -0.2696 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 99.5046, + RR = 8.5341, + RF = -60.8322 + } + }, + FrameRate = 3 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Hand'] = { + }, + ['ValveBiped.Bip01_L_Clavicle'] = { + }, + ['ValveBiped.Bip01_R_Clavicle'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) + +RegisterLuaAnimation('knife_swing_right', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -89.3623, + RR = -18.4313, + RF = 2.3038 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 23.57, + RR = 3.4175, + RF = -64.0124 + }, + ['ValveBiped.Bip01_L_Forearm'] = { + } + }, + FrameRate = 2 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = 4.0091, + RR = 53.1032, + RF = 1.0142 + }, + ['ValveBiped.Bip01_L_Forearm'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 66.3027, + RR = -0.9315 + } + }, + FrameRate = 3 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + }, + ['ValveBiped.Bip01_L_Forearm'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) -- cgit v1.2.3-70-g09d2