X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Ft_quake.qc;h=9e22b8d06542ddf2236c4cb2a5ba57dbbbe9e546;hb=05375be95785001ea4228a59f830308501e59b5e;hp=9b25c8860905440b3b724ec09c261a6fcfbbc14a;hpb=cfc1a19f21842b65814c855082b059b22ff0c392;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/t_quake.qc b/qcsrc/server/t_quake.qc index 9b25c8860..9e22b8d06 100644 --- a/qcsrc/server/t_quake.qc +++ b/qcsrc/server/t_quake.qc @@ -1,17 +1,28 @@ -#include "../common/weapons/weapons.qc" +#include "_all.qh" + +#include "../common/weapons/all.qh" + +spawnfunc(weapon_electro); +spawnfunc(weapon_hagar); +spawnfunc(weapon_machinegun); +spawnfunc(item_bullets); +spawnfunc(item_armor_large); +spawnfunc(item_armor_large); +spawnfunc(item_health_mega); +spawnfunc(item_health_medium); //*********************** //QUAKE 1 ENTITIES - So people can play quake1 maps with the xonotic weapons //*********************** -void spawnfunc_weapon_nailgun (void) {spawnfunc_weapon_electro();} -void spawnfunc_weapon_supernailgun (void) {spawnfunc_weapon_hagar();} -void spawnfunc_weapon_supershotgun (void) {spawnfunc_weapon_machinegun();} - -void spawnfunc_item_spikes (void) {spawnfunc_item_bullets();} -//void spawnfunc_item_armor1 (void) {spawnfunc_item_armor_medium;} // FIXME: in Quake this is green armor, in Xonotic maps it is an armor shard -void spawnfunc_item_armor2 (void) {spawnfunc_item_armor_large();} -void item_armorInv (void) {spawnfunc_item_armor_large();} -void spawnfunc_item_health (void) {if (self.spawnflags & 2) spawnfunc_item_health_mega();else spawnfunc_item_health_medium();} +spawnfunc(weapon_nailgun) {spawnfunc_weapon_electro(this);} +spawnfunc(weapon_supernailgun) {spawnfunc_weapon_hagar(this);} +spawnfunc(weapon_supershotgun) {spawnfunc_weapon_machinegun(this);} + +spawnfunc(item_spikes) {spawnfunc_item_bullets(this);} +//spawnfunc(item_armor1) {spawnfunc_item_armor_medium(this);} // FIXME: in Quake this is green armor, in Xonotic maps it is an armor shard +spawnfunc(item_armor2) {spawnfunc_item_armor_large(this);} +void item_armorInv() {SELFPARAM();spawnfunc_item_armor_large(self);} +spawnfunc(item_health) {if (self.spawnflags & 2) spawnfunc_item_health_mega(this);else spawnfunc_item_health_medium(this);} //spawnfunc_item_spikes //spawnfunc_item_health