-
Notifications
You must be signed in to change notification settings - Fork 0
/
skins.cfg
270 lines (212 loc) · 6.07 KB
/
skins.cfg
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
skins = [showgui skins]
//test = [instateam complex; spectator 1; addbot 80; addbot 80]
vanilla = [
red
green
blue
]
pyccna = [
red
grey
blue
]
ao1 = [
red
grey
blue
]
ogros_snout = [
red
green
blue
pink
yellow
neon
]
sw_snout = [
red
green
blue
pink
yellow
cyan
white
]
sw_ogro = [
red
green
blue
pink
yellow
cyan
]
misc_ogro = [
red
green
blue
goldblue
goldred
bronze
bw
grey
]
misc2_ogro = [
pink
yellow
white
violet
viogreen
colgreen
colviolet
colyellow
]
// 0 = default, 1 = blue, 2 = red
_skinteam = 0
_skinname = "vanilla"
_skincolor = "red"
guiitemmove = [guialign $arg1 [guistrut @arg2; guilist [guistrut @arg3; @arg4]]]
_setskin = [
_skinname = $arg1
_skinteam = $arg2
_skincolor = $arg3
]
_skinteamnames = [
"neutral"
"team"
"enemy"
]
_skinteamcolors = [
"0"
"1"
"3"
]
_selskin = 0
newgui skins [
guibutton "ogro" [ _selskin = 0; showgui "neutral (ogro)" ]
guibutton "snoutx10k" [ _selskin = 1; showgui "neutral (snout)" ]
]
newgui "neutral (ogro)" [
loop i 3 [
if (= $i 0) [] [guitab (concatword "^f" (at $_skinteamcolors $i) (at $_skinteamnames $i))]
guilist [
guilist [
guitext (concatword "^f" (at $_skinteamcolors $i) vanilla)
looplist var $vanilla [
guibutton $var [
_setskin "vanilla" @i @var
showgui "saveskin ogro"
] "action"
]
]
guilist [
guitext (concatword "^f" (at $_skinteamcolors $i) sauerworld)
looplist var $sw_ogro [
guibutton $var [
_setskin "sw" @i @var
showgui "saveskin ogro"
] "action"
]
]
guilist [
guitext (concatword "^f" (at $_skinteamcolors $i) misc)
looplist var $misc_ogro [
guibutton $var [
_setskin "misc" @i @var
showgui "saveskin ogro"
] "action"
]
]
guilist [
guitext (concatword "^f" (at $_skinteamcolors $i) "misc 2")
looplist var $misc2_ogro [
guibutton $var [
_setskin "misc" @i @var
showgui "saveskin ogro"
] "action"
]
]
]
]
]
newgui "neutral (snout)" [
loop i 3 [
if (= $i 0) [] [guitab (concatword "^f" (at $_skinteamcolors $i) (at $_skinteamnames $i))]
guilist [
guilist [
guitext (concatword "^f" (at $_skinteamcolors $i) vanilla)
looplist var $vanilla [
guibutton $var [
_setskin "vanilla" @i @var
showgui saveskin
] "action"
]
]
guilist [
guitext (concatword "^f" (at $_skinteamcolors $i) pyccna)
looplist var $pyccna [
guibutton $var [
_setskin "pyccna" @i @var
showgui saveskin
] "action"
]
]
guilist [
guitext (concatword "^f" (at $_skinteamcolors $i) Ao1)
looplist var $ao1 [
guibutton $var [
_setskin "Ao1" @i @var
showgui saveskin
] "action"
]
]
guilist [
guitext (concatword "^f" (at $_skinteamcolors $i) ogros.org)
looplist var $ogros_snout [
guibutton $var [
_setskin "ogros" @i @var
showgui saveskin
] "action"
]
]
guilist [
guitext (concatword "^f" (at $_skinteamcolors $i) sauerworld)
looplist var $sw_snout [
guibutton $var [
_setskin "sw" @i @var
showgui saveskin
] "action"
]
]
]
]
]
newgui "saveskin ogro" [
guitext "Apply changes?"
guibutton "yes" [
textfocus _ogrocfg
if (=s $textshow "")[
echo "^f3Could not save it, try again"
] [
textsave (format "packages/models/ogro2/%1iqm.cfg" (at ["" "blue/" "red/"] $_skinteam))
clearmodel (concatword "ogro2" (at ["" "/blue" "/red"] @_skinteam))
]
]
guibutton "no" [showgui "neutral (ogro)"] "action"
_ogrocfg = (concatword (? (= $_skinteam 0) "" "iqmdir ^"ogro2^"^n" ) "iqmload ^"ogro.iqm^" ogro^nexec ^"packages/models/ogro2/ragdoll.cfg^"^niqmskin * ^"" $_skinname / $_skincolor ".jpg^" ^"masks.jpg^"^niqmtag Tag.L tag_weapon^niqmtag Forearm.R tag_shield 0.05 -0.4 0 -80 0 -90^niqmtag Chest tag_powerup -0.55 -0.25 -0.25 70 170 -25^nexec ^"packages/models/ogro2/anims.cfg^"^nmdlspec 150^nmdlambient 50^nmdlglare 1 0^nmdltrans 0 0 1.43^nmdlscale 1800^nmdlextendbb 0 6 1")
guiitemmove -1 -500 0 [guifield _ogrocfg 1]
]
newgui saveskin [
guitext "Apply changes?"
guibutton "yes" [
textfocus _md5cfg
if (=s $textshow "")[
echo "^f3Could not save it, try again"
] [
textsave (format "packages/models/snoutx10k/%1md5.cfg" (at ["" "blue/" "red/"] $_skinteam))
clearmodel (concatword "snoutx10k" (at ["" "/blue" "/red"] @_skinteam))
]
]
guibutton "no" [showgui neutral] "action"
_md5cfg = (concatword "md5dir ^"snoutx10k^"^nmd5load ^"snoutx10k.md5mesh^" mrfixit^nexec ^"packages/models/mrfixit/ragdoll.cfg^"^nmd5tag Weapon tag_weapon^nmd5skin Upper ^"" $_skinname / $_skincolor "/upper.png^" ^"" $_skinname "/upper_mask.png^" .4 .1^nmd5bumpmap Upper ^"upper_normals.png^"^nmd5skin Lower ^"" $_skinname / $_skincolor "/lower.png^" ^"" $_skinname "/lower_mask.png^" .4 .1^nmd5bumpmap Lower ^"lower_normals.png^" ^nexec ^"packages/models/mrfixit/anims.cfg^"^nmdlscale 800^nmdlspec 175^nmdlenvmap 0 0 skyboxes/morning")
guiitemmove -1 -500 0 [guifield _md5cfg 1]
]