Skip to content

Commit

Permalink
Merge pull request #33 from TheHuntingParty/master
Browse files Browse the repository at this point in the history
Add new AI tab plus Sally Docs
  • Loading branch information
chocmake authored Apr 5, 2024
2 parents 60be91d + a02ff9e commit e93d5eb
Show file tree
Hide file tree
Showing 64 changed files with 1,009 additions and 373 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ This is the central hub for information on modding the [Fox Engine](https://en.w
[![Lua](/assets/Lua Icon.png){:.inline width="145px"}](/Lua)
[![Guides](/assets/Guides Icon.png){:.inline width="145px"}](/Guides)
[![Infinite Heaven](/assets/InfiniteHeaven Icon.webp){:.inline width="145px"}](/Infinite_Heaven)
[![AI](/assets/AI_Stuff/images/AI Icon.png){:.inline width="145px"}](/AI_Stuff/AI_Main)
{:.center}
Binary file added assets/AI_Stuff/images/AI Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/Animals Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/EnemyHelis Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/Pequod Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/Quiet Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/Shln Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/Soldiers Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/c_konami_b4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/c_konami_b5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/c_konami_b6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/c_konami_b7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/hellgeotrap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/hellgeotrap_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/hellgeotrap_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/hellgeotrap_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/sally art.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/sally_art rex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/shln_Domroute.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/shln_hp PTLB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/shln_hp PTLF.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/shln_hp PTRB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/shln_hp PTRF.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/AI_Stuff/images/mgs/shln_hp body.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp bp.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp flamet.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp head.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp larm.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp lleg.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp loader.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp lthigh.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp railgun.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp rarm.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp rleg.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp rthigh.png
Binary file added assets/AI_Stuff/images/mgs/shln_hp shield.png
Binary file added assets/AI_Stuff/images/mgs/shln_seachmissile.png
Binary file added assets/AI_Stuff/images/skulls icon.png
Binary file added assets/AI_Stuff/images/volgin Icon.png
29 changes: 29 additions & 0 deletions wiki/AI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: AI
permalink: /AI
tags: []
---

## Metal Gear
{% include index-autolist tag="Metal Gear" %}{:.small}

## Volgin
{% include index-autolist tag="Volgin" %}{:.small}

## Quiet
{% include index-autolist tag="Quiet" %}{:.small}

## Skull Units
{% include index-autolist tag="Skull Units" %}{:.small}

## Soldiers
{% include index-autolist tag="Soldiers" %}{:.small}

## Pequod
{% include index-autolist tag="Pequod" %}{:.small}

## Enemy Vehicles
{% include index-autolist tag="Enemy Vehicles" %}{:.small}

## Animals
{% include index-autolist tag="Enemy Animals" %}{:.small}
15 changes: 15 additions & 0 deletions wiki/AI_Stuff/AI_Main.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: AI Main
permalink: /AI_Stuff/AI_Main/
tags: [AI]
---

[![Metal Gear Sahelanthropus](/assets/AI_Stuff/images/Shln Icon.png){:.inline width="145px"}](/AI_Stuff/mgs/mgs_Main)
[![Volgin](/assets/AI_Stuff/images/volgin Icon.png){:.inline width="145px"}](/AI_Stuff/AI_Main)
[![Quiet](/assets/AI_Stuff/images/Quiet Icon.png){:.inline width="145px"}](/AI_Stuff/AI_Main)
[![Skull Units](/assets/AI_Stuff/images/skulls Icon.png){:.inline width="145px"}](/AI_Stuff/AI_Main)
[![Soldiers](/assets/AI_Stuff/images/Soldiers Icon.png){:.inline width="145px"}](/AI_Stuff/AI_Main)
[![Pequod](/assets/AI_Stuff/images/Pequod Icon.png){:.inline width="145px"}](/AI_Stuff/AI_Main)
[![Enemy Vehicles](/assets/AI_Stuff/images/EnemyHelis Icon.png){:.inline width="145px"}](/AI_Stuff/AI_Main)
[![Animals](/assets/AI_Stuff/images/Animals Icon.png){:.inline width="145px"}](/AI_Stuff/AI_Main)

54 changes: 54 additions & 0 deletions wiki/AI_Stuff/mgs/mgs_DomRoutes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
title: MG Dominion Routes
permalink: /AI_Stuff/mgs/mgs_DomRoutes
tags: [AI, Metal Gear]
---
## What are routes used for on Dominion AI ?

The Base route for Dominion AI is used for the Mantis jump attack.

>the Boss fight wont work without one base route assigned.
{:.important}

## How to manage Base Routes for Dominion AI

Unlike Hellbound AI, where routes need to be manually activated with geotraps, routes for Dominion AI are much easier to manage since it only uses one.

### Managing routes with Foxkit

Start by creating a Routeset on foxkit and inside that routeset create the route, for Dominion AI i recommend you to:
>keep it only for roads and wide areas<br>
>Make sure there is a big space between nodes<br>
>Always remember that Sahelanthropus wont follow the route, it will only use the route nodes as an reference point for the mantis jump attack
As an example, im going to make a route inside Nova Braga Airport like the one bellow:

![The yellow line represents the route](/assets/AI_Stuff/images/mgs/shln_Domroute.png)

>Use edge event type `Run Walk` for Dominion Base route
{:.important}

After you finish creating the route, export the dataset and make sure it will be loaded on the mission pack

### Assign a base route on the mission scripts

In order to make the boss fight start without any issue, you need to assign a base route to Sahelanthropus. The base route can be assigned with the next command on the enemy subscript:

```lua
local gameObjectId = {type="TppSahelan2", group=0, index=0}
local command = {id="SetBaseRoute", route="ROUTE NAME HERE"}
GameObject.SendCommand(gameObjectId, command)
```
In this example, im going to be loading one route, one named `rt_shln_Africa_b_0000`, on Nova Braga Airport and it will be assigned on the enemy subscript with the command bellow.

```lua
local gameObjectId = {type="TppSahelan2", group=0, index=0}
local command = {id="SetBaseRoute", route="rt_shln_Africa_b_0000"}
GameObject.SendCommand(gameObjectId, command)
```

During the Boss fight, the assigned route nodes will be used by Sahelanthropus on the Mantis Jump Attack, the order of the nodes does not mater since Sahelanthropus wont follow the route order at all.<br>

Keep in mind that Sahelanthropus will only use the Mantis Jump Attack after the game returns the message `SahelanReturned1stRailGun`, and of course the player needs to be near a route node.

>The route will also be used if the player is on a area without navmesh for Sahelanthropus.
16 changes: 16 additions & 0 deletions wiki/AI_Stuff/mgs/mgs_NavWorld.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Metal Gear Sahelanthropus Navworld
permalink: /AI_Stuff/mgs/mgs_NavWorld
tags: [AI,Metal Gear]
---

# Metal Gear Sahelanthropus Navworld

Sahelanthropus Navmesh is loaded on its very own Navworld called `sahelan`<br>This Navworld is limited to only load 2 Navmesh at once, that can be changed by editing `Tpp/start.lua`.<br><br>
Unlike the Navworld Used by Other AIs (excluding the helicopters), `sahelan` Navworld does not contain the next properties:<br>
`maxGraphBounderCount`<br>
`maxTacticalActionCount`<br>
`navigationGraphDynamicLinkContainerInfo`<br>
`segmentGraphDynamicLinkContainerInfo`<br>
`segmentGraphDynamicPortalContainerInfo`<br>
`islandGraphDynamicLinkContainerInfo`<br>
47 changes: 47 additions & 0 deletions wiki/AI_Stuff/mgs/mgs_hellbound_Debug_Functions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: Hellbound Debug Functions
permalink: /AI_Stuff/mgs/mgs_hellbound_Debug_Functions
tags: [AI, Metal Gear]
---

# Hellbound AI Debug Functions

There is some debug functions that devs left inside the episode 12 enemy script:<br>
```lua
DEBUG.SetDebugMenuValue("Sahelan2", "ToStopActionRestLifeVal", 100 )
DEBUG.SetDebugMenuValue("Sahelan2", "StompAttackSize", 100 )
DEBUG.SetDebugMenuValue("Sahelan2", "AttackShortRange", 25 )
DEBUG.SetDebugMenuValue("Sahelan2", "LostAlertTime", 20)
DEBUG.SetDebugMenuValue("Sahelan2", "LostPlayerTime", 40 )
DEBUG.SetDebugMenuValue("Sahelan2", "GoToHeliDistanceMin", 120 )
DEBUG.SetDebugMenuValue("Sahelan2", "CloseToTargetLength", 55 )
DEBUG.SetDebugMenuValue("Sahelan2", "LengthForPeepAction", 30 )
DEBUG.SetDebugMenuValue("Sahelan2", "RouteEvToPlayerLength", 40 )
DEBUG.SetDebugMenuValue("Sahelan2", "ReflexTimeOnAlert", 600)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "BodyDiscoveryDist", 35)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "BodyDiscoveryVAngle", 90)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "BodyDiscoveryHAngle", 60)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "BodyNormalDist", 75)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "BodyNormalVAngle", 90)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "BodyNormalHAngle", 50)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "BodyFarDist", 150)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "BodyFarVAngle", 60)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "BodyFarHAngle", 50)
DEBUG.SetDebugMenuValue("Sahelan2 Sight", "NormalToFarSpeed", 30)
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VsHeliMissileSpdRate", 150 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VsHeliSrchMissInterval", 75 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VsHeliSrchMissWaitingTime", 85 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VsHeliLastAttackTime", 400 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunFireMaxTime", 6 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunFireLostTime", 3 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunFireRange", 100 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunFireNumOfOneShot", 5 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunOneShotInterval", 45 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunFireNumOfOneUnit", 3 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunOneUnitInterval", 150 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunOneSetInterval", 300 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunWobbingRate2", 3 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "VulcunImpactRange", 45 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "PileAtkStartWaitTime", 80 )
DEBUG.SetDebugMenuValue("Sahelan2 Weapon", "PileAtkEndWaitTime", 150 )
```
7 changes: 7 additions & 0 deletions wiki/AI_Stuff/mgs/mgs_hellheli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: MG HellBound Heli Attack
permalink: /AI_Stuff/mgs/mgs_Hellheli
tags: [AI, Metal Gear]
---

TODO<br>This sequence is very hard to replicate
Loading

0 comments on commit e93d5eb

Please sign in to comment.