]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't allow entering enemy team's gunner slots
authorMario <mario@smbclan.net>
Tue, 21 Jun 2016 19:31:23 +0000 (05:31 +1000)
committerMario <mario@smbclan.net>
Tue, 21 Jun 2016 19:31:23 +0000 (05:31 +1000)
qcsrc/common/vehicles/sv_vehicles.qc

index c7a46d482557960ddffbf4d6472ecc4a92ae1642..28ba057c0d41ad3fdefb84b2081fd42fb5a80cc0 100644 (file)
@@ -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)