From: Mario Date: Sun, 25 Jun 2017 09:53:16 +0000 (+1000) Subject: Add support for some missing Quake 2 items X-Git-Tag: xonotic-v0.8.5~2695 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=989e1a4a29c45b9d6fa22fc1a9153128868ffaa5;p=xonotic%2Fxonotic-data.pk3dir.git Add support for some missing Quake 2 items --- 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