]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/vehicles/cl_vehicles.qh
Optimize vehicle impact code by only calling vlen() if damage would be taken
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / vehicles / cl_vehicles.qh
index 62682e262a5eb280f303b6d852c8af94734fea6c..327074b98641e72631bbb3089ecc3829b008dca5 100644 (file)
@@ -1,26 +1,9 @@
-#ifndef CL_VEHICLES_H
-#define CL_VEHICLES_H
+#pragma once
 
-// vehicle cvars
-var float autocvar_cl_vehicles_alarm = 1;
-var float autocvar_cl_vehicles_hud_tactical = 1;
+vector vehicleHud_Size;
+vector vehicleHud_Pos;
 
-void Net_AuXair2(float bIsNew);
-void bumble_raygun_read(float bIsNew);
-void Net_VehicleSetup();
-void CSQC_BUMBLE_GUN_HUD();
-
-void RaptorCBShellfragDraw();
+void RaptorCBShellfragDraw(entity this);
 void RaptorCBShellfragToss(vector _org, vector _vel, vector _ang);
 
-#define HUD_GETVEHICLESTATS \
-       local noref float vh_health     = getstati(STAT_VEHICLESTAT_HEALTH); \
-       local noref float shield        = getstati(STAT_VEHICLESTAT_SHIELD); \
-       local noref float energy        = getstati(STAT_VEHICLESTAT_ENERGY); \
-       local noref float ammo1         = getstati(STAT_VEHICLESTAT_AMMO1); \
-       local noref float reload1       = getstati(STAT_VEHICLESTAT_RELOAD1); \
-       local noref float ammo2         = getstati(STAT_VEHICLESTAT_AMMO2); \
-       local noref float reload2       = getstati(STAT_VEHICLESTAT_RELOAD2);
-
-#endif
-       
\ No newline at end of file
+#define weapon2mode STAT(VEHICLESTAT_W2MODE)