X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Ft_quake.qc;h=29de5d4c71a530623e0e938e291bf0976c618574;hp=74a324b98193ad4918fbab1d853d6528e2a9ddcd;hb=c51698509e174e343dff48128a1dcfff1527c535;hpb=ef74e1ba8e890befb4a4892a96d244a66c05fd48 diff --git a/qcsrc/server/t_quake.qc b/qcsrc/server/t_quake.qc index 74a324b98..29de5d4c7 100644 --- a/qcsrc/server/t_quake.qc +++ b/qcsrc/server/t_quake.qc @@ -1,28 +1,27 @@ -#include "_all.qh" #include "../common/weapons/all.qh" -void spawnfunc_weapon_electro(); -void spawnfunc_weapon_hagar(); -void spawnfunc_weapon_machinegun(); -void spawnfunc_item_bullets(); -void spawnfunc_item_armor_large(); -void spawnfunc_item_armor_large(); -void spawnfunc_item_health_mega(); -void spawnfunc_item_health_medium(); +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() {spawnfunc_weapon_electro();} -void spawnfunc_weapon_supernailgun() {spawnfunc_weapon_hagar();} -void spawnfunc_weapon_supershotgun() {spawnfunc_weapon_machinegun();} - -void spawnfunc_item_spikes() {spawnfunc_item_bullets();} -//void spawnfunc_item_armor1() {spawnfunc_item_armor_medium;} // FIXME: in Quake this is green armor, in Xonotic maps it is an armor shard -void spawnfunc_item_armor2() {spawnfunc_item_armor_large();} -void item_armorInv() {spawnfunc_item_armor_large();} -void spawnfunc_item_health() {SELFPARAM();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