]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/vehicles/vehicles_def.qh
Merge remote branch 'origin/master' into samual/waypointsprite_edgeoffset
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / vehicles / vehicles_def.qh
index 31e3aefa9ef6399a4c3331db1f52258ee23f2e41..dcb1854f368b45803f828bab8a12bfa0e73e86c0 100644 (file)
@@ -1,9 +1,7 @@
-// #define VEHICLES_CSQC
 // #define VEHICLES_USE_ODE
 #define VEHICLES_ENABLED
 #ifdef VEHICLES_ENABLED
 
-//#define VEHICLES_VIEWROTATE_CROSSHAIR
 //#message "with tZork vehicles (experimental)"
 
 .float vehicle_flags;
@@ -14,15 +12,18 @@ float VHF_HEALTHREGEN   = 16;   /// Vehicles health regenerates
 float VHF_ENERGYREGEN   = 32;   /// Vehicles energy regenerates
 float VHF_DEATHEJECT    = 64;   /// Vehicle ejects pilot upon fatal damage
 float VHF_MOVE_GROUND   = 128;  /// Vehicle moves on gound
-float VHF_MOVE_HOVER    = 256;  /// Vehicle hover close to gound 
+float VHF_MOVE_HOVER    = 256;  /// Vehicle hover close to gound
 float VHF_MOVE_FLY      = 512;  /// Vehicle is airborn
+float VHF_DMGSHAKE      = 1024;
+float VHF_DMGROLL       = 2048;
+float VHF_DMGHEADROLL   = 4096;
 
 .entity gun1;
 .entity gun2;
 
-.float vehicle_health;      /// If self is player this is 0..1 indicating precentage of health left on vehicle. If self is vehile, this is the real health value.
-.float vehicle_energy;      /// If self is player this is 0..1 indicating precentage of energy left on vehicle. If self is vehile, this is the real energy value.
-.float vehicle_shield;      /// If self is player this is 0..1 indicating precentage of shield left on vehicle. If self is vehile, this is the real shield value.
+.float vehicle_health;      /// If self is player this is 0..100 indicating precentage of health left on vehicle. If self is vehile, this is the real health value.
+.float vehicle_energy;      /// If self is player this is 0..100 indicating precentage of energy left on vehicle. If self is vehile, this is the real energy value.
+.float vehicle_shield;      /// If self is player this is 0..100 indicating precentage of shield left on vehicle. If self is vehile, this is the real shield value.
 .entity vehicle_shieldent;  /// Entity to disply the shild effect on damage
 
 .float vehicle_ammo1;   /// If self is player this field's use depends on the individual vehile. If self is vehile, this is the real ammo1 value.
@@ -34,12 +35,15 @@ float VHF_MOVE_FLY      = 512;  /// Vehicle is airborn
 .entity vehicle_viewport;
 .entity vehicle_hudmodel;
 
-#ifdef SVQC
+.float sound_nexttime;
+#define VOL_VEHICLEENGINE 1
+
 .float hud;
 .float dmg_time;
 .float  vehicle_respawntime;
 .void() vehicle_spawn;
 
+void vehicles_exit(float eject);
 var .void(float exit_flags) vehicle_exit;
 float VHEF_NORMAL = 0;  /// User pressed exit key
 float VHEF_EJECT  = 1;  /// User pressed exit key 3 times fast (not implemented) or vehile is dying
@@ -53,27 +57,9 @@ var .void() vehicle_enter;  /// Vehicles custom funciton to be executed when own
 var .void() vehicle_die;    /// Vehicles custom function to be executed when vehile die
 var .void() vehicle_spawn;  /// Vehicles custom fucntion to be efecuted when vehicle (re)spawns
 
-#ifdef VEHICLES_CSQC
-var .void(entity to, float sflags) vehile_send_exta;  /// Vehicles custom send code (for extra bits, stats and whatnot)
-void net_link_vehile();                 /// Initiates csqc networking for vehicle
-#endif //VEHICLES_CSQC
-#endif //SVQC
-
-#ifdef CSQC
-#ifdef VEHICLES_CSQC
-.float vehicle_hud;
-void vehicle_spiderbot_assemble() {};
-void vehicle_racer_assemble() {};
-void vehicle_raptor_assemble() {};
-void vehicle_bumblebee_assemble() {};
-void Net_ReadVehicle(float bIsNew);
-var .void (float sf)vehile_read_exta;
-#endif //VEHICLES_CSQC
-#endif //CSQC
-
 #ifdef VEHICLES_USE_ODE
 void(entity e, float physics_enabled) physics_enable = #540; // enable or disable physics on object
 void(entity e, vector force, vector force_pos) physics_addforce = #541; // apply a force from certain origin, length of force vector is power of force
 void(entity e, vector torque) physics_addtorque = #542; // add relative torque
 #endif  // VEHICLES_USE_ODE
-#endif  // VEHICLES_ENABLED
\ No newline at end of file
+#endif  // VEHICLES_ENABLED