]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/server/vehicles/vehicles.qh
aa8e730552f634c183229c35974789bc9af21bd7
[divverent/nexuiz.git] / data / qcsrc / server / vehicles / vehicles.qh
1 //#define VEHICLES_ENABLED
2 #ifdef VEHICLES_ENABLED
3
4 #message "with tZork vehicles (experimental)"
5
6 float SVC_SETVIEWPORT = 5;    // Net.Protocol 0x05
7 float SVC_SETVIEWANGLES = 10; // Net.Protocol 0x0A
8 float SVC_UPDATEENTITY = 128; // Net.Protocol 0x80
9
10 #define CCVAR(part) cvar(strcat(self.cvar_basename,part))
11 //.string cvar_basename;
12
13 .float vehicle_flags;
14 #define VHF_HASSHIELD 2
15 #define VHF_SHIELDREGEN 4
16 #define VHF_HEALTHREGEN 8
17
18 .float hud;
19 .float rockets;
20 .float rockets_reload;
21 .entity gun1;
22 .entity gun2;
23
24 .float vehicle_health;
25 .float vehicle_shield;
26 .float vehicle_heat;
27
28 .entity vehicle;
29 .entity vehicle_viewport;
30 .entity vehicle_hudmodel;
31
32 .float anim_start;
33 .float anim_end;
34
35 .float dmg_time;
36
37 float server_fps;
38
39 #define VHEF_NORMAL 0
40 #define VHEF_EJECT 1
41
42 .void(float exit_flags) vehicle_exit;
43 .void() vehicle_enter;
44 .void() vehicle_die;
45 .void() vehicle_spawn;
46 .float(float message) vehicle_message;
47
48 #include "vehicles.qc"
49 #include "spiderbot.qc"
50 #include "racer.qc"
51
52 #endif