From a92cca5ea9d0d4f4ebd816a2c0bfe3c80ac7e07d Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 2 Oct 2010 14:41:17 +0300 Subject: [PATCH] Gametype key --- data/qcsrc/server/g_triggers.qc | 5 ++++- .../voretournament.game/data/entities.def | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/server/g_triggers.qc b/data/qcsrc/server/g_triggers.qc index ebc63e13..66bc39d9 100644 --- a/data/qcsrc/server/g_triggers.qc +++ b/data/qcsrc/server/g_triggers.qc @@ -1816,9 +1816,12 @@ void spawnfunc_trigger_magicear() // what to trigger } -.string chmap; +.string chmap, gametype; void spawnfunc_target_changelevel() { + if(self.gametype != "") + MapInfo_SwitchGameType(MapInfo_Type_FromString(self.gametype)); + if (self.chmap == "") localcmd("endmatch\n"); else diff --git a/extra/netradiant-1.5.0-win32/voretournament.game/data/entities.def b/extra/netradiant-1.5.0-win32/voretournament.game/data/entities.def index 69993b30..16fc133e 100644 --- a/extra/netradiant-1.5.0-win32/voretournament.game/data/entities.def +++ b/extra/netradiant-1.5.0-win32/voretournament.game/data/entities.def @@ -1379,4 +1379,5 @@ When no chmap key is set, the entity just ends the match when triggered. The pla -------- KEYS -------- targetname: The name other entities can use to target this entity chmap: Map file to switch to, leave empty to make this entity just end the match instead +gametype: Switch to this gametype. If empty, the same gametype stays. */ \ No newline at end of file -- 2.39.2