]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/vehicles/cl_vehicles.qc
Spawnfunc whitelist
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / vehicles / cl_vehicles.qc
index 2511defb43860a8baa577b13aed7884329d601cf..b6c8844abd8028920814b047c0b3b62202fa7326 100644 (file)
@@ -27,7 +27,7 @@ void vehicle_alarm(entity e, int ch, string s0und)
 }
 
 void AuxiliaryXhair_Draw2D()
-{
+{SELFPARAM();
        if (scoreboard_showscores)
                return;
 
@@ -73,7 +73,7 @@ void Net_AuXair2(bool bIsNew)
 }
 
 void Net_VehicleSetup()
-{
+{SELFPARAM();
        int hud_id = ReadByte();
 
        // hud_id == 0 means we exited a vehicle, so stop alarm sound/s
@@ -119,7 +119,7 @@ void Vehicles_drawHUD(
        string iconAmmo2,
        vector colorAmmo2,
        string crosshair)
-{
+{SELFPARAM();
        if(autocvar_r_letterbox)
                return;
 
@@ -295,7 +295,7 @@ void Vehicles_drawHUD(
        }
 
        // Bumblebee gunner crosshairs
-       if(hud == VEH_BUMBLEBEE)
+       if(hud == VEH_BUMBLEBEE.vehicleid)
        {
                tmpSize = '1 1 1' * hud_fontsize;
                tmpPos.x = hudPos.x + hudSize.x * (520/768);
@@ -314,7 +314,7 @@ void Vehicles_drawHUD(
        }
 
        // Raptor bomb crosshair
-       if(hud == VEH_RAPTOR && weapon2mode != RSM_FLARE)
+       if(hud == VEH_RAPTOR.vehicleid && weapon2mode != RSM_FLARE)
        {
                vector where;