mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
FunkMan
**RANGE** - Changed keyword in result tables to "command" for compatibility with DCSServerBot **AIRBOSS** - Changed keyword in result tables to "command" for compatibility with DCSServerBot - Fix bug in Alt and AoA data round function when creating trapsheet data **SOCKET** - Changed for compatibility with DCSServerBot
This commit is contained in:
parent
8f9308f349
commit
ac71e38d96
@ -1962,7 +1962,7 @@ function RANGE:OnEventShot( EventData )
|
|||||||
local _results = self.bombPlayerResults[_playername]
|
local _results = self.bombPlayerResults[_playername]
|
||||||
|
|
||||||
local result = {} -- #RANGE.BombResult
|
local result = {} -- #RANGE.BombResult
|
||||||
result.dataType = "Bomb Result"
|
result.command=SOCKET.DataType.BOMBRESULT
|
||||||
result.name = _closetTarget.name or "unknown"
|
result.name = _closetTarget.name or "unknown"
|
||||||
result.distance = _distance
|
result.distance = _distance
|
||||||
result.radial = _closeCoord:HeadingTo( impactcoord )
|
result.radial = _closeCoord:HeadingTo( impactcoord )
|
||||||
@ -3112,7 +3112,7 @@ function RANGE:_CheckInZone( _unitName )
|
|||||||
|
|
||||||
-- Strafe result.
|
-- Strafe result.
|
||||||
local result = {} -- #RANGE.StrafeResult
|
local result = {} -- #RANGE.StrafeResult
|
||||||
result.dataType="Strafe Result"
|
result.command=SOCKET.DataType.STRAFERESULT
|
||||||
result.player=_playername
|
result.player=_playername
|
||||||
result.name=_result.zone.name or "unknown"
|
result.name=_result.zone.name or "unknown"
|
||||||
result.time = timer.getAbsTime()
|
result.time = timer.getAbsTime()
|
||||||
|
|||||||
@ -17946,12 +17946,12 @@ function AIRBOSS:onafterLSOGrade(From, Event, To, playerData, grade)
|
|||||||
local ts=playerData.trapsheet[i] --#AIRBOSS.GrooveData
|
local ts=playerData.trapsheet[i] --#AIRBOSS.GrooveData
|
||||||
table.insert(trapsheet.X, UTILS.Round(ts.X, 1))
|
table.insert(trapsheet.X, UTILS.Round(ts.X, 1))
|
||||||
table.insert(trapsheet.Z, UTILS.Round(ts.Z, 1))
|
table.insert(trapsheet.Z, UTILS.Round(ts.Z, 1))
|
||||||
table.insert(trapsheet.AoA, UTILS.Round(ts.AoA), 2)
|
table.insert(trapsheet.AoA, UTILS.Round(ts.AoA, 2))
|
||||||
table.insert(trapsheet.Alt, UTILS.Round(ts.Alt), 1)
|
table.insert(trapsheet.Alt, UTILS.Round(ts.Alt, 1))
|
||||||
end
|
end
|
||||||
|
|
||||||
local result={}
|
local result={}
|
||||||
result.dataType="Trap Sheet"
|
result.command=SOCKET.DataType.LSOGRADE
|
||||||
result.name=playerData.name
|
result.name=playerData.name
|
||||||
result.trapsheet=trapsheet
|
result.trapsheet=trapsheet
|
||||||
result.airframe=grade.airframe
|
result.airframe=grade.airframe
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
-- @field #table json JSON.
|
-- @field #table json JSON.
|
||||||
-- @extends Core.Fsm#FSM
|
-- @extends Core.Fsm#FSM
|
||||||
|
|
||||||
--- **It is far more important to be able to hit the target than it is to haggle over who makes a weapon or who pulls a trigger** -- Dwight D Eisenhower
|
--- **At times I feel like a socket that remembers its tooth.** -- Saul Bellow
|
||||||
--
|
--
|
||||||
-- ===
|
-- ===
|
||||||
--
|
--
|
||||||
@ -41,18 +41,16 @@ SOCKET = {
|
|||||||
lid = nil,
|
lid = nil,
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Data type.
|
--- Data type. This is the keyword the socket listener uses.
|
||||||
-- @field #string TEXT Plain text.
|
-- @field #string TEXT Plain text.
|
||||||
-- @field #string BOMB Range bombing.
|
-- @field #string BOMBRESULT Range bombing.
|
||||||
-- @field #string STRAFE Range strafeing result.
|
-- @field #string STRAFERESULT Range strafeing result.
|
||||||
-- @field #string LSOGRADE Airboss LSO grade.
|
-- @field #string LSOGRADE Airboss LSO grade.
|
||||||
-- @field #string TRAPSHEET Airboss trap sheet.
|
|
||||||
SOCKET.DataType={
|
SOCKET.DataType={
|
||||||
TEXT="Text",
|
TEXT="moose_text",
|
||||||
RANGEBOMB="Bomb Result",
|
BOMBRESULT="moose_bomb_result",
|
||||||
RANGESTRAFE="Strafe Run",
|
STRAFERESULT="moose_strafe_result",
|
||||||
LSOGRADE="LSO Grade",
|
LSOGRADE="moose_lso_grade",
|
||||||
TRAPSHEET="Trapsheet",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -141,7 +139,7 @@ function SOCKET:SendText(Text)
|
|||||||
|
|
||||||
local message={}
|
local message={}
|
||||||
|
|
||||||
message.dataType = "Text Message"
|
message.command = SOCKET.DataType.TEXT
|
||||||
message.text = Text
|
message.text = Text
|
||||||
|
|
||||||
self:SendTable(message)
|
self:SendTable(message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user