X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fvehicles%2Fall.qh;h=b58389d4abb7955feb7c3c80934583fadd4f6f1b;hb=a5357242d8541b890aa0f11e647669c7c3efb2df;hp=45e18b7323a650395a64f7182deb3f203f935315;hpb=49aec17ab86b4b27fc372ed122aa3686219e8453;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/vehicles/all.qh b/qcsrc/common/vehicles/all.qh index 45e18b732..b58389d4a 100644 --- a/qcsrc/common/vehicles/all.qh +++ b/qcsrc/common/vehicles/all.qh @@ -1,6 +1,26 @@ -#include "unit/spiderbot.qc" -#include "unit/raptor.qc" -#include "unit/racer.qc" -#ifndef VEHICLES_NO_UNSTABLE -#include "unit/bumblebee.qc" -#endif \ No newline at end of file +#ifndef VEHICLES_ALL_H +#define VEHICLES_ALL_H + +#include "vehicle.qh" + +REGISTRY(Vehicles, BITS(4)) +#define Vehicles_from(i) _Vehicles_from(i, VEH_Null) +REGISTER_REGISTRY(Vehicles) +REGISTRY_CHECK(Vehicles) + +const int VEH_FIRST = 1; +#define VEH_LAST (Vehicles_COUNT - 1) + +#define REGISTER_VEHICLE(id, inst) REGISTER(Vehicles, VEH, id, vehicleid, inst) + +#if defined(SVQC) + #include "sv_vehicles.qh" +#elif defined(CSQC) + #include "cl_vehicles.qh" +#endif + +REGISTER_VEHICLE(Null, NEW(Vehicle)); + +#include "vehicle/_mod.inc" + +#endif