Xonotic
effectinfo_gentle.inc
Go to the documentation of this file.
1 // cl_gentle impact effect indicating damage
2 // NOTE: maintained by div0, make your own new effect instead of changing this one without asking!
3 DEF(damage_hit);
4 SUB(damage_hit) {
5  MY(airfriction) = 5;
6  MY(alpha_min) = 128;
7  MY(alpha_max) = 128;
8  MY(alpha_fade) = 192;
9  MY(bounce) = 1.500000;
10  MY(color_min) = "0x00FFFF";
11  MY(color_max) = "0xFF00FF";
12  MY(count) = 0.500000;
13  MY(gravity) = -0.400000;
14  MY(liquidfriction) = 10;
15  MY(sizeincrease) = -24;
16  MY(size_min) = 16;
17  MY(size_max) = 16;
18  MY(tex_min) = 48;
19  MY(tex_max) = 55;
20  MY(type) = "alphastatic";
21  MY(velocityjitter) = '256.0 256.0 256.0';
22 }
23 SUB(damage_hit) {
24  MY(airfriction) = 5;
25  MY(alpha_min) = 128;
26  MY(alpha_max) = 128;
27  MY(alpha_fade) = 192;
28  MY(bounce) = 1.500000;
29  MY(color_min) = "0xFF00FF";
30  MY(color_max) = "0xFFFF00";
31  MY(count) = 0.500000;
32  MY(gravity) = -0.400000;
33  MY(liquidfriction) = 10;
34  MY(sizeincrease) = -24;
35  MY(size_min) = 16;
36  MY(size_max) = 16;
37  MY(tex_min) = 48;
38  MY(tex_max) = 55;
39  MY(type) = "alphastatic";
40  MY(velocityjitter) = '256.0 256.0 256.0';
41 }
42 SUB(damage_hit) {
43  MY(airfriction) = 5;
44  MY(alpha_min) = 128;
45  MY(alpha_max) = 128;
46  MY(alpha_fade) = 192;
47  MY(bounce) = 1.500000;
48  MY(color_min) = "0xFFFF00";
49  MY(color_max) = "0x00FFFF";
50  MY(count) = 0.500000;
51  MY(gravity) = -0.400000;
52  MY(liquidfriction) = 10;
53  MY(sizeincrease) = -24;
54  MY(size_min) = 16;
55  MY(size_max) = 16;
56  MY(tex_min) = 48;
57  MY(tex_max) = 55;
58  MY(type) = "alphastatic";
59  MY(velocityjitter) = '256.0 256.0 256.0';
60 }
61 
62 // effect for removing player model
63 DEF(damage_dissolve);
64 // large sparks
65 SUB(damage_dissolve) {
66  MY(airfriction) = 3;
67  MY(alpha_min) = 256;
68  MY(alpha_max) = 256;
69  MY(alpha_fade) = 128;
70  MY(bounce) = 1.500000;
71  MY(color_min) = "0x00FFFF";
72  MY(color_max) = "0xFF00FF";
73  MY(count) = 15;
74  MY(gravity) = -0.400000;
75  MY(liquidfriction) = 6;
76  MY(sizeincrease) = -16;
77  MY(size_min) = 32;
78  MY(size_max) = 32;
79  MY(tex_min) = 48;
80  MY(tex_max) = 55;
81  MY(type) = "alphastatic";
82  MY(velocityjitter) = '512.0 512.0 512.0';
83 }
84 SUB(damage_dissolve) {
85  MY(airfriction) = 3;
86  MY(alpha_min) = 256;
87  MY(alpha_max) = 256;
88  MY(alpha_fade) = 128;
89  MY(bounce) = 1.500000;
90  MY(color_min) = "0xFF00FF";
91  MY(color_max) = "0xFFFF00";
92  MY(count) = 15;
93  MY(gravity) = -0.400000;
94  MY(liquidfriction) = 6;
95  MY(sizeincrease) = -16;
96  MY(size_min) = 32;
97  MY(size_max) = 32;
98  MY(tex_min) = 48;
99  MY(tex_max) = 55;
100  MY(type) = "alphastatic";
101  MY(velocityjitter) = '512.0 512.0 512.0';
102 }
103 SUB(damage_dissolve) {
104  MY(airfriction) = 3;
105  MY(alpha_min) = 256;
106  MY(alpha_max) = 256;
107  MY(alpha_fade) = 128;
108  MY(bounce) = 1.500000;
109  MY(color_min) = "0xFFFF00";
110  MY(color_max) = "0x00FFFF";
111  MY(count) = 15;
112  MY(gravity) = -0.400000;
113  MY(liquidfriction) = 6;
114  MY(sizeincrease) = -16;
115  MY(size_min) = 32;
116  MY(size_max) = 32;
117  MY(tex_min) = 48;
118  MY(tex_max) = 55;
119  MY(type) = "alphastatic";
120  MY(velocityjitter) = '512.0 512.0 512.0';
121 }
float alpha_max
Definition: models.qh:20
float alpha_min
Definition: models.qh:20
float gravity
Definition: items.qh:16
float count
Definition: powerups.qc:22
SUB(damage_hit)
DEF(damage_hit)