]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/compat/quake.qc
take3: format 903 files
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / compat / quake.qc
1 #include "quake.qh"
2
3 #include <server/defs.qh>
4 #include <server/miscfunctions.qh>
5 #include <common/weapons/_all.qh>
6
7 spawnfunc(weapon_electro);
8 spawnfunc(weapon_hagar);
9 spawnfunc(weapon_machinegun);
10 spawnfunc(item_bullets);
11 spawnfunc(item_armor_mega);
12 spawnfunc(item_health_mega);
13 spawnfunc(item_health_medium);
14
15 // ***********************
16 // QUAKE 1 ENTITIES - So people can play quake1 maps with the xonotic weapons
17 // ***********************
18 spawnfunc(weapon_nailgun)
19 {
20         spawnfunc_weapon_electro(this);
21 }
22 spawnfunc(weapon_supernailgun)
23 {
24         spawnfunc_weapon_hagar(this);
25 }
26 spawnfunc(weapon_supershotgun)
27 {
28         spawnfunc_weapon_machinegun(this);
29 }
30
31 spawnfunc(item_spikes)
32 {
33         spawnfunc_item_bullets(this);
34 }
35 // spawnfunc(item_armor1) {spawnfunc_item_armor_medium(this);}  // FIXME: in Quake this is green armor, in Xonotic maps it is an armor shard
36 spawnfunc(item_armor2)
37 {
38         spawnfunc_item_armor_mega(this);
39 }
40 spawnfunc(item_armorInv)
41 {
42         spawnfunc_item_armor_mega(this);
43 } // TODO: make sure we actually want this
44 spawnfunc(item_health)
45 {
46         if (this.spawnflags & 2) {
47                 spawnfunc_item_health_mega(this);
48         } else {
49                 spawnfunc_item_health_medium(this);
50         }
51 }
52
53 // spawnfunc_item_spikes
54 // spawnfunc_item_health