From: MirceaKitsune Date: Sat, 2 Oct 2010 11:41:17 +0000 (+0300) Subject: Gametype key X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a92cca5ea9d0d4f4ebd816a2c0bfe3c80ac7e07d;p=voretournament%2Fvoretournament.git Gametype key --- 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