X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcompat%2Fquake.qc;h=c80da0af3772cf40ddd744cf1c471f0268702e23;hb=0fbec9b102b96688c9e3651bab374de1d39990cb;hp=539042d636038206f7c19b2cbcf77d5776bc09c9;hpb=80afa8735de5af3e81d880e9980c7d9fbc3e481c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/compat/quake.qc b/qcsrc/server/compat/quake.qc index 539042d63..c80da0af3 100644 --- a/qcsrc/server/compat/quake.qc +++ b/qcsrc/server/compat/quake.qc @@ -1,30 +1,18 @@ #include "quake.qh" +#include +#include #include -spawnfunc(weapon_electro); -spawnfunc(weapon_hagar); -spawnfunc(weapon_machinegun); -spawnfunc(item_bullets); -spawnfunc(item_armor_mega); -spawnfunc(item_health_mega); -spawnfunc(item_health_medium); - //*********************** //QUAKE 1 ENTITIES - So people can play quake1 maps with the xonotic weapons //*********************** -spawnfunc(weapon_nailgun) {spawnfunc_weapon_electro(this);} -spawnfunc(weapon_supernailgun) {spawnfunc_weapon_hagar(this);} -spawnfunc(weapon_supershotgun) {spawnfunc_weapon_machinegun(this);} +SPAWNFUNC_WEAPON(weapon_nailgun, WEP_ELECTRO) +SPAWNFUNC_WEAPON(weapon_supernailgun, WEP_HAGAR) +SPAWNFUNC_WEAPON(weapon_supershotgun, WEP_MACHINEGUN) -spawnfunc(item_spikes) {spawnfunc_item_bullets(this);} +SPAWNFUNC_ITEM(item_spikes, ITEM_Bullets) //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_mega(this);} -spawnfunc(item_armorInv) {spawnfunc_item_armor_mega(this);} // TODO: make sure we actually want this -spawnfunc(item_health) {if (this.spawnflags & 2) spawnfunc_item_health_mega(this);else spawnfunc_item_health_medium(this);} - -//spawnfunc_item_spikes -//spawnfunc_item_health - - - +SPAWNFUNC_ITEM(item_armor2, ITEM_ArmorMega) +SPAWNFUNC_ITEM(item_armorInv, ITEM_ArmorMega) // TODO: make sure we actually want this +SPAWNFUNC_ITEM_COND(item_health, (this.spawnflags & 2), ITEM_HealthMega, ITEM_HealthMedium)