updated readme
[divverent/nexuiz.git] / navnodeedit / src / junk.qc
1 void() beamo =\r
2 {\r
3         self.nextthink = time + 0.15;\r
4         BeamBox(0, self.origin + self.mins, self.origin + self.maxs);\r
5 };\r
6 \r
7 void() trigger_push =\r
8 {\r
9         setmodel (self, self.model);\r
10         self.movetype = MOVETYPE_NONE;\r
11         self.modelindex = 0;\r
12         self.model = "";\r
13         self.think = beamo;\r
14         self.nextthink = time + 0.15;\r
15 };\r
16 \r
17 void() trigger_teleport =\r
18 {\r
19         setmodel (self, self.model);\r
20         self.movetype = MOVETYPE_NONE;\r
21         self.modelindex = 0;\r
22         self.model = "";\r
23         self.think = beamo;\r
24         self.nextthink = time + 0.15;\r
25 };\r
26 \r
27 void(string modelname) Precache_Set =\r
28 {\r
29         precache_model(modelname);\r
30         setmodel(self, modelname);\r
31 };\r
32 \r
33 float START_OFF = 1;\r
34 void() Light_setup =\r
35 {\r
36         if (self.style < 32) {return;}\r
37         if (self.spawnflags & START_OFF)  \r
38                 lightstyle(self.style, "a");\r
39         else\r
40                 lightstyle(self.style, "m");\r
41 };\r
42 \r
43 void() light =\r
44 {\r
45         Light_setup();\r
46 };\r
47 \r
48 void() light_fluoro =\r
49 {\r
50         Light_setup();\r
51 };\r
52 \r
53 void() light_fluorospark =\r
54 {\r
55         Light_setup();\r
56 };\r
57 \r
58 void() light_globe =\r
59 {\r
60         Precache_Set("progs/s_light.spr");\r
61         makestatic(self);\r
62 };\r
63 \r
64 void() light_torch_small_walltorch =\r
65 {\r
66         Precache_Set("progs/flame.mdl");\r
67         makestatic(self);\r
68 };\r
69 \r
70 void() light_flame_small_yellow =\r
71 {\r
72         Precache_Set("progs/flame2.mdl");\r
73         makestatic(self);\r
74 };\r
75 \r
76 void() light_flame_large_yellow =\r
77 {\r
78         Precache_Set("progs/flame2.mdl");\r
79         self.frame = 1;\r
80         makestatic(self);\r
81 };\r
82 \r
83 void() light_flame_small_white =\r
84 {\r
85         Precache_Set("progs/flame2.mdl");\r
86         makestatic(self);\r
87 };\r
88 \r
89 void() LightStyles_setup =\r
90 {\r
91         lightstyle(0,"m");\r
92         lightstyle(1,"mmnmmommommnonmmonqnmmo");\r
93         lightstyle(2,"abcdefghijklmnopqrstuvwxyzyxwvutsrqponmlkjihgfedcba");\r
94         lightstyle(3,"mmmmmaaaaammmmmaaaaaabcdefgabcdefg");\r
95         lightstyle(4,"mamamamamama");\r
96         lightstyle(5,"jklmnopqrstuvwxyzyxwvutsrqponmlkj");\r
97         lightstyle(6,"nmonqnmomnmomomno");\r
98         lightstyle(7,"mmmaaaabcdefgmmmmaaaammmaamm");\r
99         lightstyle(8,"mmmaaammmaaammmabcdefaaaammmmabcdefmmmaaaa");\r
100         lightstyle(9,"aaaaaaaazzzzzzzz");\r
101         lightstyle(10,"mmamammmmammamamaaamammma");\r
102         lightstyle(11,"abcdefghijklmnopqrrqponmlkjihgfedcba");\r
103 };\r
104 \r
105 // General Junk\r
106 void() event_lightning          = {remove(self);};\r
107 void() misc_fireball            = {remove(self);};\r
108 void() misc_explobox            = {remove(self);};\r
109 void() misc_explobox2           = {remove(self);};\r
110 void() trap_spikeshooter        = {remove(self);};\r
111 void() trap_shooter             = {remove(self);};\r
112 void() func_bossgate            = {remove(self);};\r
113 void() func_episodegate         = {remove(self);};\r
114 void() func_illusionary         = {remove(self);};\r
115 void() func_train               = {remove(self);};\r
116 void() func_button              = {remove(self);};\r
117 void() func_door                = {remove(self);};\r
118 void() func_door_secret         = {remove(self);};\r
119 void() func_plat                = {remove(self);};\r
120 void() func_wall                = {remove(self);};\r
121 void() info_intermission        = {remove(self);};\r
122 void() info_null                = {remove(self);};\r
123 void() info_teleport_destination= {remove(self);};\r
124 void() path_corner              = {remove(self);};\r
125 void() item_weapon              = {remove(self);};\r
126 \r
127 // Triggers\r
128 void() trigger_relay            = {remove(self);};\r
129 void() trigger_multiple         = {remove(self);};\r
130 void() trigger_once             = {remove(self);};\r
131 void() trigger_changelevel      = {remove(self);};\r
132 void() trigger_counter          = {remove(self);};\r
133 //void() trigger_teleport         = {remove(self);};\r
134 void() trigger_secret           = {remove(self);};\r
135 void() trigger_setskill         = {remove(self);};\r
136 void() trigger_monsterjump      = {remove(self);};\r
137 void() trigger_onlyregistered   = {remove(self);};\r
138 //void() trigger_push             = {remove(self);};\r
139 void() trigger_hurt             = {remove(self);};\r
140 \r
141 // Player Starts\r
142 void() info_player_start        = {};\r
143 void() info_player_start2       = {};\r
144 void() info_player_deathmatch   = {};\r
145 void() info_player_coop         = {};\r
146 \r
147 // Weapons\r
148 void() weapon_supershotgun      = {remove(self);};\r
149 void() weapon_nailgun           = {remove(self);};\r
150 void() weapon_supernailgun      = {remove(self);};\r
151 void() weapon_grenadelauncher   = {remove(self);};\r
152 void() weapon_rocketlauncher    = {remove(self);};\r
153 void() weapon_lightning         = {remove(self);};\r
154 \r
155 // Monsters\r
156 void() monster_enforcer         = {remove(self);};\r
157 void() monster_ogre             = {remove(self);};\r
158 void() monster_demon1           = {remove(self);};\r
159 void() monster_shambler         = {remove(self);};\r
160 void() monster_knight           = {remove(self);};\r
161 void() monster_army             = {remove(self);};\r
162 void() monster_wizard           = {remove(self);};\r
163 void() monster_dog              = {remove(self);};\r
164 void() monster_zombie           = {remove(self);};\r
165 void() monster_boss             = {remove(self);};\r
166 void() monster_tarbaby          = {remove(self);};\r
167 void() monster_hell_knight      = {remove(self);};\r
168 void() monster_fish             = {remove(self);};\r
169 void() monster_shalrath         = {remove(self);};\r
170 void() monster_oldone           = {remove(self);};\r
171 \r
172 void() item_health              = {remove(self);};\r
173 void() item_megahealth_rot      = {remove(self);};\r
174 void() item_armor1              = {remove(self);};\r
175 void() item_armor2              = {remove(self);};\r
176 void() item_armorInv            = {remove(self);};\r
177 void() item_shells              = {remove(self);};\r
178 void() item_spikes              = {remove(self);};\r
179 void() item_rockets             = {remove(self);};\r
180 void() item_cells               = {remove(self);};\r
181 void() item_key1                = {remove(self);};\r
182 void() item_key2                = {remove(self);};\r
183 void() item_artifact_invulnerability = {remove(self);};\r
184 void() item_artifact_envirosuit = {remove(self);};\r
185 void() item_artifact_invisibility = {remove(self);};\r
186 void() item_artifact_super_damage = {remove(self);};\r
187 \r
188 // Ambients\r
189 void() ambient_suck_wind        = {remove(self);};\r
190 void() ambient_flouro_buzz      = {remove(self);};\r
191 void() ambient_drip             = {remove(self);};\r
192 void() ambient_comp_hum         = {remove(self);};\r
193 void() ambient_drone            = {remove(self);};\r
194 void() ambient_thunder          = {remove(self);};\r
195 void() ambient_light_buzz       = {remove(self);};\r
196 void() ambient_swamp1           = {remove(self);};\r
197 void() ambient_swamp2           = {remove(self);};