// generated file; do not modify
#include <common/triggers/target/changelevel.qc>
#include <common/triggers/target/include.qc>
+#include <common/triggers/target/levelwarp.qc>
#include <common/triggers/target/location.qc>
#include <common/triggers/target/music.qc>
#include <common/triggers/target/spawn.qc>
// generated file; do not modify
#include <common/triggers/target/changelevel.qh>
#include <common/triggers/target/include.qh>
+#include <common/triggers/target/levelwarp.qh>
#include <common/triggers/target/location.qh>
#include <common/triggers/target/music.qh>
#include <common/triggers/target/spawn.qh>
#include "include.qh"
#include "changelevel.qc"
+#include "levelwarp.qc"
#include "location.qc"
#include "music.qc"
#include "spawn.qc"
--- /dev/null
+#include "levelwarp.qh"
+
+#ifdef SVQC
+void target_levelwarp_use(entity this, entity actor, entity trigger)
+{
+ if(!autocvar_g_campaign)
+ return; // only in campaign
+
+ if(this.cnt)
+ CampaignLevelWarp(this.cnt - 1); // specific level
+ else
+ CampaignLevelWarp(-1); // next level
+}
+
+spawnfunc(target_levelwarp)
+{
+ this.use = target_levelwarp_use;
+}
+#endif
--- /dev/null
+#pragma once