Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
effectinfo_ctf.inc File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define cap(name, colormin, colormax)
#define flag_touch(name, colormin, colormax)
#define pass(name, colormin, colormax)

Functions

 cap (red, "0xFF0000", "0x970000") cap(blue
 cap (yellow, "0xFFFF0F", "0xFFFF0F") cap(pink
 flag_touch (neutral, "0xFFFFFF", "0xFFFFFF") pass(red
 flag_touch (red, "0xFF0000", "0x970000") flag_touch(blue
 flag_touch (yellow, "0xFFFF0F", "0xFFFF0F") flag_touch(pink
 pass (blue, "0x0000FF", "0x000097") pass(yellow
 pass (pink, "0xFFFFFF", "0xFFFFFF") pass(neutral

Macro Definition Documentation

◆ cap

#define cap ( name,
colormin,
colormax )

Definition at line 83 of file effectinfo_ctf.inc.

83#define cap(name, colormin, colormax) \
84 DEF(name##_cap); \
85 SUB(name##_cap) { \
86 MY(airfriction) = 2; \
87 MY(alpha_max) = 256; \
88 MY(alpha_fade) = 100; \
89 MY(bounce) = 1.500000; \
90 MY(color_min) = colormin; \
91 MY(color_max) = colormax; \
92 MY(count) = 500; \
93 MY(originjitter) = '1.0 1.0 1.0'; \
94 MY(size_min) = 1; \
95 MY(size_max) = 1; \
96 MY(stretchfactor) = 0.600000; \
97 MY(tex_min) = 64; \
98 MY(tex_max) = 64; \
99 MY(type) = "spark"; \
100 MY(velocityjitter) = '1000.0 1000.0 1500.0'; \
101 MY(velocitymultiplier) = 0.500000; \
102 } \
103 SUB(name##_cap) { \
104 MY(alpha_min) = 190; \
105 MY(alpha_max) = 190; \
106 MY(alpha_fade) = 180; \
107 MY(color_min) = colormin; \
108 MY(color_max) = colormax; \
109 MY(countabsolute) = 1; \
110 MY(sizeincrease) = -80; \
111 MY(size_min) = 150; \
112 MY(size_max) = 150; \
113 MY(tex_min) = 65; \
114 MY(tex_max) = 65; \
115 MY(type) = "smoke"; \
116 } \
117 /**/

Referenced by cap(), and cap().

◆ flag_touch

#define flag_touch ( name,
colormin,
colormax )
Value:
SUB(name##flag_touch) { \
MY(airfriction) = 3; \
MY(alpha_max) = 256; \
MY(alpha_fade) = 556; \
MY(bounce) = 1.500000; \
MY(color_min) = colormin; \
MY(color_max) = colormax; \
MY(count) = 35; \
MY(gravity) = 1; \
MY(originjitter) = '1.0 1.0 1.0'; \
MY(size_min) = 1; \
MY(size_max) = 3; \
MY(tex_min) = 40; \
MY(tex_max) = 40; \
MY(type) = "spark"; \
MY(velocityjitter) = '300.0 300.0 300.0'; \
MY(velocitymultiplier) = 0.500000; \
}
float count
Definition powerups.qc:22
float gravity
Definition items.qh:17
DEF(TE_WIZSPIKE)
#define flag_touch(name, colormin, colormax)
string name
Definition menu.qh:30
float alpha_max
Definition models.qh:20
vector originjitter
Definition main.qc:386

Definition at line 2 of file effectinfo_ctf.inc.

2#define flag_touch(name, colormin, colormax) \
3 DEF(name##flag_touch); \
4 SUB(name##flag_touch) { \
5 MY(airfriction) = 3; \
6 MY(alpha_max) = 256; \
7 MY(alpha_fade) = 556; \
8 MY(bounce) = 1.500000; \
9 MY(color_min) = colormin; \
10 MY(color_max) = colormax; \
11 MY(count) = 35; \
12 MY(gravity) = 1; \
13 MY(originjitter) = '1.0 1.0 1.0'; \
14 MY(size_min) = 1; \
15 MY(size_max) = 3; \
16 MY(tex_min) = 40; \
17 MY(tex_max) = 40; \
18 MY(type) = "spark"; \
19 MY(velocityjitter) = '300.0 300.0 300.0'; \
20 MY(velocitymultiplier) = 0.500000; \
21 }

Referenced by flag_touch(), flag_touch(), and flag_touch().

◆ pass

Function Documentation

◆ cap() [1/2]

cap ( red ,
"0xFF0000" ,
"0x970000"  )

References cap.

◆ cap() [2/2]

cap ( yellow ,
"0xFFFF0F" ,
"0xFFFF0F"  )

References cap.

◆ flag_touch() [1/3]

flag_touch ( neutral ,
"0xFFFFFF" ,
"0xFFFFFF"  )

References flag_touch.

◆ flag_touch() [2/3]

flag_touch ( red ,
"0xFF0000" ,
"0x970000"  )

References flag_touch.

◆ flag_touch() [3/3]

flag_touch ( yellow ,
"0xFFFF0F" ,
"0xFFFF0F"  )

References flag_touch.

◆ pass() [1/2]

pass ( blue ,
"0x0000FF" ,
"0x000097"  )

References pass.

◆ pass() [2/2]

pass ( pink ,
"0xFFFFFF" ,
"0xFFFFFF"  )

References pass.