Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scarabguide #234

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/add_giant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/add_giant2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/add_giant3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/add_scarab_character.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/add_scarab_character2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/area2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/area_drag.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/edit_types.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/firing_pts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/generate_pathfinding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/giant_sector_hints.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/giants_zone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/gnr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/gunner_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/gunner_starting_pts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/place_squad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/place_startingpoint.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/railhints.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/railhints2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
194 changes: 194 additions & 0 deletions src/content/h3/guides/scarab/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
---
title: Scarab usage
about: guide
keywords:
- giant
- scarab
- ai
thanks:
Rataz: Writing this guide
RejectedShotGun: Streaming while adding a scarab to a map.
---

General info on how to set up the scarab in a custom scenario.

# Scarab

The Scarab is a fun opponent to add to custom scenarios. It reqiures more steps to set up than other ai characters.


# AI Scarab setup

## Importing the Scarab.

Two different tags must be imported to have a working scarab.

### Summary

1. Add giant tag.
2. Add character tag.
3. Create a Zone with `giants zone` ticked.
4. Create giant hints.
5. Create a squad with scarab as the character, and set the initial zone to the giants zone.
6. Optionally put gunners on the plasma turrets using scripting.


### Import the giant tag

1. Edit Types

![](edit_types.png)

2. Select `giant`

![](add_giant.png)

3. Add

![](add_giant2.png)

4. Find scarab giants folder

![](scarab_path.png)

5. Add the `scarab.giant` tag

![](add_giant3.png)

### Import the character tag

1. Edit Types

![](edit_types.png)

2. Choose `character`

![](add_scarab_character.png)

3. Find the scarab ai folder

![](scarab_character_path.png)

4. Add the `scarab.character` tag

![](add_scarab_character2.png)


## Create a giants zone

1. Selecting the Zones folder.
2. Click New Instance.
3. Select Areas.
4. New Instance.
5. Right click to place a point.
6. Set the area of the point.
7. Place a lot of points.
3. Name the zone something memorable like `scarabzone`.
2. Set the zone to be a `giants zone`.

![](giants_zone.png)


## Create giant hints


4. Under AI/Hints, Select `Giant sector hints`

![](giant_sector_hints.png)

6. Right click in the scene view to place points to mark out an area where the scarab is allowed to walk.

![](area2.jpg)

7. Left click to finish.
8. Hover over the corners and drag them around with leftclick.

![](area_drag.jpg)

7. Place a couple `Giant rail hints` within the giant sector hints area using rightclick.

![](railhints.png)

![](railhints2.jpg)

8. Click `Generate All Pathfinding`.

![](generate_pathfinding.png)

9. Click Scenarios -> Map reset.

## Set up a squad

1. Select Squads folder.

![](squads_folder.png)

2. New Instance.

![](squad_new_instance.png)

3. Select `Fire Teams`

![](sel_fireteam.png)

4. Set the fireteam `normal diff count` to 1.

5. Select `Starting points`.

![](sel_startingpoints.png)

6. Place a startingpoint by rightclicking in the scene view.

![](place_startingpoint.jpg)

7. Set character of the fireteam to `scarab`.

![](set_fireteam_character.png)

8. Select the squad and rename it something memorable like `scarab squad`.

9. Set the scarab squad's `initial zone` to the giants zone created earlier in this guide.

![](set_scarab_zone.png)

10. Right click the squad and click "Place squad" to spawn the scarab.

![](place_squad.png)

11. Use `ctrl+q` to spawn in and the Scarab will attack and walk around.


## Adding side gunners.

1. Add 3 more starting points to the squad and increase Normal Diff Count to 4.
2. On the new starting points, set the character type to Brute or Grunt

![](gunner_settings.png)

3. Name the gunner starting points to `gnr1`, `gnr2`, `gnr3`

![](gunner_starting_pts.png)

4. Use `vehicle_load_magic` and `object_get_turret` in a script to put the gunners on the turrets. An example script is provided below. The script assumes that the squad is called `scarab_squad`


```
(script startup mymission
(print "Mission begin")
(placeScarab)
)

(script static void placeScarab

;Place the squad
(ai_place scarab_squad)


;Put gunners on the turrets
(vehicle_load_magic (object_get_turret (ai_get_object scarab_squad/starting_locations_0) 0) "turret_g" (ai_actors scarab_squad/gnr1))
(vehicle_load_magic (object_get_turret (ai_get_object scarab_squad/starting_locations_0) 1) "turret_g" (ai_actors scarab_squad/gnr2))
(vehicle_load_magic (object_get_turret (ai_get_object scarab_squad/starting_locations_0) 2) "turret_g" (ai_actors scarab_squad/gnr3))
)
```

![](gnr.jpg)
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/scarab_area.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/scarab_character_path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/scarab_path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/scarab_squad_zone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/sel_fireteam.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/sel_startingpoints.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/set_area.png
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/set_fireteam_character.png
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/set_scarab_zone.png
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/squad_new_instance.png
3 changes: 3 additions & 0 deletions src/content/h3/guides/scarab/squads_folder.png