From: Mario Date: Mon, 25 Jul 2016 07:30:35 +0000 (+1000) Subject: Don't allow bumblebee to swim X-Git-Tag: xonotic-v0.8.2~700^2~32 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ee2d1d4e71a444d2a993cf4b1be47b86febe464e;p=xonotic%2Fxonotic-data.pk3dir.git Don't allow bumblebee to swim --- diff --git a/qcsrc/common/vehicles/vehicle/bumblebee.qc b/qcsrc/common/vehicles/vehicle/bumblebee.qc index 33fb571c3..ff7f333ab 100644 --- a/qcsrc/common/vehicles/vehicle/bumblebee.qc +++ b/qcsrc/common/vehicles/vehicle/bumblebee.qc @@ -46,6 +46,7 @@ float autocvar_g_vehicle_bumblebee_turnspeed = 120; float autocvar_g_vehicle_bumblebee_pitchspeed = 60; float autocvar_g_vehicle_bumblebee_pitchlimit = 60; float autocvar_g_vehicle_bumblebee_friction = 0.5; +bool autocvar_g_vehicle_bumblebee_swim = false; float autocvar_g_vehicle_bumblebee_energy = 500; float autocvar_g_vehicle_bumblebee_energy_regen = 50; @@ -901,6 +902,9 @@ METHOD(Bumblebee, vr_spawn, void(Bumblebee thisveh, entity instance)) } } + if(!autocvar_g_vehicle_bumblebee_swim) + instance.dphitcontentsmask |= DPCONTENTS_LIQUIDSMASK; + instance.vehicle_health = autocvar_g_vehicle_bumblebee_health; instance.vehicle_shield = autocvar_g_vehicle_bumblebee_shield; instance.solid = SOLID_BBOX;