From: Mario Date: Tue, 21 Jun 2016 19:31:23 +0000 (+1000) Subject: Don't allow entering enemy team's gunner slots X-Git-Tag: xonotic-v0.8.2~771 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bb589e3f0b183720185d5a5c2aed94818d97d57c;p=xonotic%2Fxonotic-data.pk3dir.git Don't allow entering enemy team's gunner slots --- diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index c7a46d482..28ba057c0 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -884,7 +884,7 @@ void vehicles_enter(entity pl, entity veh) if(autocvar_g_vehicles_enter) // vehicle's touch function should handle this if entering via use key is disabled (TODO) if(veh.vehicle_flags & VHF_MULTISLOT) - if(veh.owner) + if(veh.owner && SAME_TEAM(pl, veh)) { if(!veh.gunner1) if(time >= veh.gun1.phase)