1 //#define VEHICLES_ENABLED
2 #ifdef VEHICLES_ENABLED
4 #message "with tZork vehicles (experimental)"
6 float SVC_SETVIEWPORT = 5; // Net.Protocol 0x05
7 float SVC_SETVIEWANGLES = 10; // Net.Protocol 0x0A
8 float SVC_UPDATEENTITY = 128; // Net.Protocol 0x80
10 #define CCVAR(part) cvar(strcat(self.cvar_basename,part))
11 //.string cvar_basename;
14 #define VHF_HASSHIELD 2
15 #define VHF_SHIELDREGEN 4
16 #define VHF_HEALTHREGEN 8
17 #define VHF_DEATHEJECT 16
18 #define VHF_ENERGYREGEN 32
27 .float vehicle_health;
28 .float vehicle_shield;
29 .float vehicle_energy;
32 .float vehicle_reload1;
35 .float vehicle_reload2;
38 .entity vehicle_viewport;
39 .entity vehicle_hudmodel;
49 var .void(float exit_flags) vehicle_exit;
50 var .void() vehicle_enter;
51 var .void() vehicle_die;
52 var .void() vehicle_spawn;
53 //var .float(float message) vehicle_message;
55 #include "vehicles.qc"
57 #include "spiderbot.qc"