mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
@@ -490,11 +490,11 @@ function Hercules_Cargo.Cargo_Initialize(initiator, Cargo_Contents, Cargo_Type_n
|
||||
Herc_Cargo[Herc_j].all_cargo_survive_to_the_ground = true
|
||||
else
|
||||
------------------------------------------------------------------------------
|
||||
if Hercules_Cargo.Calculate_Object_Height_AGL(Cargo_Drop_initiator) < 100.0 then--aircraft more than 10m but less than 100m above ground
|
||||
if Hercules_Cargo.Calculate_Object_Height_AGL(Cargo_Drop_initiator) < 152.4 then--aircraft more than 30ft but less than 500ft above ground
|
||||
Herc_Cargo[Herc_j].all_cargo_gets_destroyed = true
|
||||
else
|
||||
------------------------------------------------------------------------------
|
||||
Herc_Cargo[Herc_j].destroy_cargo_dropped_without_parachute = true--aircraft more than 100m above ground
|
||||
Herc_Cargo[Herc_j].destroy_cargo_dropped_without_parachute = true--aircraft more than 152.4m (500ft)above ground
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -568,7 +568,7 @@ function Hercules_Cargo.Hercules_Cargo_Drop_Events:onEvent(Cargo_Drop_Event)
|
||||
local Cargo_Container_Enclosed = Hercules_Cargo.types[GT_DisplayName]['container']
|
||||
Hercules_Cargo.Cargo_Initialize(Cargo_Drop_Event.initiator, Cargo_Drop_Event.weapon, GT_Name, Cargo_Container_Enclosed)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
world.addEventHandler(Hercules_Cargo.Hercules_Cargo_Drop_Events)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user