mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/master' into branch
# Conflicts: # Moose Development/Moose/Ops/CTLD.lua # Moose Setup/Moose.files
This commit is contained in:
commit
9bb18a9df2
@ -1482,7 +1482,7 @@ function EVENT:onEvent( Event )
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Weapon.
|
-- Weapon.
|
||||||
if Event.weapon and type(Event.weapon) == "table" then
|
if Event.weapon and type(Event.weapon) == "table" and Event.weapon.isExist and Event.weapon:isExist() then
|
||||||
Event.Weapon = Event.weapon
|
Event.Weapon = Event.weapon
|
||||||
Event.WeaponName = Event.weapon:isExist() and Event.weapon:getTypeName() or "Unknown Weapon"
|
Event.WeaponName = Event.weapon:isExist() and Event.weapon:getTypeName() or "Unknown Weapon"
|
||||||
Event.WeaponUNIT = CLIENT:Find( Event.Weapon, '', true ) -- Sometimes, the weapon is a player unit!
|
Event.WeaponUNIT = CLIENT:Find( Event.Weapon, '', true ) -- Sometimes, the weapon is a player unit!
|
||||||
|
|||||||
@ -528,6 +528,7 @@ function NET:SendChatToPlayer(Message, ToPlayer, FromPlayer)
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[ not in 2.97 MSE any longer
|
||||||
--- Load a specific mission.
|
--- Load a specific mission.
|
||||||
-- @param #NET self
|
-- @param #NET self
|
||||||
-- @param #string Path and Mission
|
-- @param #string Path and Mission
|
||||||
@ -550,6 +551,7 @@ function NET:LoadNextMission()
|
|||||||
outcome = net.load_next_mission()
|
outcome = net.load_next_mission()
|
||||||
return outcome
|
return outcome
|
||||||
end
|
end
|
||||||
|
--]]
|
||||||
|
|
||||||
--- Return a table of players currently connected to the server.
|
--- Return a table of players currently connected to the server.
|
||||||
-- @param #NET self
|
-- @param #NET self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user