From: Mario Date: Sun, 18 Oct 2020 02:00:16 +0000 (+1000) Subject: Stub for Unvanquished compatibility: Add basic spawnpoints to allow the maps to be... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2FMario%2Funv_compat;p=xonotic%2Fxonotic-data.pk3dir.git Stub for Unvanquished compatibility: Add basic spawnpoints to allow the maps to be played at all --- 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