-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
armature_creation.py
177 lines (153 loc) · 126 KB
/
armature_creation.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
import bpy
def armature(type):
satproperties = bpy.context.scene.satproperties
satinfo = bpy.context.scene.satinfo
#Half Life 2/Garry's Mod armature
if satproperties.game_armature == 'HL2':
#Playermodel
if satproperties.game_armature_type == 'PM':
name = 'gmod_armature'
bone_name = ["ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.L_weapon_bone", "ValveBiped.weapon_bone_Clip2", "ValveBiped.weapon_bone_Clip2_Bullets", "ValveBiped.weapon_bolt_l", "ValveBiped.Anim_Attachment_LH", "ValveBiped.attachment_armL_T", "ValveBiped.Bip01_L_Ulna", "ValveBiped.Bip01_L_Wrist", "ValveBiped.Bip01_L_Elbow", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone_Clip_Bullets", "ValveBiped.weapon_bone_extra", "ValveBiped.weapon_bolt", "ValveBiped.weapon_bolt_opposite", "ValveBiped.weapon_charger", "ValveBiped.Anim_Attachment_RH", "ValveBiped.attachment_armR_T", "ValveBiped.Bip01_R_Wrist", "ValveBiped.Bip01_R_Ulna", "ValveBiped.Bip01_R_Elbow", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.forward", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Knee", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Toe0", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Knee", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Toe0"]
bone_head_location = [(-0.0000, -0.5332, 38.5625), (0.0000, 2.4487, 41.9076), (0.0000, 2.7951, 45.9110), (0.0000, 3.2007, 49.4061), (0.0001, 3.3366, 58.3477), (1.4998, 0.9999, 59.0476), (6.4440, 2.7385, 57.3574), (14.0980, 1.9613, 49.6271), (21.3087, -0.0788, 42.3825), (23.4400, 0.2504, 39.8105), (24.0750, 0.1973, 38.1196), (23.9067, 0.0973, 37.1736), (23.6443, -0.7215, 39.7246), (24.4797, -0.8474, 37.7471), (24.1784, -0.9596, 36.6402), (22.9855, 1.1400, 39.7620), (23.5965, 1.1722, 38.3813), (23.4491, 1.2082, 37.5871), (21.0819, -1.3832, 40.9654), (21.4577, -2.5892, 39.6329), (21.4664, -3.2414, 38.5974), (23.6249, -1.7702, 39.6654), (24.3762, -1.9089, 38.1458), (24.1627, -1.9145, 37.1744), (22.4436, -1.3784, 38.9250), (22.2616, 1.5363, 38.9333), (22.8964, -2.8599, 39.7503), (21.3087, -0.0788, 42.3825), (22.4283, -0.1564, 38.9124), (14.0979, 1.9613, 49.6271), (17.9745, 0.8646, 45.7324), (21.8510, -0.2322, 41.8377), (14.2493, 1.9460, 49.4743), (-1.4998, 0.9999, 59.0476), (-6.4440, 2.7385, 57.3574), (-14.0615, 1.9603, 49.5913), (-21.2376, -0.0808, 42.3127), (-21.0039, -1.3849, 40.8965), (-21.3731, -2.5908, 39.5620), (-21.3767, -3.2428, 38.5264), (-23.5406, -1.7724, 39.5844), (-24.2847, -1.9099, 38.0613), (-24.0667, -1.9146, 37.0909), (-23.5605, -0.7238, 39.6438), (-24.3868, -0.8475, 37.6623), (-24.0804, -0.9587, 36.5568), (-23.3570, 0.2482, 39.7308), (-23.9843, 0.1971, 38.0370), (-23.8118, 0.0981, 37.0917), (-22.9026, 1.1380, 39.6846), (-23.5076, 1.1715, 38.3013), (-23.3568, 1.2082, 37.5078), (-21.9325, -1.6268, 39.1981), (-28.3455, -1.6964, 30.9223), (-28.2858, -2.7410, 30.8847), (-27.9027, -2.3857, 31.3852), (-21.9325, -1.6268, 39.1981), (-21.9325, -1.6268, 39.1981), (-21.9325, -1.6268, 39.1981), (-22.4286, -0.1706, 38.9121), (-14.0615, 1.9603, 49.5913), (-21.7773, -0.2343, 41.7653), (-17.9194, 0.8630, 45.6783), (-14.2121, 1.9449, 49.4378), (0.0001, 2.7481, 61.6022), (0.0001, 0.7806, 64.6094), (0.0001, -2.5186, 66.0639), (-3.8905, -0.5332, 38.5625), (-3.9900, 0.2805, 20.7336), (-3.9836, 0.3917, 20.7386), (-4.0697, 1.8115, 4.2746), (-4.3700, -3.9185, 0.4794), (3.8904, -0.5332, 38.5625), (3.9900, 0.2806, 20.7336), (3.9835, 0.3915, 20.7385), (4.0694, 1.8115, 4.2746), (4.3697, -3.9185, 0.4794)]
bone_tail_location = [(-0.0000, -0.5332, 38.7727), (0.0000, 2.2393, 41.9257), (0.0000, 2.5862, 45.9352), (0.0000, 2.9905, 49.4093), (0.0001, 3.1297, 58.3103), (1.5710, 0.9894, 59.2451), (6.4515, 2.9481, 57.3437), (14.1239, 2.1675, 49.5949), (21.4723, -0.0351, 42.5070), (23.6367, 0.2463, 39.8845), (24.2819, 0.2015, 38.0824), (24.0987, 0.0956, 37.0881), (23.8379, -0.7224, 39.8064), (24.6825, -0.8468, 37.6918), (24.3702, -0.9627, 36.5542), (23.1778, 1.1362, 39.8470), (23.8032, 1.1691, 38.3428), (23.6340, 1.2194, 37.4876), (21.0909, -1.5377, 41.1078), (21.4744, -2.7665, 39.7447), (21.4825, -3.3934, 38.7418), (23.8134, -1.7682, 39.7584), (24.5806, -1.9289, 38.1010), (24.3655, -1.9347, 37.1228), (22.5035, -1.5759, 38.8850), (22.2849, 1.3307, 38.9702), (22.9197, -3.0656, 39.7872), (21.4723, -0.0351, 42.5070), (22.4321, -0.3665, 38.9071), (14.2616, 2.0050, 49.7517), (17.9813, 1.0685, 45.6818), (21.8409, -0.0329, 41.7714), (14.2804, 2.1505, 49.4368), (-1.5753, 0.9745, 59.2421), (-6.4515, 2.9482, 57.3437), (-14.0873, 2.1664, 49.5590), (-21.4019, -0.0379, 42.4366), (-21.0134, -1.5394, 41.0387), (-21.3902, -2.7681, 39.6737), (-21.3934, -3.3949, 38.6706), (-23.7295, -1.7705, 39.6766), (-24.4890, -1.9298, 38.0155), (-24.2692, -1.9348, 37.0383), (-23.7545, -0.7247, 39.7247), (-24.5894, -0.8469, 37.6061), (-24.2718, -0.9616, 36.4698), (-23.5541, 0.2440, 39.8039), (-24.1910, 0.2014, 37.9988), (-24.0034, 0.0966, 37.0052), (-23.0952, 1.1341, 39.7687), (-23.7141, 1.1686, 38.2619), (-23.5412, 1.2196, 37.4075), (-21.9205, -1.8366, 39.1906), (-28.3335, -1.9062, 30.9147), (-28.2738, -2.9508, 30.8772), (-27.8908, -2.5955, 31.3776), (-21.9205, -1.8366, 39.1906), (-21.9205, -1.8366, 39.1906), (-21.9205, -1.8366, 39.1906), (-22.4336, -0.3807, 38.9081), (-13.9329, 1.9957, 49.4288), (-21.7663, -0.0352, 41.6986), (-17.9258, 1.0669, 45.6274), (-14.2431, 2.1494, 49.4002), (0.0001, 2.9241, 61.7173), (0.0001, 0.9877, 64.6456), (0.2103, -2.5186, 66.0639), (-3.8904, -0.3232, 38.5734), (-3.9709, 0.4893, 20.7499), (-3.9835, 0.6011, 20.7566), (-4.0625, 1.9273, 4.0993), (-4.3861, -3.9176, 0.2698), (3.8904, -0.3233, 38.5734), (3.9709, 0.4893, 20.7499), (3.9834, 0.6010, 20.7566), (4.0645, 1.9274, 4.0993), (4.3691, -3.9185, 0.2691)]
bone_roll = [1.3521159018814455e-11, 1.5707228183746338, 1.5707423686981201, 1.5703659057617188, 1.5708340406417847, 0.6675920486450195, 0.7910881638526917, 0.7898023128509521, 0.8438410758972168, 1.1816052198410034, 1.6452116966247559, 1.894338607788086, 1.1122738122940063, 1.7393076419830322, 1.9077714681625366, 1.1758921146392822, 1.7994152307510376, 1.9357032775878906, -1.2559428215026855, -1.2903132438659668, -1.397634744644165, 1.030697226524353, 1.781044840812683, 1.8560583591461182, -1.3409075736999512, 1.8004214763641357, 1.8005125522613525, 0.8438414931297302, -0.44265487790107727, 0.8438401222229004, 0.802308201789856, 0.8135045766830444, 0.7894315719604492, 2.4480478763580322, 2.345815420150757, 2.3470804691314697, 2.293328285217285, -1.889556884765625, -1.8550605773925781, -1.7479442358016968, 2.1054370403289795, 1.3549996614456177, 1.279977798461914, 2.0237057209014893, 1.3967417478561401, 1.2283507585525513, 1.9543204307556152, 1.4908223152160645, 1.2418102025985718, 1.9604257345199585, 1.3369425535202026, 1.2008585929870605, -2.679464101791382, -2.679675340652466, -2.679823875427246, -2.6796858310699463, -2.67948317527771, -2.67948317527771, -2.67948317527771, 0.9763029217720032, 2.4013173580169678, 2.322941541671753, 2.334338426589966, 2.3474440574645996, -1.5707931518554688, -1.5707931518554688, -0.07155813276767731, 1.5760239362716675, 1.6234363317489624, 1.5760239362716675, 1.5960783958435059, 1.6997761726379395, 1.5655769109725952, 1.5181574821472168, 1.5655770301818848, 1.5397801399230957, 1.521276593208313]
bone_parent = [None, "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.weapon_bone_Clip2", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot"]
#Viewmodel
elif satproperties.game_armature_type == 'VM':
name = 'v_gmod_armature'
bone_name = ["ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.Bip01_L_Ulna", "ValveBiped.Bip01_L_Wrist", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.Bip01_R_Ulna", "ValveBiped.Bip01_R_Wrist"]
bone_head_location = [(0.0000, 0.0000, 0.0000), (1.9377, -1.3466, 1.8228), (7.7239, -1.3800, 0.1324), (15.2645, -0.8307, -8.7868), (22.6765, -0.9842, -17.5542), (25.3466, 0.3263, -20.2913), (25.2497, 0.5553, -21.5801), (24.9256, 0.5270, -22.2329), (25.5509, -0.4324, -20.2307), (25.5445, -0.2812, -21.7624), (25.2505, -0.2167, -22.9202), (25.4597, -1.2962, -20.2797), (25.8346, -1.2094, -21.9556), (25.6591, -1.1140, -23.1482), (25.3959, -2.1970, -20.3519), (25.8660, -2.2201, -22.0057), (25.7955, -2.0981, -23.0963), (23.0423, -2.2781, -18.3963), (23.0898, -3.3662, -19.8165), (23.2137, -3.8753, -20.9039), (18.9705, -0.9074, -13.1705), (22.6766, -0.9842, -17.5542), (-1.9376, -1.3466, 1.8228), (-7.7238, -1.3800, 0.1325), (-15.2644, -0.8307, -8.7868), (-22.6766, -0.9843, -17.5541), (-25.3467, 0.3261, -20.2912), (-25.2504, 0.5554, -21.5800), (-24.9272, 0.5263, -22.2332), (-25.5509, -0.4326, -20.2306), (-25.5451, -0.2814, -21.7623), (-25.2517, -0.2180, -22.9203), (-25.4597, -1.2963, -20.2796), (-25.8346, -1.2096, -21.9555), (-25.6591, -1.1142, -23.1481), (-25.3959, -2.1971, -20.3518), (-25.8661, -2.2203, -22.0056), (-25.7955, -2.0983, -23.0962), (-23.0423, -2.2783, -18.3962), (-23.0897, -3.3668, -19.8161), (-23.2119, -3.8757, -20.9037), (-18.9705, -0.9075, -13.1704), (-22.6766, -0.9843, -17.5541)]
bone_tail_location = [(0.0000, -0.1331, -0.0241), (1.9756, -1.3476, 1.9526), (7.7198, -1.2449, 0.1373), (15.2656, -0.6954, -8.7882), (22.7699, -0.9850, -17.4564), (25.4665, 0.3887, -20.2892), (25.3539, 0.6219, -21.6347), (25.0122, 0.5903, -22.3151), (25.6842, -0.4096, -20.2290), (25.6736, -0.2559, -21.7937), (25.3539, -0.1906, -23.0033), (25.5914, -1.3061, -20.2507), (25.9681, -1.2162, -21.9758), (25.7853, -1.1184, -23.1966), (25.5182, -2.2425, -20.3165), (25.9935, -2.2634, -22.0187), (25.9170, -2.1365, -23.1414), (23.0882, -2.1764, -18.4727), (23.1336, -3.2485, -19.8666), (23.2498, -3.7450, -20.9075), (18.9717, -0.7722, -13.1718), (22.6779, -0.8490, -17.5555), (-1.9753, -1.3573, 1.9522), (-7.7197, -1.2449, 0.1373), (-15.2656, -0.6955, -8.7882), (-22.7700, -0.9840, -17.4563), (-25.4664, 0.3890, -20.2889), (-25.3545, 0.6223, -21.6345), (-25.0137, 0.5900, -22.3153), (-25.6841, -0.4093, -20.2288), (-25.6741, -0.2555, -21.7935), (-25.3551, -0.1915, -23.0034), (-25.5914, -1.3053, -20.2506), (-25.9682, -1.2156, -21.9757), (-25.7854, -1.1177, -23.1964), (-25.5185, -2.2418, -20.3163), (-25.9938, -2.2627, -22.0186), (-25.9173, -2.1358, -23.1412), (-23.0874, -2.1764, -18.4728), (-23.1328, -3.2489, -19.8664), (-23.2473, -3.7452, -20.9075), (-18.9717, -0.7723, -13.1718), (-22.6777, -0.8491, -17.5555)]
bone_roll = [1.570789098739624, 0.27865639328956604, 0.8689659237861633, 0.8689661026000977, 0.7931256294250488, 1.7514795064926147, 2.008946418762207, 2.152207374572754, 1.6579099893569946, 1.8640629053115845, 2.2181801795959473, 1.4050263166427612, 1.7999887466430664, 2.02787709236145, 1.2746918201446533, 1.7904471158981323, 2.123056173324585, 1.4261202812194824, 1.3941131830215454, 1.346258521080017, 0.8689613938331604, 0.86895751953125, 2.8633575439453125, 2.2726306915283203, 2.2726306915283203, 2.348727226257324, 1.3909544944763184, 1.1344910860061646, 0.9917606115341187, 1.4843522310256958, 1.2790366411209106, 0.9262252449989319, 1.7369434833526611, 1.3421392440795898, 1.114304542541504, 1.866764783859253, 1.3522369861602783, 1.0202268362045288, 1.7133042812347412, 1.7446987628936768, 1.791640281677246, 2.272630214691162, 2.272629737854004]
bone_parent = [None, "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm"]
#Left 4 Dead 2
elif satproperties.game_armature == 'L4D2':
#Playermodel
if satproperties.game_armature_type == 'PM':
#Bill
if satproperties.game_armature_l4d2 == 'BILL':
name = 'bill_armature'
bone_name = ["ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Toe0", "ValveBiped.attachment_bandage_legL", "ValveBiped.Bip01_L_Knee", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Toe0", "ValveBiped.Bip01_R_Knee", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.forward", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.L_weapon_bone", "ValveBiped.weapon_bone_Clip2", "ValveBiped.weapon_bone_Clip2_Bullets", "ValveBiped.weapon_bolt_l", "ValveBiped.attachment_bandage_armL", "ValveBiped.attachment_armL_T", "ValveBiped.Bip01_L_Ulna", "ValveBiped.Bip01_L_Wrist", "ValveBiped.Bip01_L_Elbow", "ValveBiped.Bip01_L_Bicep", "ValveBiped.Bip01_L_Trapezius", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone_Clip_Bullets", "ValveBiped.weapon_bone_extra", "ValveBiped.weapon_bolt", "ValveBiped.weapon_bolt_opposite", "ValveBiped.weapon_charger", "ValveBiped.attachment_armR_T", "ValveBiped.Bip01_R_Wrist", "ValveBiped.Bip01_R_Ulna", "ValveBiped.Bip01_R_Bicep", "ValveBiped.Bip01_R_Elbow", "ValveBiped.Bip01_R_Trapezius"]
bone_head_location = [(0.0000, 0.5168, 38.3177), (3.6257, 0.5168, 38.3177), (4.6337, 0.9446, 20.0046), (5.4948, 1.9165, 3.3035), (6.5668, -3.6248, 1.4408), (4.6337, 0.9446, 20.0046), (4.6332, 0.9445, 20.0134), (-3.6257, 0.5168, 38.3177), (-4.6336, 0.9446, 20.0046), (-5.4947, 1.9165, 3.3035), (-6.5668, -3.6248, 1.4408), (-4.6332, 0.9445, 20.0134), (0.0000, 0.5347, 42.3617), (0.0000, 0.8667, 46.3437), (0.0000, 1.8002, 49.9222), (0.0000, 3.3262, 55.4150), (0.0000, 2.1362, 60.6339), (0.0000, 0.0965, 64.6022), (-0.0000, -2.9252, 66.5692), (1.5000, 1.0000, 59.0543), (6.4447, 2.7388, 57.3640), (11.6707, 1.9304, 47.8242), (16.5792, -0.1395, 38.8638), (17.4968, 1.0837, 35.8925), (17.7064, 1.1228, 34.3973), (17.3476, 1.1709, 33.6742), (17.9300, 0.1861, 35.8080), (18.0760, 0.1433, 34.0072), (17.6529, 0.0577, 33.1429), (18.0841, -0.7880, 35.6622), (18.3429, -0.9034, 33.5303), (17.7476, -0.9970, 32.5477), (18.0290, -1.8355, 35.6030), (18.3323, -1.9680, 33.9344), (17.8605, -1.9581, 33.0588), (15.9476, -1.4226, 37.5537), (16.4885, -2.1989, 35.9799), (16.6334, -2.5135, 34.8060), (16.1074, 0.3119, 35.5406), (16.5809, 1.4282, 35.4575), (17.2970, -2.7894, 36.0110), (16.5792, -0.1395, 38.8638), (11.6706, 1.9304, 47.8242), (11.6706, 1.9304, 47.8242), (14.3095, 0.8176, 43.0071), (16.9484, -0.2952, 38.1900), (11.7740, 1.9145, 47.6356), (8.6452, 1.6287, 52.3064), (5.3353, 2.3486, 57.7431), (-1.5000, 1.0000, 59.0543), (-6.4447, 2.7388, 57.3640), (-11.6707, 1.9304, 47.8242), (-16.5792, -0.1395, 38.8638), (-17.4968, 1.0837, 35.8925), (-17.7069, 1.1241, 34.3974), (-17.3484, 1.1728, 33.6742), (-17.9300, 0.1861, 35.8080), (-18.0763, 0.1453, 34.0072), (-17.6534, 0.0605, 33.1427), (-18.0841, -0.7880, 35.6623), (-18.3431, -0.9013, 33.5303), (-17.7479, -0.9942, 32.5475), (-18.0290, -1.8355, 35.6030), (-18.3323, -1.9668, 33.9344), (-17.8606, -1.9563, 33.0587), (-15.9476, -1.4226, 37.5537), (-16.4885, -2.1989, 35.9799), (-16.6334, -2.5135, 34.8060), (-16.3883, -1.5908, 35.8098), (-20.1529, -1.6616, 26.5458), (-20.0695, -2.6578, 26.5195), (-19.8525, -2.3183, 27.0808), (-16.3883, -1.5908, 35.8098), (-16.3883, -1.5908, 35.8098), (-16.3883, -1.5908, 35.8098), (-11.6707, 1.9304, 47.8242), (-16.9484, -0.2953, 38.1900), (-14.3095, 0.8176, 43.0071), (-8.6452, 1.6286, 52.3064), (-11.7740, 1.9144, 47.6356), (-5.3353, 2.3487, 57.7432)]
bone_tail_location = [(0.0000, 0.5168, 38.5044), (3.6069, 0.7025, 38.3210), (4.6146, 1.1300, 20.0144), (5.4847, 1.9742, 3.1262), (6.5722, -3.6270, 1.2542), (4.6236, 1.0022, 19.8273), (4.6140, 1.1299, 20.0246), (-3.6069, 0.7025, 38.3210), (-4.6145, 1.1300, 20.0144), (-5.4826, 1.9738, 3.1262), (-6.5868, -3.6238, 1.2552), (-4.6140, 1.1299, 20.0245), (-0.0000, 0.3487, 42.3772), (0.0000, 0.6861, 46.3908), (0.0000, 1.6203, 49.9722), (0.0000, 3.1442, 55.3735), (0.0000, 2.3023, 60.7193), (0.0000, 0.2832, 64.6042), (0.1867, -2.9253, 66.5692), (1.5632, 0.9907, 59.2297), (6.4514, 2.9250, 57.3518), (11.6885, 2.1134, 47.7917), (16.7500, -0.1045, 38.9306), (17.6815, 1.0766, 35.9182), (17.8734, 1.1175, 34.3141), (17.4814, 1.1793, 33.5442), (18.1159, 0.1787, 35.8233), (18.2436, 0.1444, 33.9251), (17.7959, 0.0543, 33.0231), (18.2694, -0.7926, 35.6850), (18.5027, -0.9053, 33.4337), (17.8903, -1.0016, 32.4275), (18.2127, -1.8376, 35.6365), (18.4956, -1.9883, 33.8462), (18.0208, -1.9785, 32.9652), (15.9349, -1.5914, 37.6326), (16.4862, -2.3793, 36.0280), (16.6269, -2.6810, 34.8880), (16.0399, 0.4772, 35.4860), (16.6063, 1.2449, 35.4820), (17.3224, -2.9727, 36.0355), (16.7500, -0.1045, 38.9306), (11.8414, 1.9654, 47.8910), (11.8414, 1.9654, 47.8910), (14.2255, 0.9639, 42.9272), (16.9270, -0.1174, 38.1372), (11.7950, 2.0960, 47.5973), (8.6536, 1.8148, 52.2952), (5.3985, 2.3394, 57.9186), (-1.5670, 0.9775, 59.2271), (-6.4514, 2.9250, 57.3518), (-11.6885, 2.1134, 47.7917), (-16.7501, -0.1051, 38.9308), (-17.6815, 1.0766, 35.9183), (-17.8740, 1.1189, 34.3142), (-17.4823, 1.1813, 33.5443), (-18.1159, 0.1788, 35.8233), (-18.2440, 0.1465, 33.9251), (-17.7965, 0.0573, 33.0229), (-18.2694, -0.7925, 35.6850), (-18.5029, -0.9031, 33.4337), (-17.8906, -0.9986, 32.4273), (-18.2127, -1.8376, 35.6365), (-18.4956, -1.9869, 33.8462), (-18.0208, -1.9766, 32.9651), (-15.9349, -1.5914, 37.6326), (-16.4862, -2.3793, 36.0280), (-16.6268, -2.6810, 34.8881), (-16.3727, -1.7768, 35.8049), (-20.1373, -1.8476, 26.5408), (-20.0539, -2.8437, 26.5145), (-19.8370, -2.5042, 27.0759), (-16.3727, -1.7768, 35.8049), (-16.3727, -1.7768, 35.8049), (-16.3727, -1.7768, 35.8049), (-11.5225, 1.9654, 47.7163), (-16.9263, -0.1177, 38.1369), (-14.3062, 0.9990, 42.9634), (-8.6568, 1.8147, 52.2970), (-11.7950, 2.0959, 47.5973), (-5.4023, 2.3262, 57.9160)]
bone_roll = [0.0, 1.5146476030349731, 1.5163863897323608, 1.4281747341156006, 1.3248605728149414, 1.4281747341156006, 1.5167547464370728, 1.6269444227218628, 1.6252055168151855, 1.7050734758377075, 1.8955817222595215, 1.6248385906219482, 1.5707906484603882, 1.5707945823669434, 1.5707945823669434, 1.5707985162734985, -1.5707956552505493, -1.570796012878418, -0.2333875596523285, 0.6675871014595032, 1.0696378946304321, 1.0696380138397217, 1.1214488744735718, 1.4583845138549805, 2.09264874458313, 2.231227397918701, 1.46525239944458, 1.9378292560577393, 2.190308094024658, 1.3950276374816895, 2.0333640575408936, 2.203895092010498, 1.3122084140777588, 2.0760560035705566, 2.15158748626709, -1.5743072032928467, -1.546663522720337, -1.6492854356765747, 2.763293981552124, 2.0005433559417725, 2.000640630722046, 1.1214488744735718, 1.1214488744735718, 1.1214488744735718, 1.1364964246749878, 1.0936613082885742, 1.069637417793274, 1.0692299604415894, 0.6344558000564575, 2.448054790496826, 2.0719552040100098, 2.0719552040100098, 2.020369052886963, 1.6826542615890503, 1.048629879951477, 0.9103028178215027, 1.6753950119018555, 1.203111171722412, 0.9508099555969238, 1.745668888092041, 1.1076332330703735, 0.9372105002403259, 1.8286235332489014, 1.0649346113204956, 0.9894222617149353, -1.567291259765625, -1.594940423965454, -1.4923120737075806, -2.917348861694336, -2.917339324951172, -2.917339324951172, -2.917339324951172, -2.917348861694336, -2.917348861694336, -2.917348861694336, 2.1237666606903076, 2.0475001335144043, 2.0590391159057617, 2.07307767868042, 2.0719544887542725, 2.470106601715088]
bone_parent = [None, "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.weapon_bone_Clip2", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Clavicle"]
#Francis
if satproperties.game_armature_l4d2 == 'FRANCIS':
name = 'francis_armature'
bone_name = ["ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Toe0", "ValveBiped.attachment_bandage_legL", "ValveBiped.Bip01_L_Knee", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Toe0", "ValveBiped.Bip01_R_Knee", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.forward", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.L_weapon_bone", "ValveBiped.weapon_bone_Clip2", "ValveBiped.weapon_bone_Clip2_Bullets", "ValveBiped.weapon_bolt_l", "ValveBiped.attachment_bandage_armL", "ValveBiped.attachment_armL_T", "ValveBiped.Bip01_L_Ulna", "ValveBiped.Bip01_L_Wrist", "ValveBiped.Bip01_L_Elbow", "ValveBiped.Bip01_L_Bicep", "ValveBiped.hlp_jacket_arm_front1_L", "ValveBiped.hlp_jacket_arm_top_L", "ValveBiped.hlp_jacket_arm_back_L", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone_Clip_Bullets", "ValveBiped.weapon_bone_extra", "ValveBiped.weapon_bolt", "ValveBiped.weapon_bolt_opposite", "ValveBiped.weapon_charger", "ValveBiped.attachment_armR_T", "ValveBiped.Bip01_R_Wrist", "ValveBiped.Bip01_R_Ulna", "ValveBiped.Bip01_R_Elbow", "ValveBiped.Bip01_R_Bicep", "ValveBiped.hlp_jacket_arm_front1_R", "ValveBiped.hlp_jacket_arm_top_R", "ValveBiped.hlp_jacket_arm_back_R", "ValveBiped.hlp_jacket_armpit_R", "ValveBiped.jiggy_jacket_right", "ValveBiped.jiggy_jacket_left"]
bone_head_location = [(0.0000, 0.5426, 40.2336), (3.8069, 0.5426, 40.2336), (4.7971, 1.6603, 21.0284), (5.7013, 2.6809, 3.4923), (6.8269, -3.1375, 1.5365), (10.1733, -4.3354, 13.9122), (4.7967, 1.6598, 21.0377), (-3.8069, 0.5426, 40.2336), (-4.7971, 1.6603, 21.0284), (-5.7013, 2.6809, 3.4923), (-6.8269, -3.1375, 1.5365), (-4.7966, 1.6598, 21.0377), (0.0000, 0.5614, 44.4797), (0.0000, 0.9101, 48.6609), (0.0000, 1.8902, 52.4183), (0.0000, 3.4925, 58.1858), (0.0000, 2.2430, 63.6656), (0.0000, 0.1013, 67.8323), (-0.0000, -2.9204, 69.7993), (1.5750, 1.0500, 62.0070), (7.1115, 2.7146, 61.8796), (17.9311, 1.9245, 58.2082), (28.0739, -0.1911, 54.6795), (30.9189, 1.1461, 53.1210), (32.1478, 1.2281, 52.1219), (32.3881, 1.3226, 51.3130), (31.2994, 0.1854, 53.3092), (32.6961, 0.1956, 52.0248), (32.9856, 0.1582, 51.0532), (31.5076, -0.8386, 53.2471), (33.2263, -0.8988, 51.7836), (33.4675, -0.9315, 50.5979), (31.4918, -1.9315, 53.0981), (32.9138, -2.0282, 52.0218), (33.1755, -1.9625, 51.0128), (28.5030, -1.4572, 53.1432), (30.0309, -2.2444, 52.2694), (30.9754, -2.5409, 51.4499), (30.5056, -1.2975, 52.1332), (30.4121, 1.4866, 52.2757), (30.5012, -2.7776, 52.9206), (28.0739, -0.1911, 54.6795), (20.9986, -2.6630, 57.9463), (17.9310, 1.9245, 58.2082), (23.3839, 0.7872, 56.3112), (28.8367, -0.3502, 54.4141), (18.1450, 1.9089, 58.1357), (12.3983, 1.6114, 59.4857), (8.0021, 0.0742, 64.1436), (8.2045, 2.7563, 65.9014), (8.2170, 5.7109, 64.2062), (-1.5750, 1.0500, 62.0070), (-7.1267, 2.6337, 61.6740), (-17.9294, 1.6229, 58.0072), (-28.0358, -0.7008, 54.5052), (-30.8988, 0.5683, 52.9228), (-32.1281, 0.6170, 51.9220), (-32.3693, 0.6954, 51.1117), (-31.2652, -0.3947, 53.1264), (-32.6608, -0.4242, 51.8411), (-32.9491, -0.4809, 50.8701), (-31.4580, -1.4226, 53.0807), (-33.1744, -1.5301, 51.6172), (-33.4140, -1.5848, 50.4320), (-31.4258, -2.5175, 52.9495), (-32.8452, -2.6515, 51.8738), (-33.1068, -2.6056, 50.8636), (-28.4445, -1.9980, 52.9893), (-29.9595, -2.8220, 52.1273), (-30.8987, -3.1458, 51.3119), (-29.9277, -2.1068, 52.0733), (-38.9785, -2.2629, 47.8238), (-38.9062, -3.2532, 47.7060), (-38.3757, -2.9096, 47.9852), (-29.9277, -2.1068, 52.0733), (-29.9277, -2.1068, 52.0733), (-29.9277, -2.1068, 52.0733), (-17.9294, 1.6229, 58.0073), (-28.7959, -0.8756, 54.2418), (-23.3627, 0.3736, 56.1245), (-18.1430, 1.6029, 57.9347), (-12.4032, 1.5065, 59.2958), (-7.9535, -0.3151, 64.1682), (-8.3438, 2.4870, 65.7270), (-8.3833, 5.6109, 63.9486), (-8.9549, 2.5709, 57.3176), (-3.0031, -7.6019, 47.8193), (3.4477, -7.5199, 47.7009)]
bone_tail_location = [(0.0000, 0.5426, 40.4928), (3.7804, 0.8002, 40.2472), (4.7706, 1.9178, 21.0421), (5.6874, 2.7609, 3.2461), (6.8344, -3.1406, 1.2774), (10.1733, -4.3354, 14.1715), (4.7698, 1.9168, 21.0578), (-3.7804, 0.8002, 40.2472), (-4.7706, 1.9178, 21.0421), (-5.6844, 2.7603, 3.2461), (-6.8547, -3.1361, 1.2787), (-4.7698, 1.9168, 21.0578), (-0.0000, 0.3031, 44.5013), (0.0000, 0.6592, 48.7263), (0.0000, 1.6404, 52.4877), (0.0000, 3.2398, 58.1281), (0.0000, 2.4736, 63.7841), (0.0000, 0.3606, 67.8352), (0.2593, -2.9204, 69.7993), (1.5917, 1.0140, 62.2633), (7.1334, 2.9728, 61.8886), (17.9835, 2.1784, 58.2068), (28.1855, -0.1576, 54.9111), (31.0827, 1.1222, 53.3205), (32.3963, 1.2129, 52.1940), (32.6472, 1.3309, 51.3075), (31.4742, 0.1616, 53.4992), (32.9444, 0.1893, 52.0990), (33.2444, 0.1491, 51.0657), (31.6747, -0.8588, 53.4442), (33.4802, -0.9081, 51.8355), (33.7263, -0.9422, 50.6096), (31.6472, -1.9486, 53.3049), (33.1630, -2.0636, 52.0841), (33.4266, -1.9976, 51.0667), (28.4123, -1.6938, 53.1978), (29.9796, -2.4965, 52.3016), (30.8880, -2.7765, 51.5137), (30.5881, -1.5415, 52.1039), (30.4112, 1.2296, 52.3097), (30.5003, -3.0346, 52.9545), (28.1855, -0.1576, 54.9111), (20.8225, -2.6716, 58.1363), (18.0427, 1.9581, 58.4398), (23.4255, 1.0410, 56.2788), (28.8682, -0.0998, 54.3547), (18.2060, 2.1609, 58.1312), (12.4202, 1.8695, 59.4947), (8.0248, 0.0405, 64.3996), (8.2260, 2.7214, 66.1574), (8.2344, 5.6660, 64.4609), (-1.6048, 0.9986, 62.2594), (-7.1524, 2.8916, 61.6788), (-17.9856, 1.8759, 58.0016), (-28.1482, -0.6661, 54.7363), (-31.0624, 0.5452, 53.1226), (-32.3765, 0.5995, 51.9943), (-32.6284, 0.6999, 51.1059), (-31.4398, -0.4180, 53.3165), (-32.9091, -0.4329, 51.9153), (-33.2077, -0.4934, 50.8825), (-31.6250, -1.4421, 53.2780), (-33.4281, -1.5422, 51.6691), (-33.6726, -1.5990, 50.4437), (-31.5811, -2.5335, 53.1565), (-33.0939, -2.6894, 51.9364), (-33.3575, -2.6434, 50.9179), (-28.3503, -2.2323, 53.0479), (-29.9046, -3.0728, 52.1635), (-30.8078, -3.3790, 51.3796), (-29.9089, -2.3636, 52.0428), (-38.9598, -2.5196, 47.7932), (-38.8874, -3.5100, 47.6754), (-38.3569, -3.1664, 47.9547), (-29.9089, -2.3636, 52.0428), (-29.9089, -2.3636, 52.0428), (-29.9089, -2.3636, 52.0428), (-17.8816, 1.6834, 57.7597), (-28.8308, -0.6269, 54.1773), (-23.4079, 0.6262, 56.0874), (-18.2077, 1.8538, 57.9261), (-12.4330, 1.7635, 59.3127), (-7.9797, -0.3381, 64.4251), (-8.3759, 2.4340, 65.9787), (-8.4120, 5.5509, 64.1992), (-8.9337, 2.3219, 57.3868), (-3.1143, -7.8358, 47.8323), (3.5698, -7.7480, 47.7178)]
bone_roll = [0.0, 1.5163867473602295, 1.5163867473602295, 1.4281752109527588, 1.3248614072799683, -3.054735486784921e-08, 1.5176457166671753, 1.6252055168151855, 1.6252055168151855, 1.7050731182098389, 1.8955813646316528, 1.6239466667175293, 1.570787787437439, 1.570793628692627, 1.5707937479019165, 1.5707995891571045, -1.5707955360412598, -1.5707957744598389, -0.23338763415813446, 0.36010289192199707, 0.32506293058395386, 0.32884681224823, 0.3853670060634613, 0.7393394708633423, 1.400242567062378, 1.5409237146377563, 0.7494409680366516, 1.2433767318725586, 1.502695918083191, 0.676496148109436, 1.3421727418899536, 1.516715168952942, 0.5899972319602966, 1.3893157243728638, 1.4658772945404053, -2.5776004791259766, -2.7329800128936768, -2.6365368366241455, -1.3516488075256348, 1.0866668224334717, 1.0868042707443237, 0.3853670060634613, -0.7977744936943054, 0.3853670060634613, 0.3411743640899658, 0.3521559238433838, 0.32993629574775696, 0.32506293058395386, 0.37002164125442505, 0.4001922309398651, 0.3753901422023773, 2.740926504135132, 2.816547155380249, 2.8134348392486572, 2.773480176925659, 2.4247045516967773, 1.7612076997756958, 1.6152693033218384, 2.414360523223877, 1.9171067476272583, 1.6552257537841797, 2.48689866065979, 1.8176437616348267, 1.641257643699646, 2.5730230808258057, 1.7731397151947021, 1.696168303489685, -0.5927028656005859, -0.4550568759441376, -0.5249872803688049, -2.2348899841308594, -2.2348947525024414, -2.2348945140838623, -2.2348947525024414, -2.2348899841308594, -2.2348899841308594, -2.2348899841308594, 2.8535776138305664, 2.7873146533966064, 2.799619436264038, 2.812537908554077, 2.8187382221221924, 2.840806484222412, 2.739793300628662, 2.751272678375244, 2.158555030822754, -3.02217698097229, 2.8675715923309326]
bone_parent = [None, "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.weapon_bone_Clip2", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine"]
#Louis
if satproperties.game_armature_l4d2 == 'LOUIS':
name = 'louis_armature'
bone_name = ["ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Toe0", "ValveBiped.attachment_bandage_legL", "ValveBiped.Bip01_L_Knee", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Toe0", "ValveBiped.Bip01_R_Quadricep", "ValveBiped.Bip01_R_Knee", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.forward", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.L_weapon_bone", "ValveBiped.weapon_bone_Clip2", "ValveBiped.weapon_bone_Clip2_Bullets", "ValveBiped.weapon_bolt_l", "ValveBiped.attachment_bandage_armL", "ValveBiped.attachment_armL_T", "ValveBiped.Bip01_L_Ulna", "ValveBiped.Bip01_L_Wrist", "ValveBiped.Bip01_L_Shoulder", "ValveBiped.Bip01_L_Elbow", "ValveBiped.hlp_shoulder1_L", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone_Clip_Bullets", "ValveBiped.weapon_bone_extra", "ValveBiped.weapon_bolt", "ValveBiped.weapon_bolt_opposite", "ValveBiped.weapon_charger", "ValveBiped.attachment_armR_T", "ValveBiped.Bip01_R_Wrist", "ValveBiped.Bip01_R_Ulna", "ValveBiped.Bip01_R_Shoulder", "ValveBiped.Bip01_R_Elbow", "ValveBiped.Jiggle_tie1", "ValveBiped.Jiggle_tie2", "ValveBiped.Jiggle_tie3", "ValveBiped.Jiggle_tie4", "ValveBiped.hlp_shirt_front"]
bone_head_location = [(0.0000, 0.5426, 40.2336), (3.8069, 0.5426, 40.2336), (4.7971, 1.6603, 21.0284), (5.7013, 2.6809, 3.4923), (6.8269, -3.1375, 1.5365), (6.0000, -0.6565, 9.5755), (4.7967, 1.6598, 21.0377), (-3.8069, 0.5426, 40.2336), (-4.7971, 1.6603, 21.0284), (-5.7013, 2.6809, 3.4923), (-6.8269, -3.1375, 1.5365), (-4.1511, 0.9311, 33.5589), (-4.7967, 1.6598, 21.0377), (0.0000, 0.5614, 44.4797), (0.0000, 0.9101, 48.6609), (0.0000, 1.8902, 52.4183), (0.0000, 3.4926, 58.1858), (0.0000, 2.2430, 63.6656), (0.0000, 0.1013, 67.8323), (-0.0000, -2.9204, 69.7993), (1.5750, 1.0500, 62.0070), (6.7670, 2.8758, 60.2321), (12.2542, 2.0269, 50.2154), (17.4082, -0.1465, 40.8070), (18.3716, 1.1379, 37.6871), (18.5511, 1.1558, 36.1115), (18.2972, 1.1861, 35.3019), (18.8265, 0.1954, 37.5984), (18.9789, 0.1486, 35.7076), (18.6741, -0.0176, 34.7544), (18.9883, -0.8275, 37.4453), (19.3163, -1.1185, 35.2301), (18.8651, -1.2854, 34.1194), (18.9305, -1.9273, 37.3831), (19.2132, -2.2058, 35.6417), (18.9095, -2.2393, 34.6429), (16.7450, -1.4938, 39.4314), (17.0942, -2.4583, 37.7988), (17.2425, -2.8017, 36.5693), (17.5213, -1.3648, 37.3251), (17.4099, 1.4213, 37.4007), (18.1260, -2.7964, 37.9542), (17.4082, -0.1465, 40.8070), (14.5566, -2.5239, 48.0910), (12.2542, 2.0269, 50.2154), (15.0250, 0.8585, 45.1574), (17.7958, -0.3099, 40.0994), (7.5216, 2.7590, 58.8546), (12.3627, 2.0101, 50.0173), (7.4923, -0.0474, 58.6916), (-1.5750, 1.0500, 62.0070), (-6.7669, 2.8758, 60.2321), (-12.2542, 2.0269, 50.2154), (-17.4082, -0.1464, 40.8070), (-18.3716, 1.1379, 37.6872), (-18.5516, 1.1574, 36.1116), (-18.2979, 1.1884, 35.3019), (-18.8265, 0.1954, 37.5984), (-18.9793, 0.1507, 35.7076), (-18.6746, -0.0146, 34.7542), (-18.9883, -0.8274, 37.4454), (-19.3159, -1.1165, 35.2298), (-18.8646, -1.2827, 34.1191), (-18.9305, -1.9273, 37.3831), (-19.2128, -2.2044, 35.6414), (-18.9087, -2.2372, 34.6427), (-16.7450, -1.4938, 39.4314), (-17.0942, -2.4583, 37.7988), (-17.2425, -2.8017, 36.5693), (-17.2172, -1.5978, 37.7530), (-20.9819, -1.6686, 28.4889), (-20.8984, -2.6647, 28.4626), (-20.6815, -2.3253, 29.0240), (-17.2172, -1.5978, 37.7530), (-17.2172, -1.5978, 37.7530), (-17.2172, -1.5978, 37.7530), (-12.2542, 2.0269, 50.2154), (-17.7958, -0.3099, 40.0994), (-15.0250, 0.8585, 45.1574), (-7.5216, 2.7590, 58.8546), (-12.3627, 2.0101, 50.0173), (-1.1498, -1.9966, 60.1226), (-1.5969, -3.0964, 55.3124), (-1.8998, -3.9097, 51.1480), (-2.3686, -4.4839, 47.6417), (-4.8865, -3.4521, 44.5410)]
bone_tail_location = [(0.0000, 0.5426, 40.4304), (3.7868, 0.7381, 40.2439), (4.7770, 1.8558, 21.0388), (5.6907, 2.7416, 3.3054), (6.8326, -3.1399, 1.3398), (6.0000, -0.6565, 9.7723), (4.7763, 1.8549, 21.0529), (-3.7868, 0.7381, 40.2439), (-4.7770, 1.8558, 21.0388), (-5.6884, 2.7412, 3.3054), (-6.8480, -3.1364, 1.3409), (-4.1309, 1.1266, 33.5693), (-4.7763, 1.8549, 21.0529), (-0.0000, 0.3653, 44.4961), (0.0000, 0.7197, 48.7105), (0.0000, 1.7006, 52.4710), (0.0000, 3.3007, 58.1420), (0.0000, 2.4181, 63.7556), (0.0000, 0.2981, 67.8345), (0.1968, -2.9204, 69.7993), (1.6417, 1.0402, 62.1919), (6.7740, 3.0720, 60.2194), (12.2730, 2.2198, 50.1811), (17.5882, -0.1096, 40.8774), (18.5670, 1.1298, 37.7093), (18.7387, 1.1485, 36.0524), (18.4515, 1.1934, 35.1800), (19.0224, 0.1877, 37.6144), (19.1662, 0.1518, 35.6471), (18.8407, -0.0260, 34.6501), (19.1830, -0.8278, 37.4742), (19.4989, -1.1284, 35.1574), (19.0337, -1.3008, 34.0190), (19.1248, -1.9261, 37.4144), (19.4004, -2.2290, 35.5855), (19.0847, -2.2653, 34.5572), (16.7294, -1.6641, 39.5287), (17.0881, -2.6479, 37.8510), (17.2322, -2.9777, 36.6566), (17.5614, -1.5501, 37.2723), (17.4366, 1.2280, 37.4265), (18.1527, -2.9896, 37.9800), (17.5882, -0.1096, 40.8774), (14.5566, -2.5239, 48.2878), (12.4342, 2.0638, 50.2858), (15.0219, 1.0498, 45.1115), (17.7733, -0.1225, 40.0438), (7.4865, 2.9494, 58.8193), (12.3848, 2.2015, 49.9770), (7.5459, -0.0118, 58.8776), (-1.6456, 1.0263, 62.1892), (-6.7740, 3.0720, 60.2194), (-12.2730, 2.2198, 50.1811), (-17.5883, -0.1102, 40.8775), (-18.5670, 1.1299, 37.7094), (-18.7392, 1.1502, 36.0526), (-18.4523, 1.1959, 35.1800), (-19.0224, 0.1877, 37.6144), (-19.1665, 0.1540, 35.6472), (-18.8413, -0.0228, 34.6499), (-19.1830, -0.8278, 37.4742), (-19.4985, -1.1264, 35.1571), (-19.0331, -1.2979, 34.0186), (-19.1248, -1.9261, 37.4144), (-19.3999, -2.2275, 35.5852), (-19.0840, -2.2630, 34.5569), (-16.7294, -1.6641, 39.5287), (-17.0881, -2.6479, 37.8510), (-17.2322, -2.9777, 36.6566), (-17.2008, -1.7938, 37.7478), (-20.9654, -1.8646, 28.4837), (-20.8820, -2.8608, 28.4574), (-20.6651, -2.5213, 29.0188), (-17.2008, -1.7938, 37.7478), (-17.2008, -1.7938, 37.7478), (-17.2008, -1.7938, 37.7478), (-12.0980, 2.0638, 50.1016), (-17.7726, -0.1227, 40.0434), (-15.0215, 1.0498, 45.1113), (-7.5333, 2.9552, 58.8445), (-12.3848, 2.2015, 49.9770), (-1.1144, -2.1860, 60.1626), (-1.5755, -3.2886, 55.3489), (-1.8931, -4.1048, 51.1731), (-2.3619, -4.6790, 47.6667), (-4.9051, -3.4473, 44.7368)]
bone_roll = [0.0, 1.5163867473602295, 1.5163867473602295, 1.4281752109527588, 1.3248614072799683, 5.215411746917198e-08, 1.5176457166671753, 1.6252055168151855, 1.6252055168151855, 1.7050731182098389, 1.8955813646316528, 1.6252055168151855, 1.6239466667175293, 1.570787787437439, 1.570793628692627, 1.5707937479019165, 1.5707995891571045, -1.5707955360412598, -1.5707957744598389, -0.23338864743709564, 0.6675870418548584, 1.0696380138397217, 1.0696380138397217, 1.1214486360549927, 1.469091773033142, 1.9117523431777954, 2.124582052230835, 1.4646867513656616, 1.7184901237487793, 2.034926414489746, 1.2943530082702637, 1.8110473155975342, 2.018317461013794, 1.2542340755462646, 1.829918384552002, 2.075641632080078, -1.685275673866272, -1.684988021850586, -1.7008771896362305, -0.9513270258903503, 2.0005319118499756, 2.0006346702575684, 1.1214486360549927, 2.222181905153775e-08, 1.1214486360549927, 1.082321047782898, 1.0936603546142578, 1.0787856578826904, 1.0696380138397217, 0.5567626953125, 2.4480552673339844, 2.0719552040100098, 2.0719552040100098, 2.0203697681427, 1.6717989444732666, 1.229291558265686, 1.016756534576416, 1.6759569644927979, 1.4223636388778687, 1.1060502529144287, 1.8461849689483643, 1.329614281654358, 1.1224186420440674, 1.886262059211731, 1.3105924129486084, 1.064943790435791, -1.4563190937042236, -1.4566073417663574, -1.4407175779342651, -2.9173645973205566, -2.9173643589019775, -2.9173643589019775, -2.9173643589019775, -2.9173645973205566, -2.9173645973205566, -2.9173645973205566, 2.123765707015991, 2.047501802444458, 2.059039831161499, 2.072981357574463, 2.0719549655914307, 1.340057611465454, 0.9920561909675598, 0.33991122245788574, 0.33991092443466187, -0.13215230405330658]
bone_parent = [None, "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.weapon_bone_Clip2", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Jiggle_tie1", "ValveBiped.Jiggle_tie2", "ValveBiped.Jiggle_tie3", "ValveBiped.Bip01_Pelvis"]
#Zoey
if satproperties.game_armature_l4d2 == 'ZOEY':
name = 'zoey_armature'
bone_name = ["ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Toe0", "ValveBiped.attachment_bandage_legL", "ValveBiped.Bip01_L_Knee", "ValveBiped.hlp_gluteus_L", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Toe0", "ValveBiped.attachment_bandage_legR", "ValveBiped.Bip01_R_Knee", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.jiggy_hair_ponytail_01", "ValveBiped.jiggy_hair_ponytail_02", "ValveBiped.jiggy_hair_lsideburn", "ValveBiped.jiggy_hair_lbang_01", "ValveBiped.jiggy_hair_rbang", "ValveBiped.jiggy_hair_rsideburn", "ValveBiped.forward", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.L_weapon_bone", "ValveBiped.weapon_bone_Clip2", "ValveBiped.weapon_bone_Clip2_Bullets", "ValveBiped.weapon_bolt_l", "ValveBiped.attachment_bandage_armL", "ValveBiped.attachment_armL_T", "ValveBiped.Bip01_L_Ulna", "ValveBiped.Bip01_L_Wrist", "ValveBiped.Bip01_L_Elbow", "ValveBiped.Bip01_L_Bicep", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone_Clip_Bullets", "ValveBiped.weapon_bone_extra", "ValveBiped.weapon_bolt", "ValveBiped.weapon_bolt_opposite", "ValveBiped.weapon_charger", "ValveBiped.attachment_armR_T", "ValveBiped.Bip01_R_Wrist", "ValveBiped.Bip01_R_Ulna", "ValveBiped.Bip01_R_Bicep", "ValveBiped.Bip01_R_Elbow", "ValveBiped.jiggle_holster"]
bone_head_location = [(0.0000, -1.4421, 35.3500), (3.4556, -1.4421, 35.3500), (2.8739, -0.9295, 18.7958), (2.3031, -0.2655, 2.5536), (2.9060, -5.0047, 0.9278), (3.4556, -1.4421, 35.3500), (2.8961, -0.9491, 18.8075), (3.4556, -1.4421, 35.3500), (-3.4556, -1.4421, 35.3500), (-2.8739, -0.9295, 18.7958), (-2.3032, -0.2655, 2.5536), (-2.9060, -5.0048, 0.9278), (-3.2080, -1.2239, 28.3035), (-2.8961, -0.9491, 18.8522), (0.0000, -1.7353, 39.0538), (0.0000, -1.6922, 42.3613), (0.0000, -1.1762, 45.6187), (0.0000, 0.5586, 51.4052), (0.0000, 0.3819, 56.4679), (0.0000, -1.0340, 60.2022), (0.0792, 4.1220, 63.0046), (0.1971, 4.9026, 59.6133), (2.8659, -1.3257, 63.5383), (1.3677, -3.9145, 65.5946), (-2.0579, -3.8832, 64.4497), (-2.7417, -1.7809, 63.2370), (-0.0000, -4.0558, 62.1692), (1.5000, -0.9591, 55.1704), (5.2479, 0.3898, 53.4801), (8.6991, -0.1152, 42.9369), (11.7163, -1.9010, 33.7191), (11.9858, -1.0945, 30.9895), (11.8441, -1.0739, 29.6354), (11.3751, -1.0882, 29.0128), (12.2256, -1.7247, 30.8198), (12.0651, -1.9091, 29.2411), (11.5995, -2.0345, 28.4662), (12.3723, -2.6151, 30.5730), (12.2703, -2.7518, 28.7203), (11.5611, -2.8643, 27.9386), (12.3700, -3.5350, 30.5933), (12.3289, -3.6822, 29.0501), (11.7419, -3.6712, 28.3615), (11.1473, -3.1545, 32.5257), (11.1561, -3.8606, 31.2057), (11.0581, -4.0323, 30.1235), (10.3987, -1.7676, 30.6020), (10.6890, -0.6145, 30.3501), (12.0591, -4.6667, 30.9068), (11.7163, -1.9010, 33.7191), (8.6990, -0.1152, 42.9369), (8.6990, -0.1152, 42.9369), (10.4137, -1.1299, 37.6989), (11.7401, -1.9214, 33.7234), (8.7046, -0.1160, 42.9199), (6.4907, -0.5623, 48.0761), (-1.5000, -0.9591, 55.1704), (-5.2479, 0.3898, 53.4801), (-8.6990, -0.1152, 42.9369), (-11.7163, -1.9010, 33.7191), (-11.9858, -1.0945, 30.9895), (-11.8445, -1.0730, 29.6354), (-11.3758, -1.0868, 29.0126), (-12.2256, -1.7247, 30.8198), (-12.0651, -1.9080, 29.2410), (-11.5995, -2.0328, 28.4660), (-12.3723, -2.6151, 30.5730), (-12.2705, -2.7507, 28.7202), (-11.5613, -2.8628, 27.9384), (-12.3700, -3.5350, 30.5933), (-12.3289, -3.6814, 29.0500), (-11.7420, -3.6701, 28.3614), (-11.1472, -3.1545, 32.5257), (-11.1561, -3.8606, 31.2057), (-11.0581, -4.0324, 30.1236), (-10.9821, -3.5998, 30.8828), (-12.3653, -3.9653, 20.9856), (-12.4088, -4.9635, 21.0286), (-12.2919, -4.6081, 21.6095), (-10.9821, -3.5998, 30.8828), (-10.9821, -3.5998, 30.8828), (-10.9821, -3.5998, 30.8828), (-8.6991, -0.1152, 42.9369), (-11.7205, -1.8835, 33.7309), (-10.4136, -1.1300, 37.6989), (-6.4907, -0.5623, 48.0761), (-8.7046, -0.1160, 42.9199), (-7.1175, -1.1570, 36.3146)]
bone_tail_location = [(0.0000, -1.4421, 35.5172), (3.4558, -1.2751, 35.3552), (2.8741, -0.7625, 18.8026), (2.2973, -0.2120, 2.3954), (2.9085, -5.0044, 0.7607), (3.4372, -1.3933, 35.1912), (2.8965, -0.7823, 18.8193), (3.4558, -1.2751, 35.3552), (-3.4558, -1.2751, 35.3552), (-2.8741, -0.7625, 18.8026), (-2.2954, -0.2122, 2.3954), (-2.9216, -5.0025, 0.7614), (-3.2082, -1.0569, 28.3087), (-2.8965, -0.7823, 18.8640), (-0.0000, -1.9024, 39.0559), (0.0000, -1.8573, 42.3875), (0.0000, -1.3363, 45.6667), (0.0000, 0.3915, 51.3994), (0.0000, 0.5382, 56.5271), (0.0000, -0.8669, 60.2040), (0.0792, 4.2586, 63.1009), (0.1971, 5.0664, 59.5803), (3.0330, -1.3257, 63.5383), (1.4320, -4.0645, 65.6306), (-2.1751, -4.0019, 64.4596), (-2.9088, -1.7809, 63.2370), (0.1671, -4.0558, 62.1692), (1.5618, -0.9380, 55.3243), (5.2503, 0.5568, 53.4728), (8.7085, 0.0492, 42.9082), (11.8738, -1.8478, 33.7372), (12.1518, -1.1027, 30.9720), (11.9776, -1.0741, 29.5348), (11.4715, -1.0828, 28.8764), (12.3919, -1.7290, 30.8034), (12.2088, -1.9177, 29.1562), (11.7110, -2.0500, 28.3426), (12.5391, -2.6191, 30.5641), (12.3942, -2.7541, 28.6082), (11.6686, -2.8697, 27.8108), (12.5371, -3.5377, 30.5891), (12.4548, -3.7045, 28.9424), (11.8607, -3.6936, 28.2461), (11.1473, -3.3019, 32.6045), (11.1564, -4.0257, 31.2319), (11.0626, -4.1834, 30.1950), (10.3096, -1.6317, 30.5628), (10.7375, -0.7727, 30.3735), (12.1075, -4.8249, 30.9302), (11.8738, -1.8478, 33.7372), (8.8601, -0.0835, 42.9681), (8.8601, -0.0835, 42.9681), (10.3439, -0.9867, 37.6483), (11.6130, -1.8305, 33.6642), (8.7223, 0.0412, 42.8659), (6.4876, -0.3954, 48.0671), (-1.5659, -0.9501, 55.3238), (-5.2502, 0.5568, 53.4728), (-8.7085, 0.0492, 42.9082), (-11.8739, -1.8483, 33.7373), (-12.1518, -1.1027, 30.9720), (-11.9781, -1.0730, 29.5349), (-11.4722, -1.0813, 28.8763), (-12.3919, -1.7290, 30.8034), (-12.2088, -1.9166, 29.1561), (-11.7109, -2.0483, 28.3425), (-12.5391, -2.6191, 30.5641), (-12.3944, -2.7530, 28.6081), (-11.6688, -2.8681, 27.8106), (-12.5371, -3.5377, 30.5891), (-12.4548, -3.7037, 28.9424), (-11.8608, -3.6925, 28.2460), (-11.1472, -3.3019, 32.6045), (-11.1564, -4.0257, 31.2319), (-11.0626, -4.1834, 30.1950), (-10.9894, -3.7667, 30.8900), (-12.3725, -4.1322, 20.9928), (-12.4160, -5.1303, 21.0357), (-12.2992, -4.7749, 21.6167), (-10.9894, -3.7667, 30.8900), (-10.9894, -3.7667, 30.8900), (-10.9894, -3.7667, 30.8900), (-8.5507, -0.0835, 42.8669), (-11.5934, -1.7926, 33.6717), (-10.3439, -0.9867, 37.6483), (-6.4930, -0.3953, 48.0689), (-8.7223, 0.0412, 42.8660), (-7.1741, -1.3139, 36.3046)]
bone_roll = [0.0, 1.6059211492538452, 1.6059211492538452, 1.4760023355484009, 1.412102460861206, 1.5938071012496948, 1.6059211492538452, 1.6059211492538452, 1.5356719493865967, 1.5356719493865967, 1.6572932004928589, 1.8073545694351196, 1.5356719493865967, 1.5356719493865967, 1.5707415342330933, 1.5707920789718628, 1.5707941055297852, 1.5708173513412476, -1.5707956552505493, -1.5707961320877075, 3.141594409942627, 3.141594886779785, 3.141592502593994, 2.5132951736450195, -3.0813987255096436, 3.141594886779785, -0.23338960111141205, 0.7016207575798035, 1.2544525861740112, 1.2544525861740112, 1.3468612432479858, 1.6909372806549072, 2.198138952255249, 2.384901285171509, 1.5534310340881348, 1.9666615724563599, 2.299614906311035, 1.5504117012023926, 2.199964761734009, 2.3684942722320557, 1.500946044921875, 2.2905502319335938, 2.388859748840332, -1.5648844242095947, -1.6353927850723267, -1.5765867233276367, 3.010576009750366, 2.3918533325195312, 2.3919119834899902, 1.3468611240386963, 1.3208614587783813, 1.3208614587783813, 1.3023208379745483, 1.3523845672607422, 1.2544525861740112, 1.2552399635314941, 2.4180402755737305, 1.8871409893035889, 1.8871409893035889, 1.7949531078338623, 1.450251579284668, 0.9432397484779358, 0.7566547989845276, 1.5874148607254028, 1.1742703914642334, 0.8414407968521118, 1.5906826257705688, 0.9413070678710938, 0.7728316187858582, 1.6401726007461548, 0.8506649732589722, 0.7523815035820007, -1.5767102241516113, -1.5062086582183838, -1.5650075674057007, -1.7214860916137695, -1.7214860916137695, -1.7214860916137695, -1.7214860916137695, -1.7214860916137695, -1.7214860916137695, -1.7214860916137695, 1.9535497426986694, 1.7892824411392212, 1.839281678199768, 1.8871409893035889, 1.8871409893035889, 2.4697043895721436]
bone_parent = [None, "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.jiggy_hair_ponytail_01", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.weapon_bone_Clip2", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_Pelvis"]
#Coach
if satproperties.game_armature_l4d2 == 'COACH':
name = 'coach_armature'
bone_name = ["ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone_Clip_Bullets", "ValveBiped.weapon_bone_extra", "ValveBiped.weapon_bolt", "ValveBiped.weapon_bolt_opposite", "ValveBiped.weapon_charger", "ValveBiped.Bip01_R_Wrist", "ValveBiped.Bip01_R_Ulna", "ValveBiped.attachment_armR_T", "ValveBiped.Bip01_R_Elbow", "ValveBiped.Bip01_R_Bicep", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.L_weapon_bone", "ValveBiped.weapon_bone_Clip2", "ValveBiped.weapon_bone_Clip2_Bullets", "ValveBiped.weapon_bolt_l", "ValveBiped.Bip01_L_Ulna", "ValveBiped.Bip01_L_Wrist", "ValveBiped.attachment_bandage_armL", "ValveBiped.attachment_armL_T", "ValveBiped.Bip01_L_Elbow", "ValveBiped.Bip01_L_Bicep", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.forward", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Knee", "ValveBiped.Bip01_R_Quadricep", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Toe0", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Quadricep", "ValveBiped.Bip01_L_Knee", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Toe0", "ValveBiped.attachment_bandage_legL"]
bone_head_location = [(0.0000, 0.5426, 40.2336), (0.0000, 0.5614, 44.4797), (0.0000, 0.9101, 48.6609), (0.0000, 1.8902, 52.4183), (0.0000, 3.4925, 58.1858), (-1.5750, 1.0500, 62.0070), (-6.7669, 2.8757, 60.2322), (-12.2542, 2.0269, 50.2154), (-17.4082, -0.1464, 40.8070), (-18.3716, 1.1379, 37.6872), (-18.5922, 1.1803, 36.1173), (-18.2158, 1.2315, 35.3579), (-18.8265, 0.1954, 37.5984), (-18.9801, 0.1525, 35.7076), (-18.5361, 0.0635, 34.7999), (-18.9883, -0.8274, 37.4454), (-19.2603, -0.9464, 35.2068), (-18.6352, -1.0439, 34.1749), (-18.9305, -1.9273, 37.3831), (-19.2489, -2.0651, 35.6311), (-18.7536, -2.0541, 34.7116), (-16.7450, -1.4938, 39.4314), (-17.3129, -2.3088, 37.7789), (-17.4651, -2.6391, 36.5463), (-17.2172, -1.5978, 37.7530), (-20.9819, -1.6686, 28.4889), (-20.8984, -2.6647, 28.4626), (-20.6815, -2.3252, 29.0240), (-17.2172, -1.5978, 37.7530), (-17.2172, -1.5978, 37.7530), (-17.2172, -1.5978, 37.7530), (-17.7958, -0.3099, 40.0995), (-15.0250, 0.8585, 45.1574), (-12.2542, 2.0269, 50.2154), (-12.3627, 2.0101, 50.0174), (-9.0808, 1.8039, 54.9157), (1.5750, 1.0500, 62.0070), (6.7670, 2.8757, 60.2322), (12.2542, 2.0269, 50.2154), (17.4082, -0.1465, 40.8070), (18.3716, 1.1379, 37.6872), (18.5917, 1.1789, 36.1171), (18.2150, 1.2295, 35.3579), (18.8264, 0.1954, 37.5984), (18.9798, 0.1504, 35.7076), (18.5355, 0.0605, 34.8001), (18.9883, -0.8275, 37.4454), (19.2601, -0.9486, 35.2069), (18.6349, -1.0469, 34.1751), (18.9305, -1.9274, 37.3831), (19.2489, -2.0665, 35.6312), (18.7536, -2.0560, 34.7117), (16.7450, -1.4938, 39.4314), (17.3129, -2.3089, 37.7789), (17.4651, -2.6392, 36.5463), (17.5213, -1.3649, 37.3251), (17.4099, 1.4212, 37.4007), (18.1260, -2.7964, 37.9542), (17.4082, -0.1465, 40.8070), (15.0250, 0.8585, 45.1574), (17.7958, -0.3099, 40.0995), (14.5565, -2.5240, 48.0910), (12.2542, 2.0269, 50.2154), (12.3627, 2.0101, 50.0174), (9.0774, 1.7102, 54.9217), (0.0000, 2.2430, 63.6656), (0.0000, 0.1013, 67.8323), (-0.0000, -2.9204, 69.7993), (-3.8069, 0.5426, 40.2336), (-4.7966, 1.6598, 21.0377), (-4.1511, 0.9311, 33.5589), (-4.7971, 1.6603, 21.0284), (-5.7013, 2.6809, 3.4923), (-6.8269, -3.1375, 1.5365), (3.8069, 0.5426, 40.2336), (4.1511, 0.9311, 33.5589), (4.7967, 1.6598, 21.0377), (4.7971, 1.6603, 21.0284), (5.7013, 2.6809, 3.4923), (6.8269, -3.1375, 1.5365), (10.1733, -4.3354, 13.9122)]
bone_tail_location = [(0.0000, 0.5426, 40.4300), (-0.0000, 0.3657, 44.4961), (0.0000, 0.7200, 48.7104), (0.0000, 1.7009, 52.4709), (0.0000, 3.3010, 58.1421), (-1.6455, 1.0263, 62.1889), (-6.7739, 3.0717, 60.2194), (-12.2729, 2.2195, 50.1812), (-17.5880, -0.1103, 40.8774), (-18.5660, 1.1304, 37.7143), (-18.7680, 1.1749, 36.0298), (-18.3567, 1.2404, 35.2213), (-19.0221, 0.1877, 37.6145), (-19.1566, 0.1538, 35.6212), (-18.6866, 0.0601, 34.6738), (-19.1832, -0.8322, 37.4693), (-19.4284, -0.9482, 35.1051), (-18.7855, -1.0486, 34.0484), (-19.1237, -1.9294, 37.4184), (-19.4207, -2.0863, 35.5383), (-18.9222, -2.0755, 34.6131), (-16.7317, -1.6713, 39.5144), (-17.3105, -2.4987, 37.8295), (-17.4582, -2.8154, 36.6326), (-17.2008, -1.7934, 37.7478), (-20.9655, -1.8643, 28.4838), (-20.8820, -2.8604, 28.4575), (-20.6651, -2.5209, 29.0188), (-17.2008, -1.7934, 37.7478), (-17.2008, -1.7934, 37.7478), (-17.2008, -1.7934, 37.7478), (-17.7726, -0.1230, 40.0436), (-15.0215, 1.0495, 45.1114), (-12.0982, 2.0638, 50.1018), (-12.3847, 2.2012, 49.9771), (-9.0963, 1.9996, 54.9076), (1.6415, 1.0402, 62.1916), (6.7740, 3.0716, 60.2194), (12.2730, 2.2194, 50.1812), (17.5879, -0.1096, 40.8773), (18.5660, 1.1304, 37.7142), (18.7674, 1.1733, 36.0296), (18.3558, 1.2383, 35.2212), (19.0221, 0.1876, 37.6145), (19.1562, 0.1516, 35.6212), (18.6861, 0.0570, 34.6739), (19.1832, -0.8322, 37.4693), (19.4282, -0.9505, 35.1052), (18.7852, -1.0517, 34.0486), (19.1237, -1.9295, 37.4184), (19.4207, -2.0878, 35.5384), (18.9222, -2.0775, 34.6132), (16.7316, -1.6713, 39.5144), (17.3105, -2.4987, 37.8295), (17.4582, -2.8155, 36.6326), (17.5614, -1.5498, 37.2724), (17.4366, 1.2283, 37.4265), (18.1526, -2.9893, 37.9800), (17.5879, -0.1096, 40.8773), (15.0219, 1.0495, 45.1116), (17.7733, -0.1228, 40.0439), (14.5565, -2.5240, 48.2875), (12.4339, 2.0637, 50.2857), (12.3848, 2.2011, 49.9771), (9.0844, 1.9061, 54.9089), (0.0000, 2.4177, 63.7554), (0.0000, 0.2977, 67.8345), (0.1964, -2.9204, 69.7993), (-3.7868, 0.7378, 40.2439), (-4.7763, 1.8546, 21.0529), (-4.1310, 1.1262, 33.5692), (-4.7770, 1.8554, 21.0388), (-5.6885, 2.7411, 3.3057), (-6.8479, -3.1365, 1.3412), (3.7868, 0.7378, 40.2439), (4.1310, 1.1262, 33.5692), (4.7763, 1.8546, 21.0529), (4.7770, 1.8554, 21.0388), (5.6907, 2.7415, 3.3057), (6.8326, -3.1399, 1.3401), (10.1733, -4.3354, 14.1087)]
bone_roll = [0.0, 1.570787787437439, 1.570793628692627, 1.5707937479019165, 1.5707995891571045, 2.4480555057525635, 2.071955442428589, 2.0719552040100098, 2.020369052886963, 1.6826542615890503, 1.0486284494400024, 0.9103008508682251, 1.675394892692566, 1.2031114101409912, 0.9508097171783447, 1.745668888092041, 1.1076335906982422, 0.9372103214263916, 1.8286235332489014, 1.064934492111206, 0.9894223213195801, -1.5672904253005981, -1.5949407815933228, -1.4923123121261597, -2.9173483848571777, -2.917339563369751, -2.917339563369751, -2.917339563369751, -2.9173483848571777, -2.9173483848571777, -2.9173483848571777, 2.047502040863037, 2.059040069580078, 2.1237668991088867, 2.0719552040100098, 2.073796510696411, 0.6675867438316345, 1.0696380138397217, 1.0696380138397217, 1.1214487552642822, 1.458384394645691, 2.0926477909088135, 2.231227397918701, 1.4652514457702637, 1.9378286600112915, 2.190307855606079, 1.3950268030166626, 2.033363103866577, 2.20389461517334, 1.312207579612732, 2.0760550498962402, 2.1515870094299316, -1.5743083953857422, -1.546666145324707, -1.6492868661880493, -0.9513270258903503, 2.00053071975708, 2.0006275177001953, 1.1214487552642822, 1.082321047782898, 1.0936602354049683, 2.222181905153775e-08, 1.1214486360549927, 1.0696380138397217, 1.0696390867233276, -1.5707955360412598, -1.5707957744598389, -0.23338763415813446, 1.6252055168151855, 1.6239466667175293, 1.6252055168151855, 1.6252055168151855, 1.7050731182098389, 1.8955813646316528, 1.5163867473602295, 1.5163867473602295, 1.5176457166671753, 1.5163867473602295, 1.4281752109527588, 1.3248614072799683, -3.054735486784921e-08]
bone_parent = [None, "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.weapon_bone_Clip2", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Calf"]
#Ellis
if satproperties.game_armature_l4d2 == 'ELLIS':
name = 'ellis_armature'
bone_name = ["ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.L_weapon_bone", "ValveBiped.weapon_bone_Clip2", "ValveBiped.weapon_bone_Clip2_Bullets", "ValveBiped.weapon_bolt_l", "ValveBiped.attachment_bandage_armL", "ValveBiped.attachment_armL_T", "ValveBiped.Bip01_L_Ulna", "ValveBiped.Bip01_L_Wrist", "ValveBiped.Bip01_L_Elbow", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone_Clip_Bullets", "ValveBiped.weapon_bone_extra", "ValveBiped.weapon_bolt", "ValveBiped.weapon_bolt_opposite", "ValveBiped.weapon_charger", "ValveBiped.attachment_armR_T", "ValveBiped.Bip01_R_Wrist", "ValveBiped.Bip01_R_Ulna", "ValveBiped.Bip01_R_Elbow", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.forward", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Toe0", "ValveBiped.Bip01_R_Knee", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Toe0", "ValveBiped.attachment_bandage_legL", "ValveBiped.Bip01_L_Knee"]
bone_head_location = [(0.0000, 0.4935, 36.5934), (0.0000, 0.5106, 40.4554), (0.0000, 0.8277, 44.2582), (0.0000, 1.7192, 47.6757), (0.0000, 3.1766, 52.9214), (1.4325, 0.9550, 56.3969), (6.1547, 2.6156, 54.7826), (13.4651, 1.8733, 47.3994), (20.3521, -0.0752, 40.4799), (22.3878, 0.2391, 38.0234), (22.9943, 0.1884, 36.4084), (22.8335, 0.0929, 35.5049), (22.5829, -0.6891, 37.9413), (23.3808, -0.8093, 36.0526), (23.0930, -0.9165, 34.9955), (21.9537, 1.0888, 37.9771), (22.5373, 1.1195, 36.6583), (22.3965, 1.1539, 35.8998), (20.1356, -1.3211, 39.1265), (21.0567, -2.0633, 37.8319), (21.5023, -2.3692, 36.7955), (22.5643, -1.6907, 37.8848), (23.2819, -1.8233, 36.4334), (23.0780, -1.8285, 35.5056), (21.4361, -1.3166, 37.1776), (21.2623, 1.4673, 37.1856), (21.8686, -2.7316, 37.9659), (20.3521, -0.0752, 40.4799), (16.3366, -2.6478, 46.0435), (13.4651, 1.8733, 47.3993), (17.1676, 0.8258, 43.6795), (20.8701, -0.2218, 39.9595), (13.6096, 1.8586, 47.2534), (-1.4325, 0.9550, 56.3969), (-6.1547, 2.6156, 54.7826), (-13.4303, 1.8723, 47.3651), (-20.2843, -0.0771, 40.4133), (-20.0610, -1.3227, 39.0606), (-20.9759, -2.0650, 37.7616), (-21.4165, -2.3708, 36.7231), (-22.4838, -1.6928, 37.8075), (-23.1946, -1.8242, 36.3527), (-22.9863, -1.8287, 35.4259), (-22.5029, -0.6913, 37.8642), (-23.2921, -0.8095, 35.9717), (-22.9995, -0.9157, 34.9157), (-22.3085, 0.2370, 37.9473), (-22.9077, 0.1883, 36.3295), (-22.7429, 0.0937, 35.4266), (-21.8745, 1.0869, 37.9032), (-22.4523, 1.1189, 36.5819), (-22.3083, 1.1540, 35.8240), (-20.9480, -1.5538, 37.4385), (-27.0730, -1.6203, 29.5342), (-27.0160, -2.6180, 29.4983), (-26.6502, -2.2786, 29.9763), (-20.9480, -1.5538, 37.4385), (-20.9480, -1.5538, 37.4385), (-20.9480, -1.5538, 37.4385), (-13.4303, 1.8723, 47.3652), (-20.7997, -0.2237, 39.8904), (-17.1150, 0.8243, 43.6278), (-13.5741, 1.8576, 47.2185), (0.0000, 2.0401, 57.9054), (0.0000, 0.0921, 61.6951), (-0.0000, -2.9296, 63.6621), (-3.4625, 0.4935, 36.5934), (-4.3631, 1.5101, 19.1259), (-5.1854, 2.4383, 3.1763), (-6.2092, -2.8537, 1.3975), (-4.3627, 1.5096, 19.1343), (3.4625, 0.4935, 36.5934), (4.3631, 1.5101, 19.1259), (5.1854, 2.4383, 3.1763), (6.2093, -2.8537, 1.3975), (9.7393, -4.4856, 12.0096), (4.3627, 1.5096, 19.1343)]
bone_tail_location = [(0.0000, 0.4935, 36.7964), (-0.0000, 0.3084, 40.4722), (0.0000, 0.6313, 44.3094), (0.0000, 1.5236, 47.7300), (0.0000, 2.9787, 52.8762), (1.5012, 0.9449, 56.5876), (6.1619, 2.8180, 54.7694), (13.4901, 2.0723, 47.3682), (20.5101, -0.0331, 40.6002), (22.5777, 0.2352, 38.0949), (23.1940, 0.1925, 36.3725), (23.0189, 0.0913, 35.4223), (22.7698, -0.6900, 38.0204), (23.5766, -0.8088, 35.9993), (23.2782, -0.9195, 34.9124), (22.1393, 1.0851, 38.0591), (22.7368, 1.1166, 36.6212), (22.5750, 1.1648, 35.8038), (20.1018, -1.5042, 39.2074), (21.0432, -2.2591, 37.8839), (21.4739, -2.5508, 36.8815), (22.7463, -1.6888, 37.9746), (23.4793, -1.8425, 36.3902), (23.2738, -1.8481, 35.4558), (21.4940, -1.5072, 37.1390), (21.2847, 1.2688, 37.2212), (21.8910, -2.9301, 38.0016), (20.5101, -0.0331, 40.6002), (16.2810, -2.6463, 46.2387), (13.6230, 1.9154, 47.5196), (17.1742, 1.0226, 43.6306), (20.8603, -0.0294, 39.8956), (13.6397, 2.0560, 47.2172), (-1.5053, 0.9305, 56.5847), (-6.1619, 2.8180, 54.7694), (-13.4552, 2.0713, 47.3339), (-20.4429, -0.0358, 40.5329), (-20.0276, -1.5058, 39.1417), (-20.9625, -2.2607, 37.8136), (-21.3885, -2.5524, 36.8092), (-22.6662, -1.6910, 37.8965), (-23.3917, -1.8434, 36.3085), (-23.1819, -1.8482, 35.3751), (-22.6902, -0.6922, 37.9423), (-23.4877, -0.8088, 35.9174), (-23.1843, -0.9185, 34.8318), (-22.4987, 0.2330, 38.0179), (-23.1072, 0.1924, 36.2927), (-22.9279, 0.0923, 35.3432), (-22.0604, 1.0831, 37.9844), (-22.6516, 1.1161, 36.5439), (-22.4863, 1.1650, 35.7272), (-20.9364, -1.7563, 37.4313), (-27.0615, -1.8228, 29.5269), (-27.0044, -2.8205, 29.4911), (-26.6386, -2.4811, 29.9690), (-20.9364, -1.7563, 37.4313), (-20.9364, -1.7563, 37.4313), (-20.9364, -1.7563, 37.4313), (-13.3062, 1.9065, 47.2082), (-20.7891, -0.0316, 39.8260), (-17.1211, 1.0211, 43.5786), (-13.6040, 2.0551, 47.1822), (0.0000, 2.2206, 57.9982), (0.0000, 0.2951, 61.6973), (0.2030, -2.9296, 63.6621), (-3.4417, 0.6951, 36.6041), (-4.3423, 1.7117, 19.1365), (-5.1722, 2.5005, 2.9836), (-6.2310, -2.8526, 1.1957), (-4.3416, 1.7108, 19.1500), (3.4417, 0.6951, 36.6041), (4.3423, 1.7117, 19.1365), (5.1746, 2.5010, 2.9836), (6.2151, -2.8561, 1.1946), (9.7393, -4.4856, 12.2126), (4.3416, 1.7108, 19.1500)]
bone_roll = [0.0, 1.570787787437439, 1.570793628692627, 1.5707937479019165, 1.5707995891571045, 0.6675867438316345, 0.7910845875740051, 0.7897973656654358, 0.8438310027122498, 1.1815910339355469, 1.6452051401138306, 1.8943307399749756, 1.112265944480896, 1.7393077611923218, 1.9077718257904053, 1.175886869430542, 1.799418568611145, 1.935685634613037, -1.7633079290390015, -1.6789134740829468, -1.8431155681610107, 1.0306905508041382, 1.7810373306274414, 1.8560603857040405, -1.3408830165863037, 1.8003894090652466, 1.8004764318466187, 0.8438310027122498, -0.2586241364479065, 0.8438310027122498, 0.802305281162262, 0.8135017156600952, 0.7894266843795776, 2.448054790496826, 2.3458192348480225, 2.3470852375030518, 2.293346405029297, -1.3814467191696167, -1.464865803718567, -1.3017094135284424, 2.1054487228393555, 1.3550163507461548, 1.2800016403198242, 2.023714780807495, 1.3967591524124146, 1.2283598184585571, 1.9543240070343018, 1.490830898284912, 1.2418134212493896, 1.9604368209838867, 1.3369450569152832, 1.2008744478225708, -2.6797876358032227, -2.6797876358032227, -2.6797876358032227, -2.6797876358032227, -2.6797876358032227, -2.6797876358032227, -2.6797876358032227, 2.401303291320801, 2.322943925857544, 2.3343422412872314, 2.347449779510498, -1.5707955360412598, -1.5707957744598389, -0.23338763415813446, 1.6252055168151855, 1.6252055168151855, 1.7050731182098389, 1.8955813646316528, 1.6239466667175293, 1.5163867473602295, 1.5163867473602295, 1.4281752109527588, 1.3248614072799683, -3.054735486784921e-08, 1.5176457166671753]
bone_parent = [None, "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.weapon_bone_Clip2", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Thigh"]
#Nick
if satproperties.game_armature_l4d2 == 'NICK':
name = 'nick_armature'
bone_name = ["ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Toe0", "ValveBiped.attachment_bandage_legL", "ValveBiped.hlp_l_knee", "ValveBiped.hlp_l_quad", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Toe0", "ValveBiped.hlp_r_quad", "ValveBiped.hlp_r_knee", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.forward", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.L_weapon_bone", "ValveBiped.weapon_bone_Clip2", "ValveBiped.weapon_bone_Clip2_Bullets", "ValveBiped.weapon_bolt_l", "ValveBiped.attachment_bandage_armL", "ValveBiped.attachment_armL_T", "ValveBiped.hlp_l_ulna", "ValveBiped.hlp_wrist", "ValveBiped.hlp_l_shoulder", "ValveBiped.hlp_l_elbow", "ValveBiped.Bip01_L_Bicep", "ValveBiped.hlp_l_trap", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone_Clip_Bullets", "ValveBiped.weapon_bone_extra", "ValveBiped.weapon_bolt", "ValveBiped.weapon_bolt_opposite", "ValveBiped.weapon_charger", "ValveBiped.attachment_armR_T", "ValveBiped.hlp_r_wrist", "ValveBiped.hlp_r_ulna", "ValveBiped.Bip01_R_Bicep", "ValveBiped.hlp_r_shoulder", "ValveBiped.hlp_r_elbow", "ValveBiped.hlp_r_trap"]
bone_head_location = [(0.0000, 0.5168, 38.3177), (3.6257, 0.5168, 38.3177), (4.6337, 0.9446, 20.0046), (5.4948, 1.9165, 3.3035), (6.5668, -3.6248, 1.4408), (4.6337, 0.9446, 20.0046), (4.6332, 0.9444, 20.0134), (3.9760, 0.6655, 31.9531), (-3.6257, 0.5168, 38.3177), (-4.6336, 0.9446, 20.0046), (-5.4947, 1.9165, 3.3035), (-6.5668, -3.6248, 1.4408), (-3.9760, 0.6655, 31.9531), (-4.6332, 0.9444, 20.0134), (0.0000, 0.5347, 42.3617), (0.0000, 0.8667, 46.3437), (0.0000, 1.8002, 49.9222), (0.0000, 3.3262, 55.4150), (0.0000, 2.1362, 60.6339), (0.0000, 0.0965, 64.6022), (-0.0000, -2.9253, 66.5692), (1.5000, 1.0000, 59.0543), (6.4447, 2.7388, 57.3640), (11.6707, 1.9304, 47.8242), (16.5792, -0.1395, 38.8638), (17.4968, 1.0837, 35.8925), (17.7064, 1.1228, 34.3973), (17.3476, 1.1709, 33.6741), (17.9300, 0.1861, 35.8080), (18.0760, 0.1433, 34.0072), (17.6529, 0.0577, 33.1429), (18.0841, -0.7881, 35.6622), (18.3429, -0.9034, 33.5303), (17.7476, -0.9970, 32.5477), (18.0290, -1.8356, 35.6030), (18.3323, -1.9680, 33.9344), (17.8605, -1.9581, 33.0587), (15.9476, -1.4226, 37.5537), (16.4885, -2.1989, 35.9799), (16.6334, -2.5135, 34.8060), (16.6923, -1.3579, 35.3819), (16.5809, 1.4282, 35.4575), (17.2970, -2.7894, 36.0110), (16.5792, -0.1395, 38.8638), (11.6706, 1.9304, 47.8242), (11.6706, 1.9304, 47.8242), (14.3095, 0.8176, 43.0071), (16.9484, -0.2951, 38.1899), (7.1634, 2.6276, 56.0520), (11.7740, 1.9144, 47.6356), (8.6452, 1.6287, 52.3064), (5.3353, 2.3487, 57.7432), (-1.5000, 1.0000, 59.0543), (-6.4447, 2.7388, 57.3640), (-11.6707, 1.9304, 47.8242), (-16.5792, -0.1395, 38.8638), (-17.4968, 1.0837, 35.8925), (-17.7069, 1.1241, 34.3974), (-17.3484, 1.1728, 33.6742), (-17.9300, 0.1861, 35.8080), (-18.0763, 0.1453, 34.0072), (-17.6534, 0.0605, 33.1427), (-18.0841, -0.7880, 35.6623), (-18.3431, -0.9013, 33.5303), (-17.7479, -0.9942, 32.5475), (-18.0290, -1.8355, 35.6030), (-18.3323, -1.9668, 33.9344), (-17.8606, -1.9563, 33.0587), (-15.9476, -1.4226, 37.5537), (-16.4885, -2.1989, 35.9799), (-16.6334, -2.5135, 34.8060), (-16.3883, -1.5908, 35.8098), (-20.1529, -1.6616, 26.5457), (-20.0695, -2.6578, 26.5194), (-19.8525, -2.3183, 27.0808), (-16.3883, -1.5908, 35.8098), (-16.3883, -1.5908, 35.8098), (-16.3883, -1.5908, 35.8098), (-11.6707, 1.9304, 47.8242), (-16.9484, -0.2951, 38.1900), (-14.3095, 0.8176, 43.0071), (-8.6452, 1.6287, 52.3064), (-7.1634, 2.6276, 56.0520), (-11.7740, 1.9144, 47.6356), (-5.3353, 2.3487, 57.7432)]
bone_tail_location = [(0.0000, 0.5168, 38.5044), (3.6069, 0.7025, 38.3210), (4.6146, 1.1300, 20.0144), (5.4847, 1.9742, 3.1262), (6.5722, -3.6270, 1.2542), (4.6236, 1.0022, 19.8273), (4.6140, 1.1297, 20.0246), (3.9572, 0.8512, 31.9564), (-3.6069, 0.7025, 38.3210), (-4.6145, 1.1300, 20.0144), (-5.4826, 1.9738, 3.1262), (-6.5868, -3.6238, 1.2552), (-3.9572, 0.8512, 31.9564), (-4.6140, 1.1297, 20.0246), (-0.0000, 0.3487, 42.3772), (0.0000, 0.6861, 46.3908), (0.0000, 1.6203, 49.9722), (0.0000, 3.1442, 55.3735), (0.0000, 2.3023, 60.7193), (0.0000, 0.2832, 64.6042), (0.1867, -2.9253, 66.5692), (1.5632, 0.9907, 59.2297), (6.4514, 2.9250, 57.3518), (11.6885, 2.1134, 47.7917), (16.7500, -0.1045, 38.9306), (17.6815, 1.0766, 35.9182), (17.8734, 1.1175, 34.3140), (17.4814, 1.1793, 33.5442), (18.1159, 0.1787, 35.8232), (18.2436, 0.1444, 33.9251), (17.7959, 0.0543, 33.0230), (18.2694, -0.7926, 35.6850), (18.5027, -0.9053, 33.4337), (17.8903, -1.0016, 32.4275), (18.2127, -1.8376, 35.6365), (18.4956, -1.9883, 33.8462), (18.0208, -1.9785, 32.9652), (15.9349, -1.5914, 37.6326), (16.4862, -2.3793, 36.0280), (16.6269, -2.6810, 34.8880), (16.7304, -1.5336, 35.3319), (16.6063, 1.2449, 35.4820), (17.3224, -2.9727, 36.0355), (16.7500, -0.1045, 38.9306), (11.8414, 1.9654, 47.8910), (11.8414, 1.9654, 47.8910), (14.2255, 0.9640, 42.9272), (16.9270, -0.1173, 38.1372), (7.1193, 2.8048, 56.0129), (11.8248, 2.0683, 47.5428), (8.6493, 1.8148, 52.2929), (5.3985, 2.3394, 57.9186), (-1.5670, 0.9775, 59.2271), (-6.4514, 2.9250, 57.3518), (-11.6885, 2.1134, 47.7917), (-16.7501, -0.1051, 38.9307), (-17.6815, 1.0766, 35.9183), (-17.8740, 1.1189, 34.3142), (-17.4823, 1.1813, 33.5443), (-18.1159, 0.1788, 35.8233), (-18.2440, 0.1465, 33.9251), (-17.7965, 0.0573, 33.0229), (-18.2694, -0.7925, 35.6850), (-18.5029, -0.9031, 33.4337), (-17.8906, -0.9986, 32.4273), (-18.2127, -1.8376, 35.6365), (-18.4956, -1.9869, 33.8461), (-18.0208, -1.9766, 32.9651), (-15.9349, -1.5914, 37.6326), (-16.4862, -2.3793, 36.0280), (-16.6269, -2.6810, 34.8881), (-16.3727, -1.7768, 35.8049), (-20.1373, -1.8476, 26.5408), (-20.0539, -2.8437, 26.5145), (-19.8370, -2.5042, 27.0759), (-16.3727, -1.7768, 35.8049), (-16.3727, -1.7768, 35.8049), (-16.3727, -1.7768, 35.8049), (-11.5225, 1.9654, 47.7163), (-16.9263, -0.1175, 38.1369), (-14.3062, 0.9991, 42.9633), (-8.6518, 1.8148, 52.2942), (-7.1700, 2.8138, 56.0399), (-11.8248, 2.0683, 47.5428), (-5.4023, 2.3261, 57.9160)]
bone_roll = [0.0, 1.514647364616394, 1.5163863897323608, 1.428174614906311, 1.324860692024231, 1.428174614906311, 1.5167545080184937, 1.514647364616394, 1.6269445419311523, 1.6252055168151855, 1.705073356628418, 1.895581603050232, 1.6269445419311523, 1.6248377561569214, 1.570787787437439, 1.570793628692627, 1.5707937479019165, 1.5707995891571045, -1.5707955360412598, -1.5707957744598389, -0.23338763415813446, 0.6675872206687927, 1.0696382522583008, 1.0696382522583008, 1.121449589729309, 1.4583854675292969, 2.092648983001709, 2.2312281131744385, 1.4652522802352905, 1.9378292560577393, 2.1903088092803955, 1.3950275182724, 2.0333642959594727, 2.203895092010498, 1.3122084140777588, 2.0760560035705566, 2.151587724685669, -1.574308156967163, -1.5466666221618652, -1.649287223815918, -0.9513217806816101, 2.0005431175231934, 2.0006401538848877, 1.121449589729309, 1.121449589729309, 1.121449589729309, 1.1364928483963013, 1.0936603546142578, 1.0813493728637695, 1.0696382522583008, 1.0702033042907715, 0.6510211229324341, 2.448054790496826, 2.071955442428589, 2.0719552040100098, 2.020369052886963, 1.6826542615890503, 1.0486301183700562, 0.9103028774261475, 1.675394892692566, 1.2031114101409912, 0.9508097171783447, 1.745668888092041, 1.1076332330703735, 0.9372103214263916, 1.8286235332489014, 1.064934492111206, 0.9894219636917114, -1.5672913789749146, -1.5949406623840332, -1.4923123121261597, -2.9173483848571777, -2.917339563369751, -2.917339563369751, -2.917339563369751, -2.9173483848571777, -2.9173483848571777, -2.9173483848571777, 2.1237668991088867, 2.047502040863037, 2.059040069580078, 2.071955442428589, 2.071955442428589, 2.0719549655914307, 2.4480550289154053]
bone_parent = [None, "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.weapon_bone_Clip2", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Clavicle"]
#Rochelle
if satproperties.game_armature_l4d2 == 'ROCHELLE':
name = 'rochelle_armature'
bone_name = ["ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone_Clip_Bullets", "ValveBiped.weapon_bone_extra", "ValveBiped.weapon_bolt", "ValveBiped.weapon_bolt_opposite", "ValveBiped.weapon_charger", "ValveBiped.Bip01_R_Wrist", "ValveBiped.Bip01_R_Ulna", "ValveBiped.attachment_armR_T", "ValveBiped.Bip01_R_Elbow", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.L_weapon_bone", "ValveBiped.weapon_bone_Clip2", "ValveBiped.weapon_bone_Clip2_Bullets", "ValveBiped.weapon_bolt_l", "ValveBiped.Bip01_L_Ulna", "ValveBiped.Bip01_L_Wrist", "ValveBiped.attachment_bandage_armL", "ValveBiped.attachment_armL_T", "ValveBiped.Bip01_L_Elbow", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.forward", "jiggle_earring_r", "jiggle_earring_l", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Knee", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_R_Toe0", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Knee", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Toe0", "ValveBiped.attachment_bandage_legL"]
bone_head_location = [(0.0000, 0.4589, 34.0261), (0.0000, 0.4748, 37.6172), (0.0000, 0.7697, 41.1532), (0.0000, 1.5986, 44.3309), (0.0000, 2.9537, 49.2085), (-1.3320, 0.8880, 52.4403), (-5.7229, 2.4321, 50.9392), (-10.3702, 1.9341, 42.4558), (-14.7479, 0.3028, 34.4644), (-15.6631, 1.4139, 32.1189), (-15.9145, 1.5529, 31.3755), (-15.6333, 1.6698, 30.8183), (-15.8049, 0.6917, 31.8674), (-15.9665, 0.8779, 30.8165), (-15.5958, 0.9451, 30.0457), (-15.8141, -0.0215, 31.8072), (-16.0137, 0.1446, 30.5151), (-15.6011, 0.2886, 29.6431), (-15.6966, -0.8551, 31.6572), (-15.8254, -0.7592, 30.5043), (-15.4568, -0.4315, 29.7716), (-14.1451, -0.4632, 33.8256), (-14.3444, -0.9141, 32.1040), (-14.5349, -0.9227, 30.9627), (-14.5725, -1.0893, 31.3820), (-18.3367, -0.9341, 22.1188), (-18.2642, -1.9304, 22.0726), (-18.0436, -1.6046, 22.6406), (-14.5725, -1.0893, 31.3820), (-14.5725, -1.0893, 31.3820), (-14.5725, -1.0893, 31.3820), (-15.0772, 0.1802, 33.8634), (-12.7237, 1.0571, 38.1596), (-10.3702, 1.9341, 42.4558), (-10.4621, 1.9242, 42.2880), (1.3320, 0.8880, 52.4402), (5.7229, 2.4321, 50.9392), (10.3702, 1.9341, 42.4558), (14.7479, 0.3028, 34.4643), (15.6629, 1.4146, 32.1188), (15.8788, 1.5495, 31.4063), (15.6561, 1.6722, 30.8245), (15.8050, 0.6913, 31.8674), (15.9666, 0.8885, 30.8185), (15.5959, 0.9634, 30.0484), (15.8142, -0.0222, 31.8073), (16.0217, 0.1469, 30.5168), (15.6150, 0.3001, 29.6437), (15.6967, -0.8562, 31.6573), (15.8410, -0.7553, 30.5067), (15.4786, -0.4306, 29.7695), (14.1450, -0.4474, 33.8255), (14.3547, -0.9519, 32.1709), (14.5498, -0.9701, 31.0277), (14.8740, -0.8446, 30.9588), (14.7322, 1.9381, 31.0900), (15.4944, -2.2816, 31.5593), (14.7479, 0.3028, 34.4643), (12.7237, 1.0571, 38.1596), (15.0772, 0.1801, 33.8634), (12.7219, -2.5481, 40.2413), (10.3702, 1.9341, 42.4557), (10.4621, 1.9242, 42.2880), (0.0000, 1.8970, 53.8429), (0.0000, 0.0857, 57.3668), (0.0000, -2.9360, 59.3338), (-2.8263, 1.4866, 58.6465), (2.8036, 1.4429, 58.6500), (-3.2196, 0.4589, 34.0261), (-4.0566, 1.4037, 17.7919), (-4.0570, 1.4041, 17.7841), (-4.8216, 2.2672, 2.9535), (-5.7736, -2.6535, 1.2995), (3.2196, 0.4589, 34.0261), (4.0566, 1.4037, 17.7919), (4.0570, 1.4041, 17.7840), (4.8217, 2.2672, 2.9535), (5.7736, -2.6535, 1.2995), (9.4332, -4.5916, 10.6678)]
bone_tail_location = [(0.0000, 0.4589, 34.1948), (-0.0000, 0.3067, 37.6312), (0.0000, 0.6064, 41.1958), (0.0000, 1.4360, 44.3761), (0.0000, 2.7892, 49.1710), (-1.3925, 0.8676, 52.5964), (-5.7271, 2.6006, 50.9316), (-10.3845, 2.1002, 42.4297), (-14.9020, 0.3344, 34.5255), (-15.8301, 1.4088, 32.1421), (-16.0658, 1.5642, 31.3016), (-15.7543, 1.6990, 30.7044), (-15.9730, 0.6866, 31.8811), (-16.1182, 0.8973, 30.7452), (-15.7255, 0.9666, 29.9401), (-15.9799, -0.0484, 31.8232), (-16.1572, 0.1441, 30.4263), (-15.7292, 0.2917, 29.5333), (-15.8483, -0.9265, 31.6760), (-15.9558, -0.8158, 30.4134), (-15.5847, -0.4861, 29.6761), (-14.1007, -0.6219, 33.8620), (-14.3042, -1.0779, 32.1099), (-14.4906, -1.0809, 31.0010), (-14.5603, -1.2574, 31.3742), (-18.3245, -1.1022, 22.1110), (-18.2519, -2.0985, 22.0648), (-18.0314, -1.7727, 22.6328), (-14.5603, -1.2574, 31.3742), (-14.5603, -1.2574, 31.3742), (-14.5603, -1.2574, 31.3742), (-15.0555, 0.3414, 33.8186), (-12.7189, 1.2218, 38.1233), (-10.2359, 1.9662, 42.3589), (-10.4792, 2.0891, 42.2568), (1.3891, 0.8796, 52.5988), (5.7271, 2.6006, 50.9316), (10.3845, 2.1001, 42.4297), (14.9019, 0.3349, 34.5254), (15.8268, 1.4064, 32.1583), (16.0368, 1.5581, 31.3477), (15.7882, 1.6992, 30.7231), (15.9731, 0.6862, 31.8811), (16.1183, 0.9087, 30.7475), (15.7257, 0.9861, 29.9430), (15.9796, -0.0513, 31.8239), (16.1655, 0.1448, 30.4286), (15.7435, 0.3020, 29.5344), (15.8492, -0.9255, 31.6782), (15.9735, -0.8098, 30.4176), (15.6087, -0.4832, 29.6757), (14.1108, -0.6066, 33.8697), (14.3248, -1.1174, 32.1848), (14.5154, -1.1288, 31.0737), (14.9101, -1.0021, 30.9105), (14.7569, 1.7723, 31.1089), (15.5191, -2.4475, 31.5782), (14.9019, 0.3349, 34.5254), (12.7192, 1.2219, 38.1235), (15.0561, 0.3415, 33.8189), (12.7219, -2.5515, 40.4100), (10.5242, 1.9662, 42.5168), (10.4792, 2.0891, 42.2567), (0.0000, 2.0470, 53.9201), (0.0000, 0.2544, 57.3686), (0.1687, -2.9360, 59.3338), (-2.9309, 1.3544, 58.6551), (2.8910, 1.2988, 58.6587), (-3.2023, 0.6265, 34.0350), (-4.0391, 1.5710, 17.8050), (-4.0397, 1.5717, 17.7929), (-4.8106, 2.3190, 2.7932), (-5.7917, -2.6525, 1.1317), (3.2023, 0.6265, 34.0350), (4.0391, 1.5710, 17.8050), (4.0397, 1.5717, 17.7929), (4.8126, 2.3193, 2.7932), (5.7785, -2.6555, 1.1308), (9.4332, -4.5916, 10.8366)]
bone_roll = [0.0, 1.570787787437439, 1.570793628692627, 1.5707937479019165, 1.5707995891571045, 2.448054790496826, 2.0719549655914307, 2.0719549655914307, 2.001661777496338, 1.5248111486434937, 0.9303989410400391, 0.8333582878112793, 1.476220965385437, 1.0526351928710938, 0.8287456035614014, 1.5330007076263428, 0.8673050999641418, 0.7014999389648438, 1.6245250701904297, 0.5573753118515015, 0.4753187596797943, 0.0513283871114254, 1.120506763458252, 0.05205177515745163, -2.393470048904419, -2.393470048904419, -2.393470048904419, -2.393470048904419, -2.393470048904419, -2.393470048904419, -2.393470048904419, 2.050299644470215, 2.0605175495147705, 2.142404317855835, 2.0719549655914307, 0.6675867438316345, 1.0696377754211426, 1.0696377754211426, 1.1400858163833618, 1.516361117362976, 2.1209864616394043, 2.2209081649780273, 1.6758452653884888, 2.096836805343628, 2.3193233013153076, 1.607820749282837, 2.280705690383911, 2.447523832321167, 1.509407639503479, 2.5617802143096924, 2.6433537006378174, -2.73917293548584, 2.603259563446045, -2.7491557598114014, -0.9329709410667419, 2.237051486968994, 2.2371537685394287, 1.1400858163833618, 1.0808696746826172, 1.0909115076065063, 0.011037744581699371, 1.1400858163833618, 1.0696378946304321, -1.5707945823669434, -1.570794939994812, -0.23339389264583588, -2.9624788761138916, 2.9143354892730713, 1.6252055168151855, 1.6239466667175293, 1.6252055168151855, 1.7050731182098389, 1.8955813646316528, 1.5163867473602295, 1.5176457166671753, 1.5163867473602295, 1.4281752109527588, 1.3248614072799683, -3.054738328955864e-08]
bone_parent = [None, "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone_Clip", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.weapon_bone_Clip2", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_Neck1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Head1", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Thigh", "ValveBiped.Bip01_R_Calf", "ValveBiped.Bip01_R_Foot", "ValveBiped.Bip01_Pelvis", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Thigh", "ValveBiped.Bip01_L_Calf", "ValveBiped.Bip01_L_Foot", "ValveBiped.Bip01_L_Calf"]
#Viewmodel
elif satproperties.game_armature_type == 'VM':
name = 'v_l4d_armature'
bone_name = ["ValveBiped.ValveBiped", "ValveBiped.Bip01", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger42", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger32", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger22", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Finger12", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Finger02", "ValveBiped.Bip01_L_wrist_helper2", "ValveBiped.Bip01_L_thumbroot", "ValveBiped.Bip01_L_wrist_helper1", "ValveBiped.Bip01_L_Driven_ulna", "ValveBiped.Bip01_L_Forearm_driven", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger42", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger32", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger22", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Finger12", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Finger02", "ValveBiped.Bip01_R_thumbroot", "ValveBiped.Bip01_R_wrist_helper1", "ValveBiped.Bip01_R_wrist_helper2", "ValveBiped.Bip01_R_Driven_ulna", "ValveBiped.Bip01_R_Forearm_driven", "ValveBiped.weapon_bone", "ValveBiped.attach_shell_eject", "ValveBiped.attach_muzzle", "ValveBiped.Camera", "ValveBiped.attach_camera"]
bone_head_location = [(0.0000, 0.0000, 0.0000), (0.0000, 0.5168, 38.3177), (0.0000, 0.5347, 42.3617), (0.0000, 0.8668, 46.3437), (0.0000, 1.8002, 49.9222), (0.0000, 3.3262, 55.4150), (1.5000, 1.0000, 59.0543), (6.4447, 2.7388, 57.3640), (11.6707, 1.9304, 47.8242), (16.5792, -0.1395, 38.8638), (17.4967, 1.0837, 35.8925), (17.7064, 1.1228, 34.3973), (17.3476, 1.1710, 33.6741), (17.9299, 0.1861, 35.8080), (18.0760, 0.1433, 34.0072), (17.6528, 0.0577, 33.1429), (18.0841, -0.7880, 35.6622), (18.3429, -0.9034, 33.5303), (17.7476, -0.9970, 32.5477), (18.0290, -1.8355, 35.6030), (18.3323, -1.9680, 33.9344), (17.8605, -1.9581, 33.0587), (15.9476, -1.4226, 37.5537), (16.4885, -2.1989, 35.9799), (16.6334, -2.5135, 34.8060), (15.4814, 0.0880, 39.2390), (16.1259, -1.2659, 38.6784), (16.2124, 0.9374, 39.3946), (14.9048, 0.5666, 41.9205), (13.2492, 1.2333, 44.9428), (-1.5000, 1.0000, 59.0543), (-6.4447, 2.7388, 57.3640), (-11.6707, 1.9304, 47.8242), (-16.5792, -0.1394, 38.8638), (-17.4968, 1.0837, 35.8925), (-17.7069, 1.1241, 34.3974), (-17.3484, 1.1728, 33.6742), (-17.9299, 0.1861, 35.8080), (-18.0763, 0.1453, 34.0072), (-17.6534, 0.0605, 33.1427), (-18.0841, -0.7880, 35.6623), (-18.3431, -0.9013, 33.5303), (-17.7479, -0.9942, 32.5475), (-18.0290, -1.8355, 35.6030), (-18.3323, -1.9667, 33.9343), (-17.8605, -1.9563, 33.0587), (-15.9476, -1.4226, 37.5537), (-16.4885, -2.1989, 35.9799), (-16.6334, -2.5134, 34.8060), (-15.9983, -1.1874, 38.5931), (-16.3295, 0.9387, 39.4564), (-15.5059, 0.1975, 39.2274), (-14.8229, 0.6012, 42.0700), (-13.1783, 1.2947, 45.0721), (-0.0000, -7.1017, 46.6806), (0.0000, -8.7124, 49.6844), (-0.0000, -15.4626, 46.7803), (0.0000, 0.0000, 56.0848), (0.0000, 0.0000, 56.0848)]
bone_tail_location = [(0.0000, 0.0000, 0.1909), (-0.0000, 0.3259, 38.3185), (0.0000, 0.3445, 42.3775), (0.0000, 0.6821, 46.3919), (0.0000, 1.6163, 49.9733), (0.0000, 3.1401, 55.3726), (1.5647, 0.9905, 59.2337), (6.4515, 2.9292, 57.3515), (11.6889, 2.1175, 47.7909), (16.7538, -0.1037, 38.9321), (17.6857, 1.0764, 35.9188), (17.8771, 1.1174, 34.3122), (17.4844, 1.1795, 33.5413), (18.1200, 0.1786, 35.8236), (18.2474, 0.1444, 33.9232), (17.7991, 0.0543, 33.0204), (18.2735, -0.7926, 35.6855), (18.5062, -0.9053, 33.4316), (17.8935, -1.0017, 32.4248), (18.2168, -1.8376, 35.6372), (18.4992, -1.9887, 33.8443), (18.0244, -1.9789, 32.9631), (15.9346, -1.5951, 37.6343), (16.4861, -2.3833, 36.0290), (16.6267, -2.6848, 34.8899), (15.3942, 0.0885, 39.4088), (16.1160, -1.0988, 38.5868), (16.2026, 1.1046, 39.3029), (15.0789, 0.6018, 41.9903), (13.4231, 1.2697, 45.0125), (-1.5685, 0.9770, 59.2310), (-6.4515, 2.9292, 57.3516), (-11.6889, 2.1175, 47.7910), (-16.7539, -0.1043, 38.9322), (-17.6857, 1.0765, 35.9189), (-17.8777, 1.1188, 34.3124), (-17.4853, 1.1815, 33.5414), (-18.1200, 0.1786, 35.8236), (-18.2477, 0.1465, 33.9233), (-17.7997, 0.0572, 33.0202), (-18.2735, -0.7926, 35.6855), (-18.5064, -0.9031, 33.4315), (-17.8938, -0.9987, 32.4246), (-18.2168, -1.8376, 35.6372), (-18.4992, -1.9873, 33.8442), (-18.0244, -1.9770, 32.9630), (-15.9346, -1.5951, 37.6344), (-16.4861, -2.3833, 36.0290), (-16.6267, -2.6848, 34.8899), (-15.9704, -1.3559, 38.6784), (-16.3160, 0.7661, 39.5369), (-15.4141, 0.1980, 39.3947), (-14.9971, 0.6356, 42.1399), (-13.3522, 1.3308, 45.1419), (0.0000, -7.1017, 46.8715), (0.0000, -8.5216, 49.6844), (-0.0000, -15.4626, 46.9712), (0.0000, 0.0000, 56.2757), (0.0000, 0.0000, 56.2757)]
bone_roll = [0.0, 1.5709034204483032, 1.5707907676696777, 1.5707945823669434, 1.5707948207855225, 1.570798635482788, 0.6675875782966614, 1.0696381330490112, 1.0696381330490112, 1.121449589729309, 1.4583861827850342, 2.092649459838867, 2.2312283515930176, 1.465253233909607, 1.9378304481506348, 2.1903090476989746, 1.3950283527374268, 2.0333645343780518, 2.2038958072662354, 1.3122093677520752, 2.076056718826294, 2.1515886783599854, -1.574307918548584, -1.5466639995574951, -1.6492857933044434, -0.48708170652389526, -1.8882553577423096, -1.8882553577423096, 1.110538363456726, 1.1109672784805298, 2.448054552078247, 2.0719549655914307, 2.0719552040100098, 2.0203683376312256, 1.6826533079147339, 1.0486289262771606, 0.9103020429611206, 1.675394058227539, 1.2031103372573853, 0.9508091807365417, 1.7456680536270142, 1.1076323986053467, 0.9372096657752991, 1.8286226987838745, 1.0649337768554688, 0.9894216060638428, -1.5672906637191772, -1.594940423965454, -1.4923118352890015, -1.1031330823898315, -1.5544594526290894, 0.6535061597824097, 2.0309557914733887, 2.03072190284729, 2.5545904236423667e-07, -1.5707957744598389, -1.5707956552505493, 0.0, -1.570796012878418]
bone_parent = [None, "ValveBiped.ValveBiped", "ValveBiped.Bip01", "ValveBiped.Bip01_Spine", "ValveBiped.Bip01_Spine1", "ValveBiped.Bip01_Spine2", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_L_Clavicle", "ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Finger0", "ValveBiped.Bip01_L_Finger01", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Hand", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_L_Forearm", "ValveBiped.Bip01_Spine4", "ValveBiped.Bip01_R_Clavicle", "ValveBiped.Bip01_R_UpperArm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Finger0", "ValveBiped.Bip01_R_Finger01", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Hand", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01_R_Forearm", "ValveBiped.Bip01", "ValveBiped.weapon_bone", "ValveBiped.weapon_bone", "ValveBiped.ValveBiped", "ValveBiped.Camera"]
elif satproperties.game_armature == 'SBOX':
if satproperties.game_armature_type == 'PM':
name = 'sbox_armature'
bone_name = ["pelvis", "spine_0", "spine_1", "spine_2", "neck_0", "head", "eye_L", "eye_R", "face_lid_lower_R", "face_lid_lower_L", "face_lid_upper_L", "face_lid_upper_R", "clavicle_L", "arm_upper_L", "arm_lower_L", "arm_lower_L_twist", "hand_L", "finger_thumb_0_L", "finger_thumb_1_L", "finger_thumb_2_L", "finger_index_meta_L", "finger_index_0_L", "finger_index_1_L", "finger_index_2_L", "finger_middle_meta_L", "finger_middle_0_L", "finger_middle_1_L", "finger_middle_2_L", "finger_ring_meta_L", "finger_ring_0_L", "finger_ring_1_L", "finger_ring_2_L", "hold_L", "hand_R_to_L_ikrule", "arm_upper_L_twist", "arm_elbow_helper_L", "clavicle_R", "arm_upper_R", "arm_lower_R", "arm_lower_R_twist", "hand_R", "finger_thumb_0_R", "finger_thumb_1_R", "finger_thumb_2_R", "finger_index_meta_R", "finger_index_0_R", "finger_index_1_R", "finger_index_2_R", "finger_middle_meta_R", "finger_middle_0_R", "finger_middle_1_R", "finger_middle_2_R", "finger_ring_meta_R", "finger_ring_0_R", "finger_ring_1_R", "finger_ring_2_R", "hold_R", "hand_L_to_R_ikrule", "arm_upper_R_twist", "arm_elbow_helper_R", "leg_upper_R", "leg_upper_R_twist", "leg_lower_R", "leg_lower_R_twist", "ankle_R", "ball_R", "leg_knee_helper_R", "leg_upper_L", "leg_upper_L_twist", "leg_lower_L", "leg_lower_L_twist", "ankle_L", "ball_L", "leg_knee_helper_L", "root_IK", "foot_R_IK_target", "foot_L_IK_target", "hand_R_IK_target", "hand_L_IK_target"]
bone_head_location = [(0.0000, -3.2171, 78.9271), (-0.0003, -3.2109, 88.8886), (-0.0001, -3.2092, 103.1392), (-0.0000, -3.2154, 117.3897), (-0.0000, -2.9870, 132.1728), (-0.0000, -2.5352, 143.6214), (8.2160, -15.5921, 161.1700), (-8.2160, -15.5920, 161.1700), (-8.2160, -15.5920, 161.1700), (8.2160, -15.5921, 161.1700), (8.2160, -15.5921, 161.1700), (-8.2160, -15.5920, 161.1700), (2.8094, -3.9203, 127.6447), (18.1308, -0.1892, 128.5402), (37.1373, 0.3144, 111.5253), (44.4700, -2.3329, 105.6077), (51.8027, -4.9802, 99.6901), (51.1472, -9.8459, 97.1431), (51.3334, -14.1263, 94.8858), (52.2589, -17.9051, 91.1031), (53.9518, -9.6649, 96.2996), (59.1364, -13.8993, 92.3056), (61.1339, -15.6710, 87.1571), (60.8311, -16.1826, 83.1510), (55.1119, -6.4519, 95.6847), (60.7899, -8.8553, 91.2103), (63.2936, -10.6369, 85.4770), (63.0529, -11.3658, 81.2715), (56.1309, -3.4031, 95.0914), (61.0544, -4.1010, 89.9208), (63.1145, -5.3764, 84.8909), (62.5717, -6.1763, 81.1126), (55.0000, -11.0000, 85.0000), (-51.8027, -4.9799, 99.6901), (19.6206, -0.1497, 127.2065), (37.1373, 0.3144, 111.5253), (-2.8094, -3.9203, 127.6447), (-18.1308, -0.1890, 128.5403), (-37.1373, 0.3147, 111.5253), (-44.4700, -2.3326, 105.6077), (-51.8027, -4.9799, 99.6901), (-51.1473, -9.8456, 97.1432), (-51.3335, -14.1260, 94.8858), (-52.2591, -17.9047, 91.1031), (-53.9518, -9.6645, 96.2997), (-59.1364, -13.8990, 92.3056), (-61.1340, -15.6706, 87.1571), (-60.8310, -16.1822, 83.1510), (-55.1119, -6.4516, 95.6847), (-60.7899, -8.8550, 91.2104), (-63.2937, -10.6365, 85.4770), (-63.0528, -11.3653, 81.2715), (-56.1309, -3.4027, 95.0915), (-61.0544, -4.1006, 89.9209), (-63.1145, -5.3760, 84.8910), (-62.5715, -6.1759, 81.1127), (-55.0000, -11.0000, 85.0000), (51.8028, -4.9802, 99.6901), (-19.6206, -0.1495, 127.2065), (-37.1373, 0.3147, 111.5254), (-11.2456, -2.1339, 78.1952), (-11.2456, -2.1339, 76.1952), (-11.2456, -2.1339, 41.4404), (-11.2456, -1.5527, 25.5563), (-11.2456, -0.9716, 9.6721), (-11.2456, -8.7865, 1.5796), (-11.2456, -2.1339, 41.4404), (11.2456, -2.1339, 78.1953), (11.2456, -2.1339, 76.1953), (11.2456, -2.1338, 41.4404), (11.2456, -1.5527, 25.5563), (11.2457, -0.9715, 9.6721), (11.2457, -8.7864, 1.5796), (11.2456, -2.1338, 41.4404), (0.0000, -3.2171, -0.0000), (-11.2456, -0.9716, 9.6721), (11.2457, -0.9715, 9.6721), (-51.8027, -4.9799, 99.6901), (51.8027, -4.9802, 99.6901)]
bone_tail_location = [(0.0000, -14.0852, 78.9271), (0.0071, -17.4614, 88.8903), (-0.0041, -17.4598, 103.1330), (0.0018, -15.2478, 117.3823), (-0.0001, -14.4358, 132.6226), (-0.0002, -25.9005, 143.6214), (8.2160, -15.5921, 184.5353), (-8.2160, -15.5920, 184.5353), (-13.1496, -32.7975, 146.1511), (13.1495, -32.7976, 146.1511), (4.0763, -1.1549, 179.0688), (-4.0762, -1.1549, 179.0688), (6.5337, -19.2679, 127.8705), (20.3643, -17.6120, 130.5194), (35.7001, -13.6036, 115.9708), (43.0328, -16.2509, 110.0532), (45.1755, -27.3577, 104.8483), (46.7512, -9.0512, 95.2736), (46.4076, -13.2358, 92.7910), (47.3331, -17.0146, 89.0083), (50.0902, -16.1691, 98.1827), (56.7097, -19.0983, 93.1530), (59.4394, -19.3015, 87.7489), (59.1366, -19.8132, 83.7428), (53.1238, -13.6793, 97.0439), (59.0737, -15.0205, 92.3765), (62.1657, -14.6885, 86.2437), (61.9251, -15.4175, 82.0379), (56.0924, -10.5171, 96.0149), (60.6442, -9.5358, 91.1309), (62.8283, -9.1731, 85.7358), (62.2857, -9.9730, 81.9576), (78.9015, -11.0000, 85.0000), (-45.1755, -27.3575, 104.8483), (21.8541, -17.5726, 129.1857), (50.4906, -1.9266, 100.1618), (-6.5338, -19.2678, 127.8705), (-20.3643, -17.6119, 130.5195), (-35.7002, -13.6033, 115.9708), (-43.0329, -16.2506, 110.0532), (-45.1755, -27.3575, 104.8483), (-46.7512, -9.0509, 95.2737), (-46.4076, -13.2355, 92.7910), (-47.3332, -17.0143, 89.0083), (-50.0902, -16.1687, 98.1828), (-56.7097, -19.0979, 93.1531), (-59.4394, -19.3011, 87.7489), (-59.1365, -19.8128, 83.7428), (-53.1237, -13.6790, 97.0439), (-59.0737, -15.0201, 92.3766), (-62.1658, -14.6881, 86.2438), (-61.9250, -15.4170, 82.0379), (-56.0923, -10.5167, 96.0150), (-60.6442, -9.5355, 91.1310), (-62.8283, -9.1727, 85.7358), (-62.2855, -9.9725, 81.9576), (-31.0984, -11.0000, 85.0000), (45.1755, -27.3577, 104.8483), (-21.8541, -17.5724, 129.1857), (-50.4906, -1.9262, 100.1618), (-11.2456, -27.3038, 78.1952), (-11.2456, -27.3038, 76.1952), (-11.2455, -25.9601, 40.5687), (-11.2455, -25.3789, 24.6845), (-11.2456, -9.0641, 17.4870), (-11.2456, -8.7865, 12.8296), (-11.2455, -2.5951, 66.6061), (11.2455, -27.3038, 78.1953), (11.2455, -27.3038, 76.1953), (11.2456, -25.9600, 40.5687), (11.2456, -25.3789, 24.6846), (11.2456, -9.0641, 17.4871), (11.2456, -8.7864, 12.8296), (11.2458, -2.5950, 66.6061), (63.6809, -3.2171, -0.0000), (-11.2455, -46.7797, 53.9087), (11.2454, -46.7796, 53.9087), (-34.1459, -64.6005, 113.4331), (34.1457, -64.6007, 113.4331)]
bone_roll = [-1.5707981586456299, -1.1361292600631714, 0.43135473132133484, 2.0375797748565674, 1.5704361200332642, -1.5707966089248657, -1.5707943439483643, -1.5707948207855225, -0.8338013291358948, -2.307778835296631, -1.4399160146713257, -1.7016806602478027, 3.0789084434509277, 0.9628534317016602, -1.3285678625106812, -1.3285688161849976, -2.5560238361358643, 2.2794346809387207, 1.952462077140808, 1.783874750137329, -2.857706069946289, 2.667210340499878, 2.195834159851074, 2.168348550796509, -2.6061768531799316, -3.0830461978912354, 2.7316477298736572, 2.634901762008667, -0.897435188293457, -1.837294340133667, -2.3558077812194824, -2.456378698348999, 1.5707952976226807, -0.585578978061676, 0.9628562927246094, -2.6063694953918457, 0.06268036365509033, 2.1786949634552, -1.8130466938018799, -1.8130464553833008, -0.5855756998062134, 0.8621494770050049, 1.189125895500183, 1.3577253818511963, -0.28389737010002136, 0.4743553400039673, 0.9457502961158752, 0.9732611775398254, -0.535419225692749, -0.05855764448642731, 0.40993770956993103, 0.5067326426506042, -2.2441210746765137, -1.304271936416626, -0.7857927680015564, -0.6852044463157654, 1.5707972049713135, -2.556030035018921, 2.1786997318267822, -0.5352205038070679, 1.5707969665527344, 1.5707969665527344, -1.5709887742996216, -1.5709887742996216, -1.5707916021347046, -1.5707937479019165, -1.570792317390442, 1.5707968473434448, 1.5707964897155762, -1.570647120475769, -1.570664644241333, -1.5708087682724, -1.5707926750183105, -1.5707908868789673, 1.6473418895657232e-07, -1.5707919597625732, -1.5708087682724, -0.5855777263641357, -2.5560250282287598]
bone_parent = [None, "pelvis", "spine_0", "spine_1", "spine_2", "neck_0", "head", "head", "head", "head", "head", "head", "spine_2", "clavicle_L", "arm_upper_L", "arm_lower_L", "arm_lower_L", "hand_L", "finger_thumb_0_L", "finger_thumb_1_L", "hand_L", "finger_index_meta_L", "finger_index_0_L", "finger_index_1_L", "hand_L", "finger_middle_meta_L", "finger_middle_0_L", "finger_middle_1_L", "hand_L", "finger_ring_meta_L", "finger_ring_0_L", "finger_ring_1_L", "hand_L", "hand_L", "arm_upper_L", "arm_upper_L", "spine_2", "clavicle_R", "arm_upper_R", "arm_lower_R", "arm_lower_R", "hand_R", "finger_thumb_0_R", "finger_thumb_1_R", "hand_R", "finger_index_meta_R", "finger_index_0_R", "finger_index_1_R", "hand_R", "finger_middle_meta_R", "finger_middle_0_R", "finger_middle_1_R", "hand_R", "finger_ring_meta_R", "finger_ring_0_R", "finger_ring_1_R", "hand_R", "hand_R", "arm_upper_R", "arm_upper_R", "pelvis", "leg_upper_R", "leg_upper_R", "leg_lower_R", "leg_lower_R", "ankle_R", "leg_upper_R", "pelvis", "leg_upper_L", "leg_upper_L", "leg_lower_L", "leg_lower_L", "ankle_L", "leg_upper_L", "root_IK", "root_IK", "root_IK", "root_IK"]
elif satproperties.game_armature_type == 'VM':
name = 'v_sbox_armature'
bone_name = []
bone_head_location = []
bone_tail_location = []
bone_roll = []
bone_parent = []
if type == 0:
armature_data = bpy.data.armatures.new('generated_armature')
object = bpy.data.objects.new('generated_armature', armature_data)
satinfo.generated_armature_name = object.name
bpy.context.scene.collection.objects.link(object)
else:
object = bpy.data.objects[satinfo.generated_armature_name]
armature_data = object.data
current_mode = bpy.context.object.mode
selected_objects = bpy.context.selected_objects
active_object = bpy.context.view_layer.objects.active
bpy.ops.object.mode_set(mode='OBJECT')
bpy.ops.object.select_all(action='DESELECT') #You're required to be in edit mode to use 'data.edit_bones', else there will be no bone info given.
object.select_set(True)
bpy.context.view_layer.objects.active = object
bpy.ops.object.mode_set(mode='EDIT')
#Replaces old bones by new ones
if type == 1:
if armature_data.edit_bones:
for bone in armature_data.edit_bones:
armature_data.edit_bones.remove(bone)
if satproperties.game_armature == 'SBOX':
armature_data.display_type = 'OCTAHEDRAL'
object.scale = 0.01,0.01,0.01
else:
armature_data.display_type = 'STICK'
object.scale = 1,1,1
for name, head, tail, roll, parent in zip(bone_name, bone_head_location, bone_tail_location, bone_roll, bone_parent):
bone = armature_data.edit_bones.new(name)
bone.head = head
bone.tail = tail
bone.roll = roll
if parent:
parent = armature_data.edit_bones[parent]
bone.parent = parent
#Reselects all previous objects
for object in selected_objects:
object.select_set(True)
bpy.context.view_layer.objects.active = active_object
bpy.ops.object.mode_set(mode=current_mode)