From cdc23c669688f2634d71620292818ef5e9d213e1 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 18 Oct 2020 12:00:16 +1000 Subject: [PATCH] Stub for Unvanquished compatibility: Add basic spawnpoints to allow the maps to be played at all --- qcsrc/server/compat/_mod.inc | 1 + qcsrc/server/compat/_mod.qh | 1 + qcsrc/server/compat/unvanquished.qc | 26 ++++++++++++++++++++++++++ qcsrc/server/compat/unvanquished.qh | 1 + 4 files changed, 29 insertions(+) create mode 100644 qcsrc/server/compat/unvanquished.qc create mode 100644 qcsrc/server/compat/unvanquished.qh diff --git a/qcsrc/server/compat/_mod.inc b/qcsrc/server/compat/_mod.inc index daf9e940f..c1435ed3e 100644 --- a/qcsrc/server/compat/_mod.inc +++ b/qcsrc/server/compat/_mod.inc @@ -3,4 +3,5 @@ #include #include #include +#include #include diff --git a/qcsrc/server/compat/_mod.qh b/qcsrc/server/compat/_mod.qh index c1614764d..5dc5eb83b 100644 --- a/qcsrc/server/compat/_mod.qh +++ b/qcsrc/server/compat/_mod.qh @@ -3,4 +3,5 @@ #include #include #include +#include #include diff --git a/qcsrc/server/compat/unvanquished.qc b/qcsrc/server/compat/unvanquished.qc new file mode 100644 index 000000000..75f4a1942 --- /dev/null +++ b/qcsrc/server/compat/unvanquished.qc @@ -0,0 +1,26 @@ +#include "unvanquished.qh" + +//#include +#include + +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 index 000000000..6f70f09be --- /dev/null +++ b/qcsrc/server/compat/unvanquished.qh @@ -0,0 +1 @@ +#pragma once -- 2.39.2