@jtff/miztemplate-lib 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lua/lib/HoundElint.lua +7101 -7101
- package/lua/lib/Moose_.lua +15 -9
- package/package.json +1 -1
package/lua/lib/Moose_.lua
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
env.info('*** MOOSE GITHUB Commit Hash ID: 2024-10-
|
|
1
|
+
env.info('*** MOOSE GITHUB Commit Hash ID: 2024-10-21T11:33:14+02:00-cd178d6a8cd8467af0d09f9669a779d84991ef58 ***')
|
|
2
2
|
if not MOOSE_DEVELOPMENT_FOLDER then
|
|
3
3
|
MOOSE_DEVELOPMENT_FOLDER='Scripts'
|
|
4
4
|
end
|
|
@@ -21658,7 +21658,7 @@ local Eventtext=tostring(Event.text)
|
|
|
21658
21658
|
if Eventtext~=nil then
|
|
21659
21659
|
if self:_MatchTag(Eventtext)then
|
|
21660
21660
|
local matchtable=self:_MatchKeywords(Eventtext)
|
|
21661
|
-
self:MarkAdded(Eventtext,matchtable,coord,Event.idx,coalition)
|
|
21661
|
+
self:MarkAdded(Eventtext,matchtable,coord,Event.idx,coalition,Event.PlayerName,Event)
|
|
21662
21662
|
end
|
|
21663
21663
|
end
|
|
21664
21664
|
elseif Event.id==world.event.S_EVENT_MARK_CHANGE then
|
|
@@ -21667,7 +21667,7 @@ local Eventtext=tostring(Event.text)
|
|
|
21667
21667
|
if Eventtext~=nil then
|
|
21668
21668
|
if self:_MatchTag(Eventtext)then
|
|
21669
21669
|
local matchtable=self:_MatchKeywords(Eventtext)
|
|
21670
|
-
self:MarkChanged(Eventtext,matchtable,coord,Event.idx,coalition)
|
|
21670
|
+
self:MarkChanged(Eventtext,matchtable,coord,Event.idx,coalition,Event.PlayerName,Event)
|
|
21671
21671
|
end
|
|
21672
21672
|
end
|
|
21673
21673
|
elseif Event.id==world.event.S_EVENT_MARK_REMOVED then
|
|
@@ -27814,7 +27814,7 @@ return threat,maxtl
|
|
|
27814
27814
|
end
|
|
27815
27815
|
return nil,nil
|
|
27816
27816
|
end
|
|
27817
|
-
function GROUP:GetCustomCallSign(ShortCallsign,Keepnumber,CallsignTranslations)
|
|
27817
|
+
function GROUP:GetCustomCallSign(ShortCallsign,Keepnumber,CallsignTranslations,CustomFunction,...)
|
|
27818
27818
|
local callsign="Ghost 1"
|
|
27819
27819
|
if self:IsAlive()then
|
|
27820
27820
|
local IsPlayer=self:IsPlayer()
|
|
@@ -27825,6 +27825,12 @@ local callnumber=string.match(shortcallsign,"(%d+)$")or"91"
|
|
|
27825
27825
|
local callnumbermajor=string.char(string.byte(callnumber,1))
|
|
27826
27826
|
local callnumberminor=string.char(string.byte(callnumber,2))
|
|
27827
27827
|
local personalized=false
|
|
27828
|
+
local playername=IsPlayer==true and self:GetPlayerName()or shortcallsign
|
|
27829
|
+
if CustomFunction and IsPlayer then
|
|
27830
|
+
local arguments=arg or{}
|
|
27831
|
+
local callsign=CustomFunction(groupname,playername,unpack(arguments))
|
|
27832
|
+
return callsign
|
|
27833
|
+
end
|
|
27828
27834
|
if CallsignTranslations and CallsignTranslations[callsignroot]then
|
|
27829
27835
|
callsignroot=CallsignTranslations[callsignroot]
|
|
27830
27836
|
elseif IsPlayer and string.find(groupname,"#")then
|
|
@@ -27834,8 +27840,8 @@ else
|
|
|
27834
27840
|
shortcallsign=string.match(groupname,"#%s*([%a]+)")or"Ghost"
|
|
27835
27841
|
end
|
|
27836
27842
|
personalized=true
|
|
27837
|
-
elseif IsPlayer and string.find(
|
|
27838
|
-
shortcallsign=string.match(
|
|
27843
|
+
elseif IsPlayer and string.find(playername,"|")then
|
|
27844
|
+
shortcallsign=string.match(playername,"|%s*([%a]+)")or string.match(self:GetPlayerName(),"|%s*([%d]+)")or"Ghost"
|
|
27839
27845
|
personalized=true
|
|
27840
27846
|
end
|
|
27841
27847
|
if personalized then
|
|
@@ -56003,7 +56009,7 @@ end
|
|
|
56003
56009
|
self:_CheckRecoveryTimes()
|
|
56004
56010
|
self.Tqueue=timer.getTime()-60
|
|
56005
56011
|
self:HandleEvent(EVENTS.Birth)
|
|
56006
|
-
self:HandleEvent(EVENTS.
|
|
56012
|
+
self:HandleEvent(EVENTS.RunwayTouch)
|
|
56007
56013
|
self:HandleEvent(EVENTS.EngineShutdown)
|
|
56008
56014
|
self:HandleEvent(EVENTS.Takeoff)
|
|
56009
56015
|
self:HandleEvent(EVENTS.Crash)
|
|
@@ -56350,7 +56356,7 @@ end
|
|
|
56350
56356
|
function AIRBOSS:onafterStop(From,Event,To)
|
|
56351
56357
|
self:I(self.lid..string.format("Stopping airboss script."))
|
|
56352
56358
|
self:UnHandleEvent(EVENTS.Birth)
|
|
56353
|
-
self:UnHandleEvent(EVENTS.
|
|
56359
|
+
self:UnHandleEvent(EVENTS.RunwayTouch)
|
|
56354
56360
|
self:UnHandleEvent(EVENTS.EngineShutdown)
|
|
56355
56361
|
self:UnHandleEvent(EVENTS.Takeoff)
|
|
56356
56362
|
self:UnHandleEvent(EVENTS.Crash)
|
|
@@ -58457,7 +58463,7 @@ self:_AddF10Commands(_unitName)
|
|
|
58457
58463
|
self:ScheduleOnce(1,self._NewPlayer,self,_unitName)
|
|
58458
58464
|
end
|
|
58459
58465
|
end
|
|
58460
|
-
function AIRBOSS:
|
|
58466
|
+
function AIRBOSS:OnEventRunwayTouch(EventData)
|
|
58461
58467
|
self:F3({eventland=EventData})
|
|
58462
58468
|
if EventData==nil then
|
|
58463
58469
|
self:E(self.lid.."ERROR: EventData=nil in event LAND!")
|