From 989e1a4a29c45b9d6fa22fc1a9153128868ffaa5 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 25 Jun 2017 19:53:16 +1000 Subject: [PATCH] Add support for some missing Quake 2 items --- qcsrc/server/compat/_mod.inc | 1 + qcsrc/server/compat/_mod.qh | 1 + qcsrc/server/compat/quake2.qc | 15 +++++++++++++++ qcsrc/server/compat/quake2.qh | 1 + 4 files changed, 18 insertions(+) create mode 100644 qcsrc/server/compat/quake2.qc create mode 100644 qcsrc/server/compat/quake2.qh diff --git a/qcsrc/server/compat/_mod.inc b/qcsrc/server/compat/_mod.inc index 69d031eaf..daf9e940f 100644 --- a/qcsrc/server/compat/_mod.inc +++ b/qcsrc/server/compat/_mod.inc @@ -1,5 +1,6 @@ // generated file; do not modify #include #include +#include #include #include diff --git a/qcsrc/server/compat/_mod.qh b/qcsrc/server/compat/_mod.qh index bd658580e..c1614764d 100644 --- a/qcsrc/server/compat/_mod.qh +++ b/qcsrc/server/compat/_mod.qh @@ -1,5 +1,6 @@ // generated file; do not modify #include #include +#include #include #include diff --git a/qcsrc/server/compat/quake2.qc b/qcsrc/server/compat/quake2.qc new file mode 100644 index 000000000..df99f1570 --- /dev/null +++ b/qcsrc/server/compat/quake2.qc @@ -0,0 +1,15 @@ +#include "quake2.qh" + +spawnfunc(item_armor_medium); + +spawnfunc(item_invincible); + + +//*********************** +//QUAKE 2 ENTITIES - So people can play quake2 maps with the xonotic weapons +//*********************** +spawnfunc(item_armor_jacket) {spawnfunc_item_armor_medium(this);} + +spawnfunc(item_invulnerability) {spawnfunc_item_invincible(this);} + +// rest of the quake 2 entities are handled by q1 and q3 compat diff --git a/qcsrc/server/compat/quake2.qh b/qcsrc/server/compat/quake2.qh new file mode 100644 index 000000000..6f70f09be --- /dev/null +++ b/qcsrc/server/compat/quake2.qh @@ -0,0 +1 @@ +#pragma once -- 2.39.2