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_axe.lua | 141 ++++++++++++++++++ gamemode/shared/animations/swing_fists.lua | 176 ++++++++++++++++++++++ gamemode/shared/animations/swing_hammer.lua | 221 ++++++++++++++++++++++++++++ gamemode/shared/animations/swing_knife.lua | 208 ++++++++++++++++++++++++++ 4 files changed, 746 insertions(+) create mode 100644 gamemode/shared/animations/swing_axe.lua create mode 100644 gamemode/shared/animations/swing_fists.lua create mode 100644 gamemode/shared/animations/swing_hammer.lua create mode 100644 gamemode/shared/animations/swing_knife.lua (limited to 'gamemode/shared/animations') diff --git a/gamemode/shared/animations/swing_axe.lua b/gamemode/shared/animations/swing_axe.lua new file mode 100644 index 0000000..60133b5 --- /dev/null +++ b/gamemode/shared/animations/swing_axe.lua @@ -0,0 +1,141 @@ +RegisterLuaAnimation('axe_swing_up', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -135.0759, + RR = 4.7695, + RF = 68.1705 + }, + ['ValveBiped.Bip01_R_Hand'] = { + RR = -7.0246, + RF = -41.0529 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = -24.6284 + } + }, + FrameRate = 1 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -134.3106, + RR = -111.2052, + RF = 58.2835 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 80 + }, + ['ValveBiped.Bip01_R_Hand'] = { + RU = -12.7583, + RR = -9.4569, + RF = 8.4272 + } + }, + FrameRate = 3 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Hand'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) + +RegisterLuaAnimation('axe_swing_left', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -16 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 62.502896241406, + RR = 19.915292262581, + RF = 58.999558486575 + } + }, + FrameRate = 1 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -71.048983114736, + RR = -118.30349058938, + RF = 12.994644385626 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 80.297417901061, + RR = -36.146186854911, + RF = -0.18188548377852 + } + }, + FrameRate = 3 + }, + { + BoneInfo = { + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) + +RegisterLuaAnimation('axe_swing_right', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -64, + RR = -118.23451384787 + }, + ['ValveBiped.Bip01_Spine4'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RR = -51.895180109443, + RF = 4.9449765561345 + }, + ['ValveBiped.Bip01_Spine2'] = { + RU = -18.770943776107 + }, + ['ValveBiped.Bip01_R_Hand'] = { + RF = -38.639462488655 + } + }, + FrameRate = 1 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RF = -80 + }, + ['ValveBiped.Bip01_Spine4'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 48, + RR = 16, + RF = -44.792066414109 + }, + ['ValveBiped.Bip01_Spine2'] = { + }, + ['ValveBiped.Bip01_R_Hand'] = { + } + }, + FrameRate = 3 + }, + { + BoneInfo = { + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) diff --git a/gamemode/shared/animations/swing_fists.lua b/gamemode/shared/animations/swing_fists.lua new file mode 100644 index 0000000..b0c77b5 --- /dev/null +++ b/gamemode/shared/animations/swing_fists.lua @@ -0,0 +1,176 @@ +RegisterLuaAnimation('fist_swing_up', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = 37.4518, + RR = -3.2972 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = -35.4314 + } + }, + FrameRate = 2 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -98.94, + RR = 10.3338 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 105.406 + } + }, + FrameRate = 4 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) + +RegisterLuaAnimation('fist_swing_down', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_Spine2'] = { + RU = 14.4867 + }, + ['ValveBiped.Bip01_Spine1'] = { + RU = 9.6677, + RR = -4.4861, + RF = -10.2001 + }, + ['ValveBiped.Bip01_R_Hand'] = { + RF = 96.0979 + }, + ['ValveBiped.Bip01_Spine4'] = { + RU = 21.4083 + }, + ['ValveBiped.Bip01_R_Clavicle'] = { + RR = 40.3211 + }, + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = 36.4967, + RR = 7.0185, + RF = 7.7787 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RR = 1.9723, + RF = -4.604 + } + }, + FrameRate = 2 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -102.8286, + RR = 40.5051, + RF = 38.9233 + }, + ['ValveBiped.Bip01_Spine1'] = { + }, + ['ValveBiped.Bip01_R_Hand'] = { + RF = 129.8577 + }, + ['ValveBiped.Bip01_Spine4'] = { + }, + ['ValveBiped.Bip01_R_Clavicle'] = { + }, + ['ValveBiped.Bip01_Spine2'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 80.2293, + RR = 0.4927 + } + }, + FrameRate = 4 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_Spine2'] = { + }, + ['ValveBiped.Bip01_Spine1'] = { + }, + ['ValveBiped.Bip01_R_Hand'] = { + }, + ['ValveBiped.Bip01_Spine4'] = { + }, + ['ValveBiped.Bip01_R_Clavicle'] = { + }, + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) + +RegisterLuaAnimation('fist_swing_left', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = 30.8726, + RR = 3.9566, + RF = 26.1338 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = -7.1148, + RR = 21.3712, + RF = 32 + } + }, + FrameRate = 2 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -0.7137, + RR = 44.1989, + RF = 1.6231 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 44.8816, + RR = 12.0781 + } + }, + FrameRate = 4 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -97.4486, + RR = 2.4404 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 108.0151, + RR = -23.9043 + } + }, + FrameRate = 4 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) diff --git a/gamemode/shared/animations/swing_hammer.lua b/gamemode/shared/animations/swing_hammer.lua new file mode 100644 index 0000000..efb8e34 --- /dev/null +++ b/gamemode/shared/animations/swing_hammer.lua @@ -0,0 +1,221 @@ +RegisterLuaAnimation('hammer_swing_up', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -121.3723, + RR = 39.4933, + RF = -31.0527 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 16, + RR = 31.0061, + RF = -19.6651 + }, + ['ValveBiped.Bip01_R_Hand'] = { + RU = -0.7222, + RR = -14.516 + }, + ['ValveBiped.Bip01_L_UpperArm'] = { + RR = -43.4468 + }, + ['ValveBiped.Bip01_L_Forearm'] = { + RU = 4.4867, + RR = -5.5554, + RF = 0.3176 + } + }, + FrameRate = 1 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -33, + RR = -33, + RF = -59 + }, + ['ValveBiped.Bip01_R_Hand'] = { + RR = -37 + }, + ['ValveBiped.Bip01_L_Forearm'] = { + }, + ['ValveBiped.Bip01_L_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 84, + RR = 10.0054, + RF = 35 + } + }, + FrameRate = 3 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Hand'] = { + }, + ['ValveBiped.Bip01_L_Forearm'] = { + }, + ['ValveBiped.Bip01_L_UpperArm'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) + +RegisterLuaAnimation('hammer_swing_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('hammer_swing_right', { + FrameData = { + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = 12.3003, + MF = 2.0589, + RR = -42.3116, + RF = 23.9329 + }, + ['ValveBiped.Bip01_L_Hand'] = { + }, + ['ValveBiped.Bip01_R_Clavicle'] = { + }, + ['ValveBiped.Bip01_L_Clavicle'] = { + }, + ['ValveBiped.Bip01_Spine'] = { + RF = -40.6827 + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 2.8485, + RR = 10.1856, + RF = 7.6391 + }, + ['ValveBiped.Bip01_R_Hand'] = { + } + }, + FrameRate = 1 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + RU = -83.615, + MF = 5.9653, + RR = -25.4493, + RF = 24.3507 + }, + ['ValveBiped.Bip01_L_Hand'] = { + RR = 1.5291 + }, + ['ValveBiped.Bip01_R_Clavicle'] = { + RR = 47.1609 + }, + ['ValveBiped.Bip01_L_Clavicle'] = { + RR = 40.5562, + RF = 5.5508 + }, + ['ValveBiped.Bip01_Spine'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + RU = 105.2417, + RR = -9.705, + RF = -16 + }, + ['ValveBiped.Bip01_R_Hand'] = { + RU = -17.7827, + RR = -39.3452, + RF = 12.2479 + } + }, + FrameRate = 3 + }, + { + BoneInfo = { + ['ValveBiped.Bip01_R_UpperArm'] = { + }, + ['ValveBiped.Bip01_L_Hand'] = { + }, + ['ValveBiped.Bip01_R_Clavicle'] = { + }, + ['ValveBiped.Bip01_L_Clavicle'] = { + }, + ['ValveBiped.Bip01_Spine'] = { + }, + ['ValveBiped.Bip01_R_Forearm'] = { + }, + ['ValveBiped.Bip01_R_Hand'] = { + } + }, + FrameRate = 1 + } + }, + Type = TYPE_GESTURE +}) 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