mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed speed, and # of warnings
This commit is contained in:
parent
8556ee5128
commit
6f26394bcf
@ -89,12 +89,12 @@ function AIRBASEPOLICE_BASE:New( SetClient, Airbases )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Template
|
-- -- Template
|
||||||
local TemplateBoundary = GROUP:FindByName( "Template Boundary" )
|
-- local TemplateBoundary = GROUP:FindByName( "Template Boundary" )
|
||||||
self.Airbases.Template.ZoneBoundary = ZONE_POLYGON:New( "Template Boundary", TemplateBoundary ):SmokeZone(POINT_VEC3.SmokeColor.White):Flush()
|
-- self.Airbases.Template.ZoneBoundary = ZONE_POLYGON:New( "Template Boundary", TemplateBoundary ):SmokeZone(POINT_VEC3.SmokeColor.White):Flush()
|
||||||
|
--
|
||||||
local TemplateRunway1 = GROUP:FindByName( "Template Runway 1" )
|
-- local TemplateRunway1 = GROUP:FindByName( "Template Runway 1" )
|
||||||
self.Airbases.Template.ZoneRunways[1] = ZONE_POLYGON:New( "Template Runway 1", TemplateRunway1 ):SmokeZone(POINT_VEC3.SmokeColor.Red):Flush()
|
-- self.Airbases.Template.ZoneRunways[1] = ZONE_POLYGON:New( "Template Runway 1", TemplateRunway1 ):SmokeZone(POINT_VEC3.SmokeColor.Red):Flush()
|
||||||
|
|
||||||
self.SetClient:ForEachClient(
|
self.SetClient:ForEachClient(
|
||||||
--- @param Client#CLIENT Client
|
--- @param Client#CLIENT Client
|
||||||
@ -174,7 +174,7 @@ function AIRBASEPOLICE_BASE:_AirbaseMonitor()
|
|||||||
self:T( SpeedingWarnings )
|
self:T( SpeedingWarnings )
|
||||||
|
|
||||||
if SpeedingWarnings <= 3 then
|
if SpeedingWarnings <= 3 then
|
||||||
Client:Message( "You are speeding on the taxiway! Slow down or you will be removed from this airbase! Your current velocity is " .. string.format( "%2.0f km/h", Velocity ), 5, "Warning " .. SpeedingWarnings .. " / 5" )
|
Client:Message( "You are speeding on the taxiway! Slow down or you will be removed from this airbase! Your current velocity is " .. string.format( "%2.0f km/h", Velocity ), 5, "Warning " .. SpeedingWarnings .. " / 3" )
|
||||||
Client:SetState( self, "Warnings", SpeedingWarnings + 1 )
|
Client:SetState( self, "Warnings", SpeedingWarnings + 1 )
|
||||||
else
|
else
|
||||||
MESSAGE:New( "Player " .. Client:GetPlayerName() .. " has been removed from the airbase, due to a speeding violation ...", 10, "Airbase Police" ):ToAll()
|
MESSAGE:New( "Player " .. Client:GetPlayerName() .. " has been removed from the airbase, due to a speeding violation ...", 10, "Airbase Police" ):ToAll()
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20160708_0526' )
|
env.info( 'Moose Generation Timestamp: 20160708_0542' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@ -22023,12 +22023,12 @@ function AIRBASEPOLICE_BASE:New( SetClient, Airbases )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Template
|
-- -- Template
|
||||||
local TemplateBoundary = GROUP:FindByName( "Template Boundary" )
|
-- local TemplateBoundary = GROUP:FindByName( "Template Boundary" )
|
||||||
self.Airbases.Template.ZoneBoundary = ZONE_POLYGON:New( "Template Boundary", TemplateBoundary ):SmokeZone(POINT_VEC3.SmokeColor.White):Flush()
|
-- self.Airbases.Template.ZoneBoundary = ZONE_POLYGON:New( "Template Boundary", TemplateBoundary ):SmokeZone(POINT_VEC3.SmokeColor.White):Flush()
|
||||||
|
--
|
||||||
local TemplateRunway1 = GROUP:FindByName( "Template Runway 1" )
|
-- local TemplateRunway1 = GROUP:FindByName( "Template Runway 1" )
|
||||||
self.Airbases.Template.ZoneRunways[1] = ZONE_POLYGON:New( "Template Runway 1", TemplateRunway1 ):SmokeZone(POINT_VEC3.SmokeColor.Red):Flush()
|
-- self.Airbases.Template.ZoneRunways[1] = ZONE_POLYGON:New( "Template Runway 1", TemplateRunway1 ):SmokeZone(POINT_VEC3.SmokeColor.Red):Flush()
|
||||||
|
|
||||||
self.SetClient:ForEachClient(
|
self.SetClient:ForEachClient(
|
||||||
--- @param Client#CLIENT Client
|
--- @param Client#CLIENT Client
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20160708_0526' )
|
env.info( 'Moose Generation Timestamp: 20160708_0542' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@ -22023,12 +22023,12 @@ function AIRBASEPOLICE_BASE:New( SetClient, Airbases )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Template
|
-- -- Template
|
||||||
local TemplateBoundary = GROUP:FindByName( "Template Boundary" )
|
-- local TemplateBoundary = GROUP:FindByName( "Template Boundary" )
|
||||||
self.Airbases.Template.ZoneBoundary = ZONE_POLYGON:New( "Template Boundary", TemplateBoundary ):SmokeZone(POINT_VEC3.SmokeColor.White):Flush()
|
-- self.Airbases.Template.ZoneBoundary = ZONE_POLYGON:New( "Template Boundary", TemplateBoundary ):SmokeZone(POINT_VEC3.SmokeColor.White):Flush()
|
||||||
|
--
|
||||||
local TemplateRunway1 = GROUP:FindByName( "Template Runway 1" )
|
-- local TemplateRunway1 = GROUP:FindByName( "Template Runway 1" )
|
||||||
self.Airbases.Template.ZoneRunways[1] = ZONE_POLYGON:New( "Template Runway 1", TemplateRunway1 ):SmokeZone(POINT_VEC3.SmokeColor.Red):Flush()
|
-- self.Airbases.Template.ZoneRunways[1] = ZONE_POLYGON:New( "Template Runway 1", TemplateRunway1 ):SmokeZone(POINT_VEC3.SmokeColor.Red):Flush()
|
||||||
|
|
||||||
self.SetClient:ForEachClient(
|
self.SetClient:ForEachClient(
|
||||||
--- @param Client#CLIENT Client
|
--- @param Client#CLIENT Client
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user