From dd159affa2777e935cb64db5f78d43a2704f607d Mon Sep 17 00:00:00 2001
From: MooseBotter The Defender Default Settings over all Squadrons. flash messages to players
The Defender Default Settings over all Squadrons.
- - - -flash messages to players
-The Defender Default Settings over all Squadrons.
- - - -flash messages to players
-The Defender Default Settings over all Squadrons.
- - - -flash messages to players
-The Defender Default Settings over all Squadrons.
- - - -The Defender Default Settings over all Squadrons.
- - - -The Defender Default Settings over all Squadrons.
- - - -The Defender Default Settings over all Squadrons.
- - - -Set destination airbase for next :Route() command.
+ +Aircraft is on a depoly mission.
+Set destination airbase for next :Route() command.
+ +Aircraft is on a depoly mission.
+Set destination airbase for next :Route() command.
+ +Aircraft is on a depoly mission.
+Set destination airbase for next :Route() command.
+ +Aircraft is on a depoly mission.
+meter
-kph
-meter
-kph
-meter
-kph
-meter
-kph
-self.CargoObject:Destroy()
- -Now we spawn the new group based on the template created.
+Handles the OnPlayerLeaveUnit event to clean the active players table.
+DATABASE:_GetGenericStaticCargoGroupTemplate(Name, Typename, Mass, Coalition, Country)
Get a generic static cargo group template from scratch for dynamic cargo spawns register.
Get a generic static cargo group template from scratch for dynamic cargo spawns register.
+ + +Does not register the template!
+ +DATABASE
++ #string + Name +
+Name of the static.
+ ++ #string + Typename +
+Typename of the static. Defaults to "container_cargo".
+ ++ #number + Mass +
+Mass of the static. Defaults to 0.
+ ++ #number + Coalition +
+Coalition of the static. Defaults to coalition.side.BLUE.
+ ++ #number + Country +
+Country of the static. Defaults to country.id.GERMANY.
+ +#table:
+Static template table.
+ +Stop the SPAWN InitRepeat function (EVENT handler for takeoff, land and engine shutdown)
SPAWN:_TranslateRotate(SpawnIndex, SpawnRootX, SpawnRootY, SpawnX, SpawnY, SpawnAngle)
The AI is on by default when spawning a group.
-Don't repeat the group from Take-Off till Landing and back Take-Off by ReSpawning.
- @@ -3942,20 +3967,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau - - - -The internal counter of the amount of spawning the has happened since SpawnStart.
-By default, no InitLimit
+SPAWN.SpawnInitLivery + + + +we arrived here seeing that self.SpawnInitSADL == nil, but now that we have a SADL (num), we also need to set it to self.SpawnInitSADL in case + we need to get the next SADL from _DATABASE, or else UTILS.OctalToDecimal() will fail in GetNextSADL
+Stop the SPAWN InitRepeat function (EVENT handler for takeoff, land and engine shutdown)
+ +SPAWN
+self
+ + local spawn = SPAWN:New("Template Group")
+ :InitRepeatOnEngineShutDown()
+ local plane = spawn:Spawn() -- it is important that we keep the SPAWN object and do not overwrite it with the resulting GROUP object by just calling :Spawn()
+
+ -- later on
+ spawn:StopRepeat()
+
+The AI is on by default when spawning a group.
-The internal counter of the amount of spawning the has happened since SpawnStart.
-By default, no InitLimit
+SPAWN.SpawnInitLivery + + + +we arrived here seeing that self.SpawnInitSADL == nil, but now that we have a SADL (num), we also need to set it to self.SpawnInitSADL in case + we need to get the next SADL from _DATABASE, or else UTILS.OctalToDecimal() will fail in GetNextSADL
+SPAWNSTATIC:AddCargoResource(Type, Name, Amount, CombinedWeight)
(User/Cargo) Add to resource table for STATIC object that should be spawned containing storage objects.
+SPAWNSTATIC:NewFromType(StaticType, StaticCategory, CountryID)
Creates the main object to spawn a Wrapper.Static from a given type.
+SPAWNSTATIC:OnSpawnStatic(SpawnCallBackFunction, SpawnFunctionArguments, ...)
Allows to place a CallFunction hook when a new static spawns.
+(User/Cargo) Resets resource table to zero for STATIC object that should be spawned containing storage objects.
Creates a new Wrapper.Static from a Core.Zone.
+(Internal/Cargo) Init the resource table for STATIC object that should be spawned containing storage objects.
Type of the static.
+ + + +(User/Cargo) Add to resource table for STATIC object that should be spawned containing storage objects.
+ + +Inits the object table if necessary and sets it to be cargo for helicopters.
+ +SPAWNSTATIC
++ #string + Type +
+Type of cargo. Known types are: STORAGE.Type.WEAPONS, STORAGE.Type.LIQUIDS, STORAGE.Type.AIRCRAFT. Liquids are fuel.
+ ++ #string + Name +
+Name of the cargo type. Liquids can be STORAGE.LiquidName.JETFUEL, STORAGE.LiquidName.GASOLINE, STORAGE.LiquidName.MW50 and STORAGE.LiquidName.DIESEL. The currently available weapon items are available in the ENUMS.Storage.weapons, e.g. ENUMS.Storage.weapons.bombs.Mk_82Y. Aircraft go by their typename.
+ #number + Amount +
+of tons (liquids) or number (everything else) to add.
+ ++ #number + CombinedWeight +
+Combined weight to be set to this static cargo object. NOTE - some static cargo objects have fixed weights!
+ +self
+ +Allows to place a CallFunction hook when a new static spawns.
+ + +The provided method will be called when a new group is spawned, including its given parameters. +The first parameter of the SpawnFunction is the Wrapper.Static#STATIC that was spawned.
+ +SPAWNSTATIC
++ #function + SpawnCallBackFunction +
+The function to be called when a group spawns.
+ ++ SpawnFunctionArguments +
+A random amount of arguments to be provided to the function when the group spawns.
+ ++ ... +
+self
+ +(User/Cargo) Resets resource table to zero for STATIC object that should be spawned containing storage objects.
+ + +Inits the object table if necessary and sets it to be cargo for helicopters. +Handy if you spawn from cargo statics which have resources already set.
+ +(Internal/Cargo) Init the resource table for STATIC object that should be spawned containing storage objects.
+ + +NOTE that you have to init many other parameters as the resources.
+ +SPAWNSTATIC
++ #number + CombinedWeight +
+The weight this cargo object should have (some have fixed weights!), defaults to 1kg.
+ +self
+ +Type of the static.
+ + + +Function to get the HQ object for further use
-Table of Core.Zone#ZONE Zones Consider SAM groups in this zone(s) only for this MANTIS instance, must be handed as #table of Zone objects.
- - - -The ME name of the HQ object
- - - -switch alarm state RED
- @@ -4816,9 +4774,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau - -self.SAMCheckRanges = {}
- @@ -8787,8 +8742,8 @@ E.g. `mymantis:SetAdvancedMode(true, 90)`Table of Core.Zone#ZONE Zones Consider SAM groups in this zone(s) only for this MANTIS instance, must be handed as #table of Zone objects.
- - - -The ME name of the HQ object
- - - -switch alarm state RED
- @@ -9530,9 +9449,6 @@ E.g. `mymantis:SetAdvancedMode(true, 90)` - -self.SAMCheckRanges = {}
- diff --git a/Documentation/Functional.Movement.html b/Documentation/Functional.Movement.html index a9b58625c..d00df3db5 100644 --- a/Documentation/Functional.Movement.html +++ b/Documentation/Functional.Movement.html @@ -2368,20 +2368,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defauContains the counter how many units are currently alive.
- -Contains the counter how many units are currently alive.
- -Stop the SPAWN InitRepeat function (EVENT handler for takeoff, land and engine shutdown)
RAT:_TranslateRotate(SpawnIndex, SpawnRootX, SpawnRootY, SpawnX, SpawnY, SpawnAngle)
Stop the SPAWN InitRepeat function (EVENT handler for takeoff, land and engine shutdown)
+ +self
+ + local spawn = SPAWN:New("Template Group")
+ :InitRepeatOnEngineShutDown()
+ local plane = spawn:Spawn() -- it is important that we keep the SPAWN object and do not overwrite it with the resulting GROUP object by just calling :Spawn()
+
+ -- later on
+ spawn:StopRepeat()
+
+Radio queue of LSO.
+Radio queue of marshal.
+Radio queue of LSO.
+Radio queue of marshal.
+Radio queue of LSO.
+Radio queue of marshal.
+Data table at each position in the groove. Elements are of type AIRBOSS.GrooveData.
- - - -Set section lead of player flight.
- @@ -41119,7 +41171,7 @@ When moose is loading dynamically (for moose class development), tracing is swit -Set new time stamp.
+Set time stamp.
diff --git a/Documentation/Ops.CSAR.html b/Documentation/Ops.CSAR.html index c2b1f6ba1..20584f1e0 100644 --- a/Documentation/Ops.CSAR.html +++ b/Documentation/Ops.CSAR.html @@ -2699,6 +2699,12 @@ Dropped troop noMessage and forcedesc parameters aren't saved.table of CSAR unit names
+contain a table for each SAR with all units he has with the original names
+counter for saved pilots
+ +counter for successful rescue landings at FARP/AFB/MASH
+ +table of CSAR unit names
+contain a table for each SAR with all units he has with the original names
+counter for saved pilots
+ +counter for successful rescue landings at FARP/AFB/MASH
+ +table of CSAR unit names
+contain a table for each SAR with all units he has with the original names
+counter for saved pilots
+ +counter for successful rescue landings at FARP/AFB/MASH
+ +The Chinhook comes with the option to use the ground crew menu to load and unload cargo into the Helicopter itself for better immersion. As well, it can sling-load cargo from ground. The cargo you can actually create +from this menu is limited to contain items from the airbase or FARP's resources warehouse and can take a number of shapes (static shapes in the category of cargo) independent of their contents. If you unload this +kind of cargo with the ground crew, the contents will be "absorbed" into the airbase or FARP you landed at, and the cargo static will be removed after ca 2 mins.
+ +Given the correct shape, Moose created cargo can be either loaded with the ground crew or via the F10 CTLD menu. It is strongly recommend to either use the ground crew or CTLD to load/unload cargo. Mix and match will not work here. +Static shapes loadable into the Chinhook are at the time of writing:
+ + * Ammo crate (type "ammo_cargo")
+ * M117 bomb crate (type name "m117_cargo")
+ * Dual shell fuel barrels (type name "barrels")
+ * UH-1H net (type name "uh1h_cargo")
+
+
+All other kinds of cargo can be sling-loaded.
+ + my_ctld.basetype = "ammo_cargo"
+ my_ctld.forcehoverload = false -- no hover autoload, leads to cargo complications with ground crew created cargo items
+ my_ctld.pilotmustopendoors = true -- crew must open back loading door 50% (horizontal) or more
+ my_ctld.enableslingload = true -- will set cargo items as sling-loadable
+ my_ctld.enableChinhookGCLoading = true -- will effectively suppress the crate load and drop menus for CTLD for the Chinhook
+
+
+Use this function to adjust what a heli type can or cannot do:
@@ -1929,9 +1958,13 @@ Create the late-activated troops, vehicles, that will make up your deployable fo ["MH-60R"] = {type="MH-60R", crates=true, troops=true, cratelimit = 2, trooplimit = 20, length = 16, cargoweightlimit = 3500}, -- 4t cargo, 20 (unsec) seats ["SH-60B"] = {type="SH-60B", crates=true, troops=true, cratelimit = 2, trooplimit = 20, length = 16, cargoweightlimit = 3500}, -- 4t cargo, 20 (unsec) seats ["Bronco-OV-10A"] = {type="Bronco-OV-10A", crates= false, troops=true, cratelimit = 0, trooplimit = 5, length = 13, cargoweightlimit = 1450}, + ["Bronco-OV-10A"] = {type="Bronco-OV-10A", crates= false, troops=true, cratelimit = 0, trooplimit = 5, length = 13, cargoweightlimit = 1450}, + ["OH-6A"] = {type="OH-6A", crates=false, troops=true, cratelimit = 0, trooplimit = 4, length = 7, cargoweightlimit = 550}, + ["OH-58D"] = {type="OH58D", crates=false, troops=false, cratelimit = 0, trooplimit = 0, length = 14, cargoweightlimit = 400}, + ["CH-47Fbl1"] = {type="CH-47Fbl1", crates=true, troops=true, cratelimit = 4, trooplimit = 31, length = 20, cargoweightlimit = 8000}, -Activate a zone:
@@ -1945,7 +1978,7 @@ Create the late-activated troops, vehicles, that will make up your deployable fo my_ctld:DeactivateZone(Name,CTLD.CargoZoneType.DROP) -When adding generic cargo types, you can effectively limit how many units can be dropped/build by the players, e.g.
@@ -2692,7 +2725,13 @@ for FARP vehicles, so -- services are goin to work (e.g. for the blue side: an u(Internal) Function to check if a unit is a Hercules C-130.
+(Internal) Function to check if a unit is a Hercules C-130 or a Bronco.
+(Internal) Function to check if a unit is a CH-47
CTLD:OnAfterTroopsRTB(From, Event, To, Group, Unit, ZoneName, ZoneObject)
FSM Function OnAfterTroopsRTB.
Query type.
+Get Resource Map information table
Remove Stock.
+Resource Map information table if it has been set for static cargo items.
Set HasMoved.
+Add Resource Map information table
holds #CTLD_ENGINEERING objects
+tables
+Folderpath.
-Chinhook
+CargoObject
+ +(Internal) Function to check if a unit is a Hercules C-130.
+(Internal) Function to check if a unit is a Hercules C-130 or a Bronco.
(Internal) Function to check if a unit is a CH-47
+ +CTLD
++ Wrapper.Unit#UNIT + Unit +
+#boolean:
+Outcome
+ +FSM Function OnAfterTroopsRTB.
@@ -12128,32 +12261,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defauUnit Object.
-- #string - ZoneName -
-Name of the Zone where the Troops have been RTB'd.
- -- Core.Zone#ZONE_RADIUS - ZoneObject -
-of the Zone where the Troops have been RTB'd.
-- Core.Zone#ZONE_RADIUS + Core.Zone#ZONE_Radius ZoneObject
Table of crates
+Crates Table of crates
Number Number of crates found
+#table:
+CratesGC Table of crates possibly loaded by GC
+ +#number:
+NumberGC Number of crates possibly loaded by GC
+- Core.Zone#ZONE_RADIUS + Core.Zone#ZONE_Radius ZoneObject
holds #CTLD_ENGINEERING objects
+tables
+Folderpath.
-Chinhook
+holds #CTLD_ENGINEERING objects
+tables
+Folderpath.
-Chinhook
+Resource Map information table if it has been set for static cargo items.
+ +Get Resource Map information table
+ +CTLD_CARGO
+#table:
+ResourceMap
+ +Add Resource Map information table
+ +CTLD_CARGO
++ #table + ResourceMap +
+self
+ +Resource Map information table if it has been set for static cargo items.
+ +set to false to suppress flash messages
-set to false to suppress flash messages
-set to false to suppress flash messages
-set to false to suppress flash messages
-Coordinate of the mark.
+Coordinate of the mark.
+Coordinate of the mark.
+Finds a STATIC from the _DATABASE using the relevant Static Name.
+Get the Cargo Weight of a static object in kgs.
Get initial life points
+Get the Wrapper.Storage#STORAGE object of an static if it is used as cargo and has been set up as storage object.
Get the Cargo Weight of a static object in kgs.
+ + +Returns -1 if not found.
+ +STATIC
+#number:
+Mass Weight in kgs.
+ +Get the Wrapper.Storage#STORAGE object of an static if it is used as cargo and has been set up as storage object.
+ +STATIC
+Storage or nil if not fund or set up.
Set verbosity level.
+MW50 (2).
+| Fields and Methods inherited from STORAGE.LiquidName | +Description | +
|---|---|
| + |
+ "diesel". + |
+
| + |
+ "gasoline". + |
+
| + |
+ "jet_fuel". + |
+
| + |
+ "methanol_mixture". + |
+
| Fields and Methods inherited from STORAGE.Type | +Description | +
|---|---|
| + |
+ aircraft. + |
+
| + |
+ liquids. Also see #list<#STORAGE.Liquid> for types of liquids. + |
+
| + |
+ weapons. |
Liquid Names for the static cargo resource table.
+ +"diesel".
+ +"gasoline".
+ +"jet_fuel".
+ +"methanol_mixture".
+ +Storage types.
+ +aircraft.
+ +liquids. Also see #list<#STORAGE.Liquid> for types of liquids.
+ +weapons.
+ +