/** If you register a new vehicle, make sure to add it to all.inc */
#define REGISTER_VEHICLE(id, class) REGISTER(RegisterVehicles, VEH, vehicle_info, VEH_COUNT, id, vehicleid, NEW(class))
#include "vehicle.qh"
-#define REGISTER_VEHICLE_SIMPLE(id, func, vehicleflags, min_s, max_s, modelname, headmodelname, hudmodelname, headtag, hudtag, viewtag, shortname, vname) \
+#define REGISTER_VEHICLE_SIMPLE(id, vehicleflags, min_s, max_s, modelname, headmodelname, hudmodelname, headtag, hudtag, viewtag, shortname, vname) \
REGISTER_VEHICLE(id, Vehicle) { \
this.netname = shortname; \
this.vehicle_name = vname; \
- this.vehicle_func = func; \
this.mdl = modelname; \
this.spawnflags = vehicleflags; \
this.mins = min_s; \
#ifndef VEHICLE_BUMBLEBEE
#define VEHICLE_BUMBLEBEE
#include "bumblebee.qh"
+#ifndef MENUQC
int v_bumblebee(int);
+#endif
REGISTER_VEHICLE_SIMPLE(
/* VEH_##id */ BUMBLEBEE,
-/* function */ v_bumblebee,
/* spawnflags */ VHF_DMGSHAKE,
/* mins,maxs */ '-245 -130 -130', '230 130 130',
/* model */ "models/vehicles/bumblebee_body.dpm",
/* fullname */ _("Bumblebee")
) {
this.m_icon = "vehicle_bumble";
+#ifndef MENUQC
+ this.vehicle_func = v_bumblebee;
+#endif
}
#endif
#ifndef VEHICLE_RACER
#define VEHICLE_RACER
+#ifndef MENUQC
int v_racer(int);
+#endif
REGISTER_VEHICLE_SIMPLE(
/* VEH_##id */ RACER,
-/* function */ v_racer,
/* spawnflags */ VHF_DMGSHAKE | VHF_DMGROLL,
/* mins,maxs */ '-120 -120 -40' * 0.5, '120 120 40' * 0.5,
/* model */ "models/vehicles/wakizashi.dpm",
/* fullname */ _("Racer")
) {
this.m_icon = "vehicle_racer";
+#ifndef MENUQC
+ this.vehicle_func = v_racer;
+#endif
}
#endif
#ifndef VEHICLE_RAPTOR
#define VEHICLE_RAPTOR
#include "raptor.qh"
+#ifndef MENUQC
int v_raptor(int);
+#endif
REGISTER_VEHICLE_SIMPLE(
/* VEH_##id */ RAPTOR,
-/* function */ v_raptor,
/* spawnflags */ VHF_DMGSHAKE | VHF_DMGROLL,
/* mins,maxs */ '-80 -80 0', '80 80 70',
/* model */ "models/vehicles/raptor.dpm",
/* fullname */ _("Raptor")
) {
this.m_icon = "vehicle_raptor";
+#ifndef MENUQC
+ this.vehicle_func = v_raptor;
+#endif
}
#endif
#ifndef VEHICLE_SPIDERBOT
#define VEHICLE_SPIDERBOT
+#ifndef MENUQC
int v_spiderbot(int);
+#endif
REGISTER_VEHICLE_SIMPLE(
/* VEH_##id */ SPIDERBOT,
-/* function */ v_spiderbot,
/* spawnflags */ VHF_DMGSHAKE,
/* mins,maxs */ '-75 -75 10', '75 75 125',
/* model */ "models/vehicles/spiderbot.dpm",
/* fullname */ _("Spiderbot")
) {
this.m_icon = "vehicle_spider";
+#ifndef MENUQC
+ this.vehicle_func = v_spiderbot;
+#endif
}
#endif