Revert "Embedded"

This reverts commit 6a06632a5e.
This commit is contained in:
Sven Van de Velde
2016-05-18 11:00:50 +02:00
parent 6a06632a5e
commit 62d04113d3
4 changed files with 16 additions and 27 deletions

View File

@@ -15340,7 +15340,6 @@ end
-- * @{#MISSILETRAINER.InitBearingOnOff}: Sets by default the display of bearing information of missiles ON of OFF.
-- * @{#MISSILETRAINER.InitMenusOnOff}: Allows to configure the options through the radio menu.
--
--
-- @module MissileTrainer
-- @author FlightControl
@@ -15358,9 +15357,8 @@ MISSILETRAINER = {
-- When a missile is fired a SCHEDULER is set off that follows the missile. When near a certain a client player, the missile will be destroyed.
-- @param #MISSILETRAINER
-- @param #number Distance The distance in meters when a tracked missile needs to be destroyed when close to a player.
-- @param #string MissileTrainerBriefing (Optional) Parameter to provide players with a briefing text for the training.
-- @return #MISSILETRAINER
function MISSILETRAINER:New( Distance, MissileTrainerBriefing )
function MISSILETRAINER:New( Distance )
local self = BASE:Inherit( self, BASE:New() )
self:F( Distance )
@@ -15371,10 +15369,6 @@ function MISSILETRAINER:New( Distance, MissileTrainerBriefing )
self.MessageLastTime = timer.getTime()
self.Distance = Distance / 1000
if MissileTrainerBriefing then
self.MissileTrainerBriefing = MissileTrainerBriefing
end
_EVENTDISPATCHER:OnShot( self._EventShot, self )
@@ -15386,14 +15380,14 @@ function MISSILETRAINER:New( Distance, MissileTrainerBriefing )
local function _Alive( Client )
if self.MissileTrainerBriefing then
Client:Message( self.MissileTrainerBriefing, 15, "HELLO WORLD", "Trainer" )
end
Client:Message( "Hello trainee, welcome to the Missile Trainer.\nGood luck!", 15, "HELLO WORLD", "Trainer" )
if self.MenusOnOff == true then
Client:Message( "Missile Trainer: Use the 'Radio Menu' -> 'Other (F10)' -> 'Missile Trainer' menu options to change the Missile Trainer settings (for all players).", 15, "MENU", "Trainer" )
Client:Message( "Use the 'Radio Menu' -> 'Other (F10)' -> 'Missile Trainer' menu options to change the Missile Trainer settings (for all players).", 15, "MENU", "Trainer" )
Client.MainMenu = MENU_CLIENT:New( Client, "Missile Trainer", nil )
Client.MainMenu = MENU_CLIENT:New( Client, "Missile Trainer", nil ) -- Menu#MENU_CLIENT
Client.MenuMessages = MENU_CLIENT:New( Client, "Messages", Client.MainMenu )
Client.MenuOn = MENU_CLIENT_COMMAND:New( Client, "Messages On", Client.MenuMessages, self._MenuMessages, { MenuSelf = self, MessagesOnOff = true } )