-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
338897e
commit bcabb15
Showing
23 changed files
with
732 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Deploy mdBook site to Pages | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
MDBOOK_VERSION: 0.4.37 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install mdBook | ||
run: | | ||
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh | ||
rustup update | ||
cargo install --version ${MDBOOK_VERSION} mdbook | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v4 | ||
- name: Build with mdBook | ||
run: mdbook build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./book | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DCS_header_extracted.lua | ||
CTLD_*.lua | ||
CSAR_*.lua | ||
book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[book] | ||
authors = ["Hennik Hunsaker"] | ||
language = "en" | ||
multilingual = false | ||
src = "docs" | ||
title = "Gremlin Scripts (The Docs)" | ||
description = "Details the usage of the Gremlin Scripts collection in DCS World!" | ||
|
||
[output.html.playground] | ||
editable = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Summary | ||
|
||
- [Introduction](./intro.md) | ||
- [Gremlin Script Tools!](./gremlin.md) | ||
- [Setup](./gremlin/setup.md) | ||
- [Usage](./gremlin/usage.md) | ||
- [Functions](./gremlin/functions.md) | ||
- [Gremlin Evac](./evac.md) | ||
- [Setup](./evac/setup.md) | ||
- [Usage](./evac/usage.md) | ||
- [Functions](./evac/functions.md) | ||
- [Zones](./evac/functions/zones.md) | ||
- [Units](./evac/functions/units.md) | ||
- [Groups](./evac/functions/groups.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Gremlin Evac | ||
|
||
The Gremlin Evac script sets up your missions to include evacuation scenarios. Simply call `Evac:setup()` to get sane defualts, or customize everything by filling out the available options you wish to override. | ||
|
||
## Features | ||
|
||
- Automatic spawn of evacuees | ||
- Loading and unloading via in-game menus | ||
- Manual overrides via config and function calls | ||
- More coming soon! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!-- markdownlint-disable MD041 --> | ||
## Functions | ||
|
||
Gremlin Evac has its functions nested into various tables, rather than living directly under Evac (or worse, the global namespace). These tables include `zones`, `units`, and `groups`. Keep reading to learn more! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- markdownlint-disable MD041 --> | ||
### Functions » Groups | ||
|
||
#### `Evac.groups.spawn(_side, _numberOrComposition, _country, _zone, _scatterRadius)` | ||
|
||
Spawns evacuees manually. `_side` is the Group's `coalition.side`, `_numberOrComposition` follows the same rules as [`Evac.zones.evac.setRemaining()`](./zones.md#sample-composition), `_country` is the `country` for the Group, `_zone` is the Zone name to spawn the evacuees into, and `_scatterRadius` is the distance between spawned Units on the map. | ||
|
||
#### `Evac.groups.list(_zone)` | ||
|
||
Returns a list of all Groups in a Zone. `_zone` is the name of the Zone to search. | ||
|
||
#### `Evac.groups.count(_zone)` | ||
|
||
Returns a count of all Groups in a Zone. `_zone` is the name of the Zone to search. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- markdownlint-disable MD041 --> | ||
### Functions » Units | ||
|
||
#### `Evac.units.findEvacuees(_unit)` | ||
|
||
Lists the currently-active beacons broadcasting for the Unit's side. `_unit` is the name of the Unit doing the search. | ||
|
||
#### `Evac.units.loadEvacuees(_unit)` | ||
|
||
Starts the evacuee loading process for a Unit. `_unit` is the name of the Unit to load evacuees onto. | ||
|
||
#### `Evac.units.unloadEvacuees(_unit)` | ||
|
||
Starts the evacuee unloading process for a Unit. `_unit` is the name of the Unit to unload evacuees from. | ||
|
||
#### `Evac.units.countEvacuees(_unit)` | ||
|
||
Count the number of evacuees aboard a given Unit. `_unit` is the name of the Unit to count evacuees aboard. | ||
|
||
#### `Evac.units.count(_zone)` | ||
|
||
Count the number of Units in a given Zone. `_zone` is the name of the Zone to check. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<!-- markdownlint-disable MD041 --> | ||
### Functions » Zones | ||
|
||
#### `Evac.zones.evac.register(_zone, _smoke, _side)` | ||
|
||
Registers an evacuation zone with Gremlin Evac so that it can spawn and track evacuees there. | ||
|
||
#### `Evac.zones.relay.register(_zone, _smoke, _side)` | ||
|
||
Registers a relay/staging zone with Gremlin Evac so that it can track evacuees there. | ||
|
||
#### `Evac.zones.safe.register(_zone, _smoke, _side)` | ||
|
||
Registers a safe zone with Gremlin Evac so that it can track evacuees there. | ||
|
||
For all three of the above, `_zone` is the name of the zone to register, `_smoke` is the smoke color from `trigger.smokeColor`, and `_side` is taken from `coalition.side`. | ||
|
||
--- | ||
|
||
#### `Evac.zones.evac.activate(_zone)` | ||
|
||
Turns on evacuation automations for a given zone. | ||
|
||
#### `Evac.zones.relay.activate(_zone)` | ||
|
||
Turns on relay/staging automations for a given zone. | ||
|
||
#### `Evac.zones.safe.activate(_zone)` | ||
|
||
Turns on safe zone automations for a given zone. | ||
|
||
For all three of the above, `_zone` is the zone name to activate. | ||
|
||
--- | ||
|
||
#### `Evac.zones.evac.setRemaining(_zone, _side, _country, _numberOrComposition)` | ||
|
||
Sets the number of waiting evacuees in the zone. | ||
|
||
#### `Evac.zones.relay.setRemaining(_zone, _side, _country, _numberOrComposition)` | ||
|
||
Sets the number of waiting evacuees in the zone. | ||
|
||
For both of the above, `_zone` is the zone name to activate, `_side` is taken from `coalition.side`, `_country` is taken from the `country` table, and `_numberOrComposition` is (as its name suggests) either a number of evacuees to generate (these will all be of type `"Refugee"`), or a table listing off the composition of the units to spawn (as its name also suggests). | ||
|
||
##### Sample Composition | ||
|
||
```lua,editable | ||
Evac.zones.evac.setRemaining('test', coalition.side.BLUE, country.USA, { | ||
{ type = 'Refugee', unitName = 'Karl Marx', unitId = 42, weight = 75 }, | ||
{ type = 'Infantry' }, | ||
{ type = 'JTAC' }, | ||
{}, | ||
}) | ||
``` | ||
|
||
This will add a refugee named Karl Marx, with associated ID and weight values, an infantry unit, a JTAC unit, and a second refugee whose name is automatically generated. Note how none of the parameters are required if you just want a rufugee, though a unit composed entirely of refugees is simpler to build with a number instead of a composition table. | ||
|
||
--- | ||
|
||
#### `Evac.zones.evac.count(_zone)` | ||
|
||
Gets an evacuee count for a given evacuation zone. | ||
|
||
#### `Evac.zones.relay.count(_zone)` | ||
|
||
Gets an evacuee count for a given relay/staging zone. | ||
|
||
#### `Evac.zones.safe.count(_zone)` | ||
|
||
Gets an evacuee count for a given safe zone. | ||
|
||
For all three of the above, `_zone` is the zone name to count evacuees within. | ||
|
||
--- | ||
|
||
#### `Evac.zones.evac.isIn(_unit)` | ||
|
||
Gets a flag indicating whether an evacuee is in a given evacuation zone. | ||
|
||
#### `Evac.zones.relay.isIn(_unit)` | ||
|
||
Gets a flag indicating whether an evacuee is in a given relay/staging zone. | ||
|
||
#### `Evac.zones.safe.isIn(_unit)` | ||
|
||
Gets a flag indicating whether an evacuee is in a given safe zone. | ||
|
||
For all three of the above, `_unit` is the unit name to search for. | ||
|
||
--- | ||
|
||
#### `Evac.zones.evac.deactivate(_zone)` | ||
|
||
Turns off evacuation automations for a given zone. | ||
|
||
#### `Evac.zones.relay.deactivate(_zone)` | ||
|
||
Turns off relay/staging automations for a given zone. | ||
|
||
#### `Evac.zones.safe.deactivate(_zone)` | ||
|
||
Turns off safe zone automations for a given zone. | ||
|
||
For all three of the above, `_zone` is the zone name to deactivate. | ||
|
||
--- | ||
|
||
#### `Evac.zones.evac.unregister(_zone)` | ||
|
||
Removes an evacuation zone from Evac's control. | ||
|
||
#### `Evac.zones.relay.unregister(_zone)` | ||
|
||
Removes a relay/staging zone from Evac's control. | ||
|
||
#### `Evac.zones.safe.unregister(_zone)` | ||
|
||
Removes a safe zone from Evac's control. | ||
|
||
For all three of the above, `_zone` is the zone name to remove. |
Oops, something went wrong.