77 Commits

Author SHA1 Message Date
David Pierron
2fba4dba03 Merge pull request #99 from ciribob/release-2023-10
Released v202310.01
2023-10-21 16:26:17 +02:00
David Pierron
5831d1ab2d releasing v202310.01 2023-10-12 13:28:34 +02:00
David Pierron
e33b78806b added the frequency in the beacon units names 2023-10-12 13:24:08 +02:00
David Pierron
7f341df588 Small updates:
- indentation
- comments
- documentation
- default values
2023-10-12 10:40:28 +02:00
David Pierron
3b4da129fd Merge pull request #92 from Proxy404/feature/jtac-smoke-offset-settings
JTAC Smoke Offset Config Options
Added JTAC configuration settings for the X, Y, and Z offsets of smoke markers for lased targets. This will enable the smoke to be configured to be off the target so as to not block the target from being visible in a TGP.
(by https://github.com/Proxy404)
2023-10-12 10:02:45 +02:00
David Pierron
09efd47acd Merge pull request #97 from Queton1-1/loadCrateMenu
Add option to show load crate in menu
If set to true, you can load crates with the F10 menu OR hovering, in case of using choppers and planes for example.
(by https://github.com/Queton1-1)
2023-10-12 10:02:06 +02:00
David Pierron
8f9eba4801 Merge pull request #93 from VEAF/change-radio-beacon-transmissions
Changed the beacons radio transmissions to follow DCS evolutions - no need to restart transmissions every 30 seconds
2023-10-12 09:57:26 +02:00
Quéton 1-1
6400becdfc Add option to show load crate in menu
Add option to show load crate in menu,
if set to true, you can load crates with the F10 menu OR hovering, in case of using choppers and planes for example.
2023-10-07 15:42:36 +02:00
David Pierron
c1891a1a52 stop transmission if ctld.removeRadioBeacon is called 2023-08-29 17:57:21 +02:00
David Pierron
c4c8e15a32 Changed the beacons radio transmissions
There is no more a need to restart transmissions every 30 seconds, as the bug has been corrected (see https://forum.dcs.world/topic/276106-arc-frequencies/page/2/).
Instead, I made changes to create the transmissions once, with a unique name (now mandatory, see https://forum.dcs.world/topic/316378-placed-adf-beacons-only-transmit-briefly/) and the "loop" parameter activated.
Then, every minute, the updateRadioBeacon function checks if the beacons' batteries are still up, and stops them if they are not. If all is ok, the transmissions are stopped and immediately restarted.
2023-08-25 17:26:30 +02:00
Austin Markiewicz
ea30456493 Added JTAC configuration settings for the X, Y, and Z offsets of smoke markers for lased targets to enable better visibility through a TGP 2023-07-21 21:42:25 -04:00
Ciaran Fisher
a3c9d369d5 Version bump 2023-04-14 16:29:18 +01:00
Ciaran Fisher
9b1cf75420 Merge pull request #85 from RafaPolit/JTAC-smoke-on-default-enemy
Fixed always-nil _enemyUnit variable passed to createSmokeMarker
2023-04-14 16:27:07 +01:00
RafaPolit
9517dabb0d Same changes without spaces removal 2023-01-09 12:59:26 -05:00
RafaPolit
b264bc2df0 Fixed always-nil variable 2023-01-09 12:54:10 -05:00
Ciaran Fisher
2632845fd3 Merge pull request #78 from VEAF/JTAC-target-selection-and-retention
JTAC target selection and retention
2022-09-28 16:57:53 +02:00
Ciaran Fisher
74526597e0 Merge pull request #79 from VEAF/JTAC-Active-Laser-Spot-Correction
JTAC active laser spot correction
2022-08-25 16:42:41 +01:00
RexAttaque
a961b7aaea Added option to enable wind and speed laser spot corrections 2022-08-24 16:22:28 +02:00
RexAttaque
240d2b6cbb Check if unit exists before trying to get it's position etc. 2022-08-23 02:01:17 +02:00
RexAttaque
65ab11aae1 Added wind correction for laseUnit(), Added target speed correction for laseUnit(), Added system to update the laser spot position for moving vehicles 2022-08-23 01:30:53 +02:00
RexAttaque
c0f9115f41 Separated both coalitions for the new JTAC indicator 2022-08-21 19:25:39 +02:00
RexAttaque
14066646e0 Fixed new groups not getting the target lists quickly after spawn 2022-08-21 19:10:18 +02:00
RexAttaque
f71649f4f0 Switched to a timer for general target list refresh, Made it so that new groups get target lists on spawn, fixed newJtac not forcing a target list refresh for more than one group, fixed indentation after rebase 2022-08-21 17:51:43 +02:00
RexAttaque
046d51d86b Added a marker when a new JTAC is added to force refresh the target lists 2022-08-20 18:34:53 +02:00
RexAttaque
166efc6160 Separated target lists for both coalitions, optimized target list build, lowered refresh rate of the target lists, removed ambiguity with target selection reset option 2022-08-19 03:30:37 +02:00
RexAttaque
17426bf487 Added CTLD JTAC target selection menu and target retention on selected unit 2022-07-24 16:07:06 +02:00
Ciaran Fisher
b801853ef2 Merge pull request #76 from fhoekstra/patch-1
Make laser code start from 1512
2022-05-17 08:22:44 +01:00
fhoekstra
4b39a322a0 Make laser code start from 1512
for DCS F-14 compatibility: codes below 1511 are not allowed
2022-05-16 23:55:29 +02:00
Ciaran Fisher
77b5f6008e Merge pull request #75 from RndName/ai-troop-limits
Use transportLimit for unknown numberOrTemplate
2022-05-10 12:25:48 +01:00
RndName
ae0d68f5ef Use transportLimit for unknown numberOrTemplate
Instead of directly using the numberOfTroops it should first check for the actual transport limit (if defined) for the given helo type. Otherwise the unitLoadLimits would be ignored for all AI flights automatically loading troops in pickup zones.
2022-05-08 11:23:07 +02:00
Ciaran Fisher
f70c6a7131 Fixed HAWK
Increased default number of launchers
2021-11-13 22:23:45 +00:00
Ciaran Fisher
3717f0f11b Updated version and mission 2021-11-13 21:32:15 +00:00
Ciaran Fisher
1911c608bb Fixed HAWK not firing
Thanks to Grimes!
2021-11-13 21:18:41 +00:00
Ciaran Fisher
1ddaabcfbb Added HAWK CWAR
Added Hawk CWAR - thanks to PaulBrockbank
2021-08-27 08:17:18 +01:00
Ciaran Fisher
381a124a86 Tidy Up Mission 2021-06-27 17:55:17 +01:00
Ciaran Fisher
1a55b1d52e Tidy up Repo 2021-06-27 17:54:37 +01:00
Ciaran Fisher
c48ab69e20 Merge pull request #64 from VEAF/jtac-stop-resume
reproduced edits by guimcdo
2021-06-24 08:33:45 +01:00
David Pierron
ec0cee3671 reproduced edits by guimcdo 2021-06-23 15:41:50 +02:00
Ciaran Fisher
627b8323d4 Merge pull request #62 from VEAF/JTAC-talk-over-SRS
Jtac talk over srs
2021-06-22 08:15:38 +01:00
David Pierron
853ae0e727 Made a reference to DCS-SimpleTextToSpeech instead of including it 2021-06-22 09:05:26 +02:00
David Pierron
4ce0c1f656 rebase from Origin/master (Ciribob) and edited 2021-06-21 18:30:29 +02:00
David Pierron
821dc1e13c Merge branch 'master' into JTAC-talk-over-SRS 2021-06-21 18:24:02 +02:00
Ciaran Fisher
4b25289eb5 Merge pull request #63 from ciribob/pr-61-local
Pr 61 local
2021-06-19 14:11:39 +01:00
Ciaran Fisher
a9e52e07ea Merge branch 'master' into pr/61
# Conflicts:
#	CTLD.lua
2021-06-19 14:02:46 +01:00
Ciaran Fisher
522b835985 removed ctld.allowAiTeamPickups - not used
re-arranged code slightly
added contributor
2021-06-19 13:50:33 +01:00
David Pierron
0668e12c39 JTAC now talks over SRS 2021-06-17 18:37:44 +02:00
David Pierron
7837211c65 Multiple changes :
- bug corrections
- modifications to help other scripts configure/mod CTLD before using it
- when dropping JTAC groups, and extracting them, they remain JTAC
2021-06-17 16:54:25 +02:00
Ciaran Fisher
b5784811db Merge pull request #57 from Knapsak/patch-1
Update CTLD.lua
2021-06-17 08:36:20 +01:00
Ciaran Fisher
a25abb32ef Merge pull request #60 from basman/SAM-patriot
add Patriot SAM
2021-06-17 08:35:59 +01:00
David Pierron
07291e3e89 multiple changes :
- added logging code
- corrected calls to veaf.p
- added weight to extracted troops
- added weight to vehicles
- tested and corrected a few errors
2021-06-15 17:44:41 +02:00
David Pierron
a661fc5951 updated readme to explain the troops weight 2021-06-13 20:38:29 +02:00
David Pierron
23fbba14f7 typo 2021-06-13 10:33:26 +02:00
David Pierron
7101295603 added a bit of documentation 2021-06-13 10:32:25 +02:00
David Pierron
9643e7b82b Multiple changes in CTLD :
- updated to latest origin version
- added simulated weight to CTLD cargo
- added JTAC soldiers (nice for Yak-52)
- moved and factorized cargo status menu
- corrected a few bugs and problems
2021-06-12 17:03:23 +02:00
basman
e50b7fd078 add Patriot SAM 2021-03-05 09:46:00 +01:00
Knapsak
1ac63ffe53 Update CTLD.lua
ctld.vehicleTransportEnabled = {
    "76MD", -- the il-76 mod doesnt use a normal - sign so il-76md wont match... !!!! GRR
    "Hercules",
}
2020-12-07 06:57:13 +02:00
Ciaran Fisher
9fe7020d6d Merge pull request #56 from mrSkortch/master
Fixed stinger unit typeName
2020-06-27 08:51:47 +01:00
mrSkortch
3a36008990 Fixed stinger unit typename
It appears that with DCS 2.5.6 ED remamed the unit Stinger manpad and removed the alternate versions that were assocaited with different countries.

There is just now one unit named Soldier stringer
2020-06-26 19:19:49 -06:00
Ciaran Fisher
c2fc64fd77 Merge pull request #43 from jusola/patch-1
Added option to use DMS instead of DM in location messages
2019-05-06 21:46:42 +01:00
jusola
f603146472 Added option to use DMS instead of DM in location messages 2019-03-28 10:22:31 +02:00
Ciaran Fisher
1db8004f3e Merge pull request #39 from ciribob/minimum-distance
Minimum distance
2018-04-16 22:17:50 +01:00
Ciaran Fisher
58731f3d84 Bug Fix 2018-04-16 22:16:27 +01:00
Ciaran Fisher
ce2cb5fad0 Merge pull request #38 from ciribob/minimum-distance
Minimum distance
2018-04-15 18:30:07 +01:00
Ciaran Fisher
71b54491fc Release 1.73 2018-04-15 18:28:38 +01:00
Ciaran Fisher
7ca6af38fc Version bump 2018-04-15 18:23:24 +01:00
Ciaran Fisher
844144f695 Added minimum distance from friendly logistics option 2018-04-15 15:51:44 +01:00
Ciaran Fisher
f12c67c5e0 Bug Fix
Bug fix for crate timing out
2018-02-18 17:16:40 +00:00
Ciaran Fisher
b5436bd6d2 Update 1.71 2018-01-18 21:54:27 +00:00
Ciaran Fisher
a10de260c7 Merge pull request #36 from ciribob/crateMove
Merge pull request #35 from ciribob/master
2018-01-18 21:50:48 +00:00
Ciaran Fisher
4d3ae4b5ee Update missions 2018-01-18 21:49:40 +00:00
Ciaran Fisher
f6efa0ec58 Merge pull request #34 from ciribob/jtac-optimisation
JTAC Target Optimisation
2018-01-18 21:47:12 +00:00
Ciaran Fisher
5452bc7539 Merge pull request #35 from ciribob/master
Merge pull request #33 from ciribob/crateMove
2018-01-18 21:47:03 +00:00
Ciaran Fisher
58acfbc152 JTAC Target Optimisation
Possible Fixes for JTAC priority
JTAC search optimised for high unit missions
Added JTAC "visual on" report
2018-01-18 21:45:13 +00:00
Ciaran Fisher
2a4c9ed91a Merge pull request #33 from ciribob/crateMove
Added force crate to be moved
2018-01-18 20:42:16 +00:00
Ciaran Fisher
a78dd40688 Added force crate to be moved
Added Wait time for requesting crates

Added per unit type optional group limits

Added per unit type allowable actions
2017-07-24 21:06:53 +01:00
Ciaran Fisher
44ff4d61da Version 2017-06-25 21:06:51 +01:00
Ciaran Fisher
196efb7bcb Added ability to set maximum group size
You can now set the maximum group size that'll fit in a helicopter.
Larger groups cant be picked up
2017-06-25 21:03:33 +01:00
11 changed files with 7521 additions and 6099 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
*.iml
.idea/encodings.xml
*.xml

Binary file not shown.

12615
CTLD.lua

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
Il-76.zip

Binary file not shown.

Binary file not shown.

View File

@@ -130,10 +130,12 @@ To use the real cargo sling behaviour, set the ```ctld.slingLoad``` option to ``
-- ************************************************************************
ctld.staticBugFix = true -- When statics are destroyed, DCS Crashes. Set this to FALSE when this bug is fixed or if you want to use REAL sling loads :)
ctld.disableAllSmoke = false -- if true, all smoke is diabled at pickup and drop off zones regardless of settings below. Leave false to respect settings below
ctld.disableAllSmoke = false -- if true, all smoke is disabled at pickup and drop off zones regardless of settings below. Leave false to respect settings below
ctld.hoverPickup = true -- if set to false you can load crates with the F10 menu instead of hovering...!
ctld.loadCrateFromMenu = false -- if set to true, you can load crates with the F10 menu OR hovering, in case of using choppers and planes for example.
ctld.enableCrates = true -- if false, Helis will not be able to spawn or unpack crates so will be normal CTTS
ctld.slingLoad = false -- if false, crates can be used WITHOUT slingloading, by hovering above the crate, simulating slingloading but not the weight...
-- There are some bug with Sling-loading that can cause crashes, if these occur set slingLoad to false
@@ -667,6 +669,10 @@ ctld.JTAC_smokeOn_BLUE = true -- enables marking of target with smoke for BLUE f
ctld.JTAC_smokeColour_RED = 4 -- RED side smoke colour -- Green = 0 , Red = 1, White = 2, Orange = 3, Blue = 4
ctld.JTAC_smokeColour_BLUE = 1 -- BLUE side smoke colour -- Green = 0 , Red = 1, White = 2, Orange = 3, Blue = 4
ctld.JTAC_smokeOffset_x = 0.0 -- distance in the X direction from target to spawn smoke marker (default 0 meters)
ctld.JTAC_smokeOffset_y = 2.0 -- distance in the Y direction from target to spawn smoke marker (default 2 meters)
ctld.JTAC_smokeOffset_z = 0.0 -- distance in the z direction from target to spawn smoke marker (default 0 meters)
ctld.JTAC_jtacStatusF10 = false -- enables F10 JTAC Status menu
ctld.JTAC_location = false -- shows location of target in JTAC message
@@ -687,6 +693,8 @@ The JTACs can be configured globally to target only vehicles or troops or all gr
The script can also be useful in daylight by enabling the JTAC to mark enemy positions with Smoke. The JTAC will only move the smoke to the target every 5 minutes (to stop a huge trail of smoke markers) unless the target is destroyed, in which case the new target will be marked straight away with smoke. There is also an F10 menu option for units allowing the JTAC(s) to report their current status but if a JTAC is down it won't report in.
The smoke will be offset from the target by the distances declared in the `ctld.JTAC_smokeOffset_*` constants.
To add JTACS to the mission using the editor place a JTAC unit on the map putting each JTAC in it's own group containing only itself and no
other units. Name the group something easy to remember e.g. JTAC1 and make sure the JTAC units have a unique name which must
not be the same as the group name. The editor should do this for you but be careful if you copy and paste.
@@ -740,6 +748,18 @@ the mission but there can be a delay of up to 30 seconds after activation for th
You can also change the **name of a unit*** (unit, not group) to include "**hpriority**" to make it high priority for the JTAC, or "**priority**" to set it to be medium priority. JTAC's will prioritize targets within view by first marking hpriority targets, then priority targets, and finally all others. This works seemlessly with the all/vehicle/troop functionality as well. In this way you can have them lase SAMS, then AAA, then armor, or any other order you decide is preferable.
If the `DCS-SimpleTextToSpeech.lua` script is loaded (you'll find it [here](https://github.com/ciribob/DCS-SimpleTextToSpeech)), and configured (i.e. the `STTS.DIRECTORY`, `STTS.SRS_PORT` and optionaly the `STTS.GOOGLE_CREDENTIALS` variables are set), the JTAC can talk over SRS.
To do this, you can specify the _radio parameter when calling ctld.JTACAutoLase like in this example :
```lua
ctld.JTACAutoLase('JTAC1', 1688, true,"all", 4, { freq = "251.50", mod = "AM", name = "JTAC one" })
```
If you don't use the _radio parameter, CTLD will compute a FM frequency based on the laser designator code : 30Mhz + [second figure of the code] + [last two figures of the code] * 0.05.
For example, if the laser code is *1688*, the frequency will be *40.40Mhz*.
JTAC frequency is available through the "JTAC Status" radio menu
# In Game
## Troop Loading and Unloading
@@ -762,6 +782,7 @@ Different Troop Groups can be loaded from a pickup zone. The ```ctld.loadableGro
-- at is RPG-16
-- aa is Stinger or Igla
-- mortar is a 2B11 mortar unit
-- jtac is a JTAC soldier, which will use JTACAutoLase
-- You must add a name to the group for it to work
-- You can also add an optional coalition side to limit the group to one side
-- for the side - 2 is BLUE and 1 is RED
@@ -775,6 +796,26 @@ ctld.loadableGroups = {
```
The infantry groups have a weight, too. It is calculated based on the soldiers' roles, and the weight of their kit
- Every soldier weights between 90% and 120% of ctld.SOLDIER_WEIGHT, and they all carry a backpack and their helmet (ctld.KIT_WEIGHT)
- Standard grunts have a rifle and ammo (ctld.RIFLE_WEIGHT)
- AA soldiers have a MANPAD tube (ctld.MANPAD_WEIGHT)
- Anti-tank soldiers have a RPG and a rocket (ctld.RPG_WEIGHT)
- Machine gunners have the squad MG and 200 bullets (ctld.MG_WEIGHT)
- JTAC have the laser sight, radio and binoculars (ctld.JTAC_WEIGHT)
- Mortar servants carry their tube and a few rounds (ctld.MORTAR_WEIGHT)
```lua
ctld.SOLDIER_WEIGHT = 80 -- kg, will be randomized between 90% and 120%
ctld.KIT_WEIGHT = 20 -- kg
ctld.RIFLE_WEIGHT = 5 -- kg
ctld.MANPAD_WEIGHT = 18 -- kg
ctld.RPG_WEIGHT = 7.6 -- kg
ctld.MG_WEIGHT = 10 -- kg
ctld.MORTAR_WEIGHT = 26 -- kg
ctld.JTAC_WEIGHT = 15 -- kg
```
## Cargo Spawning and Sling Loading
@@ -806,7 +847,7 @@ Once you've loaded the crate, fly to where you want to drop it and drop using th
Once on the ground unpack as normal using the CTLD Commands Menu - CTLD->CTLD Commands->Unpack Crate
**Note: You can also set ```ctld.hoverPickup = false``` so you can load crates using the F10 menu instead of Hovering. **
**Note: You can also set ```ctld.hoverPickup = false``` so you can load crates using the F10 menu instead of Hovering; or keep ```ctld.hoverPickup = true``` and set ```ctld.loadCrateFromMenu = true``` so you can load the crates by hovering OR from the F10 menu**
### Real Sling Loading

957
mist.lua

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.