mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
feat: only allow fast lock for driver
This commit is contained in:
@@ -1773,7 +1773,10 @@ function RADAR:Main()
|
|||||||
-- Make sure the speed is larger than the limit, and that there isn't already a locked speed
|
-- Make sure the speed is larger than the limit, and that there isn't already a locked speed
|
||||||
if ( self:IsFastLockEnabled() and convertedSpeed > self:GetFastLimit() and not self:IsAntennaSpeedLocked( ant ) ) then
|
if ( self:IsFastLockEnabled() and convertedSpeed > self:GetFastLimit() and not self:IsAntennaSpeedLocked( ant ) ) then
|
||||||
if ( ( self:OnlyLockFastPlayers() and UTIL:IsPlayerInVeh( av[ant][i].veh ) ) or not self:OnlyLockFastPlayers() ) then
|
if ( ( self:OnlyLockFastPlayers() and UTIL:IsPlayerInVeh( av[ant][i].veh ) ) or not self:OnlyLockFastPlayers() ) then
|
||||||
self:LockAntennaSpeed( ant )
|
if ( PLY:IsDriver() ) then
|
||||||
|
self:LockAntennaSpeed( ant, nil, false )
|
||||||
|
SYNC:LockAntennaSpeed( ant, RADAR:GetAntennaDataPacket( ant ) )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user