mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-22 05:52:54 +00:00
Airbase Police
This commit is contained in:
@@ -43,7 +43,7 @@ end
|
|||||||
--- @param #AIRBASEPOLICE self
|
--- @param #AIRBASEPOLICE self
|
||||||
function AIRBASEPOLICE:_AirbaseMonitor()
|
function AIRBASEPOLICE:_AirbaseMonitor()
|
||||||
|
|
||||||
for PolygonTaxiID, PolygonTaxi in pairs( self.PolygonsTaxi ) do
|
for PolygonTaxiID, PolygonTaxi in pairs( self.PolygonsTaxiways ) do
|
||||||
self.SetClient:ForEachClientInZone( PolygonTaxi,
|
self.SetClient:ForEachClientInZone( PolygonTaxi,
|
||||||
|
|
||||||
--- @param Client#CLIENT Client
|
--- @param Client#CLIENT Client
|
||||||
@@ -51,7 +51,6 @@ function AIRBASEPOLICE:_AirbaseMonitor()
|
|||||||
if Client:IsAlive() then
|
if Client:IsAlive() then
|
||||||
local VelocityVec3 = Client:GetVelocity()
|
local VelocityVec3 = Client:GetVelocity()
|
||||||
local Velocity = math.abs(VelocityVec3.x) + math.abs(VelocityVec3.y) + math.abs(VelocityVec3.z)
|
local Velocity = math.abs(VelocityVec3.x) + math.abs(VelocityVec3.y) + math.abs(VelocityVec3.z)
|
||||||
Client:Message( "Velocity:" .. Velocity, 1, "Test", "Police" )
|
|
||||||
local IsAboveRunway = Client:IsAboveRunway()
|
local IsAboveRunway = Client:IsAboveRunway()
|
||||||
local IsOnGround = Client:InAir() == false
|
local IsOnGround = Client:InAir() == false
|
||||||
self:T( IsAboveRunway, IsOnGround )
|
self:T( IsAboveRunway, IsOnGround )
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20160611_2126' )
|
env.info( 'Moose Generation Timestamp: 20160611_2131' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@@ -20097,7 +20097,7 @@ end
|
|||||||
--- @param #AIRBASEPOLICE self
|
--- @param #AIRBASEPOLICE self
|
||||||
function AIRBASEPOLICE:_AirbaseMonitor()
|
function AIRBASEPOLICE:_AirbaseMonitor()
|
||||||
|
|
||||||
for PolygonTaxiID, PolygonTaxi in pairs( self.PolygonsTaxi ) do
|
for PolygonTaxiID, PolygonTaxi in pairs( self.PolygonsTaxiways ) do
|
||||||
self.SetClient:ForEachClientInZone( PolygonTaxi,
|
self.SetClient:ForEachClientInZone( PolygonTaxi,
|
||||||
|
|
||||||
--- @param Client#CLIENT Client
|
--- @param Client#CLIENT Client
|
||||||
@@ -20105,7 +20105,6 @@ function AIRBASEPOLICE:_AirbaseMonitor()
|
|||||||
if Client:IsAlive() then
|
if Client:IsAlive() then
|
||||||
local VelocityVec3 = Client:GetVelocity()
|
local VelocityVec3 = Client:GetVelocity()
|
||||||
local Velocity = math.abs(VelocityVec3.x) + math.abs(VelocityVec3.y) + math.abs(VelocityVec3.z)
|
local Velocity = math.abs(VelocityVec3.x) + math.abs(VelocityVec3.y) + math.abs(VelocityVec3.z)
|
||||||
Client:Message( "Velocity:" .. Velocity, 1, "Test", "Police" )
|
|
||||||
local IsAboveRunway = Client:IsAboveRunway()
|
local IsAboveRunway = Client:IsAboveRunway()
|
||||||
local IsOnGround = Client:InAir() == false
|
local IsOnGround = Client:InAir() == false
|
||||||
self:T( IsAboveRunway, IsOnGround )
|
self:T( IsAboveRunway, IsOnGround )
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20160611_2126' )
|
env.info( 'Moose Generation Timestamp: 20160611_2131' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@@ -20097,7 +20097,7 @@ end
|
|||||||
--- @param #AIRBASEPOLICE self
|
--- @param #AIRBASEPOLICE self
|
||||||
function AIRBASEPOLICE:_AirbaseMonitor()
|
function AIRBASEPOLICE:_AirbaseMonitor()
|
||||||
|
|
||||||
for PolygonTaxiID, PolygonTaxi in pairs( self.PolygonsTaxi ) do
|
for PolygonTaxiID, PolygonTaxi in pairs( self.PolygonsTaxiways ) do
|
||||||
self.SetClient:ForEachClientInZone( PolygonTaxi,
|
self.SetClient:ForEachClientInZone( PolygonTaxi,
|
||||||
|
|
||||||
--- @param Client#CLIENT Client
|
--- @param Client#CLIENT Client
|
||||||
@@ -20105,7 +20105,6 @@ function AIRBASEPOLICE:_AirbaseMonitor()
|
|||||||
if Client:IsAlive() then
|
if Client:IsAlive() then
|
||||||
local VelocityVec3 = Client:GetVelocity()
|
local VelocityVec3 = Client:GetVelocity()
|
||||||
local Velocity = math.abs(VelocityVec3.x) + math.abs(VelocityVec3.y) + math.abs(VelocityVec3.z)
|
local Velocity = math.abs(VelocityVec3.x) + math.abs(VelocityVec3.y) + math.abs(VelocityVec3.z)
|
||||||
Client:Message( "Velocity:" .. Velocity, 1, "Test", "Police" )
|
|
||||||
local IsAboveRunway = Client:IsAboveRunway()
|
local IsAboveRunway = Client:IsAboveRunway()
|
||||||
local IsOnGround = Client:InAir() == false
|
local IsOnGround = Client:InAir() == false
|
||||||
self:T( IsAboveRunway, IsOnGround )
|
self:T( IsAboveRunway, IsOnGround )
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user