From: Jakob MG Date: Fri, 25 Mar 2011 16:32:35 +0000 (+0100) Subject: Some claim that you should acctualy add teh files you use. pfff. X-Git-Tag: xonotic-v0.5.0~199^2~11^2~111 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cf39b291096013dfe68d7f434f73c4bca7299b40;p=xonotic%2Fxonotic-data.pk3dir.git Some claim that you should acctualy add teh files you use. pfff. --- diff --git a/qcsrc/server/vehicles/vehicles_def.qh b/qcsrc/server/vehicles/vehicles_def.qh new file mode 100644 index 000000000..48c8bfe93 --- /dev/null +++ b/qcsrc/server/vehicles/vehicles_def.qh @@ -0,0 +1,54 @@ +#define VEHICLES_ENABLED +#ifdef VEHICLES_ENABLED + +#message "with tZork vehicles (experimental)" + +float SVC_SETVIEWPORT = 5; // Net.Protocol 0x05 +float SVC_SETVIEWANGLES = 10; // Net.Protocol 0x0A +float SVC_UPDATEENTITY = 128; // Net.Protocol 0x80 + +.float vehicle_flags; +#define VHF_ISVEHICLE 2 +#define VHF_HASSHIELD 4 +#define VHF_SHIELDREGEN 8 +#define VHF_HEALTHREGEN 16 +#define VHF_ENERGYREGEN 32 +#define VHF_DEATHEJECT 64 +#define VHF_MOVE_GROUND 128 +#define VHF_MOVE_HOVER 256 +#define VHF_MOVE_FLY 512 + +.float hud; + +.entity gun1; +.entity gun2; + +//.entity shield; + +.float vehicle_health; +.float vehicle_shield; +.float vehicle_energy; + +.float vehicle_ammo1; +.float vehicle_reload1; + +.float vehicle_ammo2; +.float vehicle_reload2; + +.entity vehicle; +.entity vehicle_viewport; +.entity vehicle_hudmodel; + +.float dmg_time; + +var .void(float exit_flags) vehicle_exit; +#define VHEF_NORMAL 0 +#define VHEF_EJECT 1 +#define VHEF_RELESE 2 + +var .void() vehicle_enter; +var .void() vehicle_die; +var .void() vehicle_spawn; + +#endif +