summaryrefslogtreecommitdiff
path: root/assets/scripts/hw_humans.shader
blob: d770301a3bf4a4075b21506716e9bd4d050e2e0f (plain)
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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
models/weapons/mdriver/mdriver
{
	cull disable
	{
		map models/weapons/mdriver/mdriver.jpg
		rgbGen lightingDiffuse
	}
	{
		map $whiteimage
		rgbGen lightingDiffuse
		blendFunc GL_DST_COLOR GL_SRC_ALPHA
		detail
		alphaGen lightingSpecular
	}
	{
		map models/buildables/mgturret/ref_map.jpg
		blendFunc GL_DST_COLOR GL_ONE
		detail
		tcGen environment
	}
}

gfx/mdriver/trail
{
  nomipmaps
  cull disable
  {
    map gfx/mdriver/trail.tga
    blendFunc blend
  }
}

gfx/mdriver/purple_trail
{
  cull disable
  {
    map gfx/mdriver/purple_trail.tga
    blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    rgbGen vertex
    alphaGen vertex
  }
}

//for new mine model
models/weapons/newmine
{  

  {
    map models/weapons/mine/mine.jpg
  }
  	{	//red blinking
		map models/weapons/mine/mine_blend.jpg
		blendfunc add
	    depthWrite
		//rgbGen lightingDiffuse
		rgbGen wave triangle 0.5 1 1 0.8
	}
}

models/weapons/psaw/blade
{
	sort additive
	cull disable
	{
		map models/weapons/psaw/blade.tga
		alphaFunc GE128
		depthWrite
		rgbGen lightingDiffuse
		tcMod rotate 500
		
	}
}

//new flamer shaders
textures/yeflamer/flamesadd
{
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull disable
	deformvertexes autosprite


	{
		animMap 10 textures/flamer_ye/flame1.tga textures/flamer_ye/flame2.tga textures/flamer_ye/flame3.tga textures/flamer_ye/flame4.tga textures/flamer_ye/flame5.tga textures/flamer_ye/flame6.tga textures/flamer_ye/flame7.tga textures/flamer_ye/flame8.tga
		blendFunc add
	}
	{
		map textures/flamer_ye/flameball.tga
		blendFunc add
	}
}

gfx/sprites/firecloud
{

	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm trans
	cull disable
	deformvertexes autosprite


	{
		animMap 10 textures/flamer_ye/flame1.tga textures/flamer_ye/flame2.tga textures/flamer_ye/flame3.tga textures/flamer_ye/flame4.tga textures/flamer_ye/flame5.tga textures/flamer_ye/flame6.tga textures/flamer_ye/flame7.tga textures/flamer_ye/flame8.tga
		blendFunc add
	}
	{
		map textures/flamer_ye/flameball.tga
		blendFunc add
	}
}

//for flamer napalm mode
gfx/flamer/trail
{  
  cull disable
  {
    map textures/flamer_ye/trail.tga
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    alphaGen vertex
  }
}


gfx/flamer/primarycharge
{  
  cull disable
  {
    animmap 3 gfx/flamer/primarycharge_1.jpg gfx/flamer/primarycharge_2.jpg gfx/flamer/primarycharge_3.jpg gfx/flamer/primarycharge_4.jpg gfx/flamer/primarycharge_5.jpg gfx/flamer/primarycharge_6.jpg gfx/flamer/primarycharge_7.jpg gfx/flamer/primarycharge_8.jpg gfx/flamer/primarycharge_9.jpg gfx/flamer/primarycharge_10.jpg gfx/flamer/primarycharge_11.jpg gfx/flamer/primarycharge_10.jpg gfx/flamer/primarycharge_9.jpg gfx/flamer/primarycharge_8.jpg gfx/flamer/primarycharge_7.jpg gfx/flamer/primarycharge_6.jpg gfx/flamer/primarycharge_5.jpg gfx/flamer/primarycharge_4.jpg gfx/flamer/primarycharge_3.jpg gfx/flamer/primarycharge_2.jpg gfx/flamer/primarycharge_1.jpg             
		blendFunc GL_ONE GL_ONE
	    tcmod rotate 500
  }
    {
    animmap 6 gfx/flamer/primarycharge_1.jpg gfx/flamer/primarycharge_2.jpg gfx/flamer/primarycharge_3.jpg gfx/flamer/primarycharge_4.jpg gfx/flamer/primarycharge_5.jpg gfx/flamer/primarycharge_6.jpg gfx/flamer/primarycharge_7.jpg gfx/flamer/primarycharge_8.jpg gfx/flamer/primarycharge_9.jpg gfx/flamer/primarycharge_10.jpg gfx/flamer/primarycharge_11.jpg gfx/flamer/primarycharge_10.jpg gfx/flamer/primarycharge_9.jpg gfx/flamer/primarycharge_8.jpg gfx/flamer/primarycharge_7.jpg gfx/flamer/primarycharge_6.jpg gfx/flamer/primarycharge_5.jpg gfx/flamer/primarycharge_4.jpg gfx/flamer/primarycharge_3.jpg gfx/flamer/primarycharge_2.jpg gfx/flamer/primarycharge_1.jpg             
		blendFunc GL_ONE GL_ONE
	    tcmod rotate 300
  }
}

flame1
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame00.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame2
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame01.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame3
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame02.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame4
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame03.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame5
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame04.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame6
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame05.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame7
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame06.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame8
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame07.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame9
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame08.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame10
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame09.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame11
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame10.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame12
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame11.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame13
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame12.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame14
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame13.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame15
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame14.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame16
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame15.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame17
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame16.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame18
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame17.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame19
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame18.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame20
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame19.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame21
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame20.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame22
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame21.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame23
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame22.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame24
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame23.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

flame25
{
	nopicmip
	cull disable
  {
    map gfx/flame/flame24.tga
    blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}


radialmark
{  
polygonoffset
  {
    map gfx/sprites/radial.tga
    blendFunc add
  }
}

gfx/flamer/primarycharge
{  
  cull disable
  {
    animmap 3 gfx/flamer/primarycharge_1.jpg gfx/flamer/primarycharge_2.jpg gfx/flamer/primarycharge_3.jpg gfx/flamer/primarycharge_4.jpg gfx/flamer/primarycharge_5.jpg gfx/flamer/primarycharge_6.jpg gfx/flamer/primarycharge_7.jpg gfx/flamer/primarycharge_8.jpg gfx/flamer/primarycharge_9.jpg gfx/flamer/primarycharge_10.jpg gfx/flamer/primarycharge_11.jpg gfx/flamer/primarycharge_10.jpg gfx/flamer/primarycharge_9.jpg gfx/flamer/primarycharge_8.jpg gfx/flamer/primarycharge_7.jpg gfx/flamer/primarycharge_6.jpg gfx/flamer/primarycharge_5.jpg gfx/flamer/primarycharge_4.jpg gfx/flamer/primarycharge_3.jpg gfx/flamer/primarycharge_2.jpg gfx/flamer/primarycharge_1.jpg             
		blendFunc GL_ONE GL_ONE
	    tcmod rotate 500
  }
    {
    animmap 6 gfx/flamer/primarycharge_1.jpg gfx/flamer/primarycharge_2.jpg gfx/flamer/primarycharge_3.jpg gfx/flamer/primarycharge_4.jpg gfx/flamer/primarycharge_5.jpg gfx/flamer/primarycharge_6.jpg gfx/flamer/primarycharge_7.jpg gfx/flamer/primarycharge_8.jpg gfx/flamer/primarycharge_9.jpg gfx/flamer/primarycharge_10.jpg gfx/flamer/primarycharge_11.jpg gfx/flamer/primarycharge_10.jpg gfx/flamer/primarycharge_9.jpg gfx/flamer/primarycharge_8.jpg gfx/flamer/primarycharge_7.jpg gfx/flamer/primarycharge_6.jpg gfx/flamer/primarycharge_5.jpg gfx/flamer/primarycharge_4.jpg gfx/flamer/primarycharge_3.jpg gfx/flamer/primarycharge_2.jpg gfx/flamer/primarycharge_1.jpg             
		blendFunc GL_ONE GL_ONE
	    tcmod rotate 300
  }
}