]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/misc/teleport_dest.qc
Merge branch 'sev/menu_icons_mipmap' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / misc / teleport_dest.qc
1 #ifdef SVQC
2
3 void spawnfunc_info_teleport_destination (void)
4 {
5         self.classname = "info_teleport_destination";
6
7         self.mangle = self.angles;
8         self.angles = '0 0 0';
9
10         //setorigin (self, self.origin + '0 0 27');     // To fix a mappers' habit as old as Quake
11         setorigin (self, self.origin);
12
13         IFTARGETED
14         {
15         }
16         else
17                 objerror ("^3Teleport destination without a targetname");
18 }
19
20 void spawnfunc_misc_teleporter_dest (void)
21 {
22         spawnfunc_info_teleport_destination();
23 }
24
25 void spawnfunc_target_teleporter (void)
26 {
27         spawnfunc_info_teleport_destination();
28 }
29
30 #endif