]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add support for some missing Quake 2 items
authorMario <mario@smbclan.net>
Sun, 25 Jun 2017 09:53:16 +0000 (19:53 +1000)
committerMario <mario@smbclan.net>
Sun, 25 Jun 2017 09:53:16 +0000 (19:53 +1000)
qcsrc/server/compat/_mod.inc
qcsrc/server/compat/_mod.qh
qcsrc/server/compat/quake2.qc [new file with mode: 0644]
qcsrc/server/compat/quake2.qh [new file with mode: 0644]

index 69d031eaf3601869a1f0a9ff49dab5cebb1d54e3..daf9e940f786ae65711e7204fe1225735199812f 100644 (file)
@@ -1,5 +1,6 @@
 // generated file; do not modify
 #include <server/compat/halflife.qc>
 #include <server/compat/quake.qc>
+#include <server/compat/quake2.qc>
 #include <server/compat/quake3.qc>
 #include <server/compat/wop.qc>
index bd658580e1153205d993190223a5f85f3152c3b8..c1614764dbec90da610fc399ba5ec5d29769274f 100644 (file)
@@ -1,5 +1,6 @@
 // generated file; do not modify
 #include <server/compat/halflife.qh>
 #include <server/compat/quake.qh>
+#include <server/compat/quake2.qh>
 #include <server/compat/quake3.qh>
 #include <server/compat/wop.qh>
diff --git a/qcsrc/server/compat/quake2.qc b/qcsrc/server/compat/quake2.qc
new file mode 100644 (file)
index 0000000..df99f15
--- /dev/null
@@ -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 (file)
index 0000000..6f70f09
--- /dev/null
@@ -0,0 +1 @@
+#pragma once