]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/vehicles/vehicles_def.qh
Some claim that you should acctualy add teh files you use. pfff.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / vehicles / vehicles_def.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 .float vehicle_flags;
11 #define VHF_ISVEHICLE   2
12 #define VHF_HASSHIELD   4
13 #define VHF_SHIELDREGEN 8
14 #define VHF_HEALTHREGEN 16
15 #define VHF_ENERGYREGEN  32
16 #define VHF_DEATHEJECT  64
17 #define VHF_MOVE_GROUND 128
18 #define VHF_MOVE_HOVER  256
19 #define VHF_MOVE_FLY    512
20
21 .float hud;
22
23 .entity gun1;
24 .entity gun2;
25
26 //.entity shield;
27
28 .float vehicle_health;
29 .float vehicle_shield;
30 .float vehicle_energy;
31
32 .float vehicle_ammo1;
33 .float vehicle_reload1;
34
35 .float vehicle_ammo2;
36 .float vehicle_reload2;
37
38 .entity vehicle;
39 .entity vehicle_viewport;
40 .entity vehicle_hudmodel;
41
42 .float dmg_time;
43
44 var .void(float exit_flags) vehicle_exit;
45 #define VHEF_NORMAL 0
46 #define VHEF_EJECT  1
47 #define VHEF_RELESE 2
48
49 var .void() vehicle_enter;
50 var .void() vehicle_die;
51 var .void() vehicle_spawn;
52
53 #endif
54