// target:\r
// what to trigger\r
}\r
+\r
+.string chmap;\r
+void trigger_changelevel_touch()\r
+{\r
+ if not (other.iscreature)\r
+ return;\r
+\r
+ EXACTTRIGGER_TOUCH;\r
+\r
+ if (self.chmap == "")\r
+ localcmd("endmatch\n");\r
+ else\r
+ localcmd(strcat("changelevel ", self.chmap, "\n"));\r
+};\r
+\r
+void spawnfunc_trigger_changelevel()\r
+{\r
+ EXACTTRIGGER_INIT;\r
+ self.touch = trigger_changelevel_touch;\r
+};\r
fade_rate: fade-out time
-------- SPAWNFLAGS --------
START_OFF: the trigger is off initially
+*/
+
+/*QUAKED trigger_changelevel (.5 .5 .5) ?
+Loads another map when touched by a player. Useful in RPG and single player maps.
+When no chmap key is set, the trigger just ends the match when touched, and the player / team with the highest score at that moment wins.
+-------- KEYS --------
+dmg: amount of damage to deal (default: 1000)
+message: kill message when someone gets killed by this (default: "was in the wrong place")
+message2: kill message when someone gets pushed into this (default: "was thrown into a world of hurt by"). The # character is replaced by the attacker name if present (and it instead does not get appended to the end)
*/
\ No newline at end of file