]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Stub for Unvanquished compatibility: Add basic spawnpoints to allow the maps to be... Mario/unv_compat
authorMario <mario.mario@y7mail.com>
Sun, 18 Oct 2020 02:00:16 +0000 (12:00 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 18 Oct 2020 02:00:16 +0000 (12:00 +1000)
qcsrc/server/compat/_mod.inc
qcsrc/server/compat/_mod.qh
qcsrc/server/compat/unvanquished.qc [new file with mode: 0644]
qcsrc/server/compat/unvanquished.qh [new file with mode: 0644]

index daf9e940f786ae65711e7204fe1225735199812f..c1435ed3e1fce5a826dd3f2b6272f89e6c93a51f 100644 (file)
@@ -3,4 +3,5 @@
 #include <server/compat/quake.qc>
 #include <server/compat/quake2.qc>
 #include <server/compat/quake3.qc>
+#include <server/compat/unvanquished.qc>
 #include <server/compat/wop.qc>
index c1614764dbec90da610fc399ba5ec5d29769274f..5dc5eb83bf897818dd7ce718bbb68fffa70e0ef3 100644 (file)
@@ -3,4 +3,5 @@
 #include <server/compat/quake.qh>
 #include <server/compat/quake2.qh>
 #include <server/compat/quake3.qh>
+#include <server/compat/unvanquished.qh>
 #include <server/compat/wop.qh>
diff --git a/qcsrc/server/compat/unvanquished.qc b/qcsrc/server/compat/unvanquished.qc
new file mode 100644 (file)
index 0000000..75f4a19
--- /dev/null
@@ -0,0 +1,26 @@
+#include "unvanquished.qh"
+
+//#include <common/gamemodes/gamemode/ctf/sv_ctf.qh>
+#include <server/spawnpoints.qh>
+
+spawnfunc(item_flag_team1);
+spawnfunc(item_flag_team2);
+
+//***********************
+//UNVANQUISHED ENTITIES - So people can play Unvanquished maps with the xonotic weapons
+//***********************
+
+spawnfunc(team_alien_spawn)
+{
+       this.team = NUM_TEAM_1; // red
+       spawnfunc_info_player_deathmatch(this);
+}
+
+spawnfunc(team_human_spawn)
+{
+       this.team = NUM_TEAM_2; // blue
+       spawnfunc_info_player_deathmatch(this);
+}
+
+spawnfunc(team_alien_overmind) { spawnfunc_item_flag_team1(this); }
+spawnfunc(team_human_reactor) { spawnfunc_item_flag_team2(this); }
diff --git a/qcsrc/server/compat/unvanquished.qh b/qcsrc/server/compat/unvanquished.qh
new file mode 100644 (file)
index 0000000..6f70f09
--- /dev/null
@@ -0,0 +1 @@
+#pragma once