mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-14 03:40:55 +00:00
Update Fox2.lua
This commit is contained in:
@@ -315,7 +315,7 @@ function FOX2:OnEventShot(EventData)
|
|||||||
|
|
||||||
-- Weapon descriptor.
|
-- Weapon descriptor.
|
||||||
local desc=EventData.Weapon:getDesc()
|
local desc=EventData.Weapon:getDesc()
|
||||||
--self:E({desc=desc})
|
self:E({desc=desc})
|
||||||
|
|
||||||
-- Weapon category: 0=Shell, 1=Missile, 2=Rocket, 3=BOMB
|
-- Weapon category: 0=Shell, 1=Missile, 2=Rocket, 3=BOMB
|
||||||
local weaponcategory=desc.category
|
local weaponcategory=desc.category
|
||||||
@@ -325,7 +325,7 @@ function FOX2:OnEventShot(EventData)
|
|||||||
|
|
||||||
local missilerange=nil
|
local missilerange=nil
|
||||||
if missilecategory then
|
if missilecategory then
|
||||||
missilerange=desc.DescMissile.rangeMaxAltMax
|
missilerange=desc.rangeMaxAltMax
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Debug info.
|
-- Debug info.
|
||||||
|
|||||||
Reference in New Issue
Block a user