Difference between revisions of "Tunnel Module"
(Created page with "== Tunnel module == ==== This page will guide you through adding the Tunnel module to your mission. ==== This module allows players to enter the tunnels on the outskirts of t...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
The attributes for the module will allow you to change the following, | The attributes for the module will allow you to change the following, | ||
− | * Tunnel | + | * '''Tunnel''' |
− | ** This is the tunnel which will be used, you can view the [https://cdn.discordapp.com/attachments/499945342578458636/840867164944990218/SPOILER_unknown.png tunnel positions on the map here]. | + | ** This is the tunnel which will be used, you can view the [https://cdn.discordapp.com/attachments/499945342578458636/840867164944990218/SPOILER_unknown.png '''tunnel positions on the map here''']. |
− | * Garrison Size | + | * '''Garrison Size''' |
− | ** This determines how large the garrison inside the tunnel will be. The formula is '''8*(10*index)''', where index is the index of the selection in the module. E.g. mini = 0, massive = 5, etc. | + | ** This determines how large the garrison inside the tunnel will be. The formula is '''8*(10*index)''', where index is the index of the selection in the module starting at 0. E.g. mini = 0, massive = 5, etc. |
− | * Garrison Side | + | * '''Garrison Side''' |
** This determines what side the units inside the tunnel will be spawned on, this is independent to the units intended side, so you can have US forces on OPFOR, or NVA forces on BLUFOR. | ** This determines what side the units inside the tunnel will be spawned on, this is independent to the units intended side, so you can have US forces on OPFOR, or NVA forces on BLUFOR. | ||
− | * Garrison Type | + | * '''Garrison Type''' |
** This is a list of predefined units which will be randomly picked from to place in the tunnel. There is also a "Custom" option which will use the "Custom Garrison" array assigned below the "Garrison Type" attribute. | ** This is a list of predefined units which will be randomly picked from to place in the tunnel. There is also a "Custom" option which will use the "Custom Garrison" array assigned below the "Garrison Type" attribute. | ||
− | * Enable Entry Action | + | * '''Enable Entry Action''' |
** This is a code condition which must return true for the entry action to be available to players. | ** This is a code condition which must return true for the entry action to be available to players. | ||
− | * Enable Search Action | + | * '''Enable Search Action''' |
** This is a code condition which must return true for the search action to be available to players. | ** This is a code condition which must return true for the search action to be available to players. | ||
− | * Enable Exit Action | + | * '''Enable Exit Action''' |
** This is a code condition which must return true for the exit action to be available to players. | ** This is a code condition which must return true for the exit action to be available to players. | ||
− | * Run on Entry | + | * '''Run on Entry''' |
** This is code which will run locally for players when they are teleported into the tunnel. | ** This is code which will run locally for players when they are teleported into the tunnel. | ||
− | * Run on Exit | + | * '''Run on Exit''' |
** This is code which will run locally for players when they are teleported out of the tunnel. | ** This is code which will run locally for players when they are teleported out of the tunnel. | ||
Line 36: | Line 36: | ||
There are no configuration files for this module. | There are no configuration files for this module. | ||
+ | |||
+ | |||
+ | ==== During Gameplay ==== | ||
+ | |||
+ | At the start of the mission there is a 5% chance for the tunnel entrance to be trapped. Players can search the tunnel entrance before entering to check for traps, they have a 75% chance of finding a trap if once exists, if they fail the check then the trap will explode killing them. | ||
+ | |||
+ | You can change if a tunnel entrance is trapped by changing the '''vn_tunnel_trapped''' variable on the entrance object. The entrance object uses the '''Land_vn_o_trapdoor_01''' classname. | ||
+ | |||
+ | The tunnels contain the following animation sources which can be animated to block the exits on each side of the tunnel, | ||
+ | * '''blockage_01_01_source''' | ||
+ | * '''blockage_01_02_source''' | ||
+ | * '''blockage_01_03_source''' | ||
+ | * '''blockage_01_04_source''' | ||
+ | |||
+ | |||
+ | [[Category: Modules]] |
Latest revision as of 11:46, 10 May 2021
Contents
Tunnel module
This page will guide you through adding the Tunnel module to your mission.
This module allows players to enter the tunnels on the outskirts of the Cam Lao Nam terrain. This module will not work for terrains other than Cam Lao Nam.
Eden Editor
To add the module to your mission all you need to do is place the module Terrain Tunnel Entrance into your mission.
This module will create an object which will be used as the entrance object for the tunnel.
The attributes for the module will allow you to change the following,
- Tunnel
- This is the tunnel which will be used, you can view the tunnel positions on the map here.
- Garrison Size
- This determines how large the garrison inside the tunnel will be. The formula is 8*(10*index), where index is the index of the selection in the module starting at 0. E.g. mini = 0, massive = 5, etc.
- Garrison Side
- This determines what side the units inside the tunnel will be spawned on, this is independent to the units intended side, so you can have US forces on OPFOR, or NVA forces on BLUFOR.
- Garrison Type
- This is a list of predefined units which will be randomly picked from to place in the tunnel. There is also a "Custom" option which will use the "Custom Garrison" array assigned below the "Garrison Type" attribute.
- Enable Entry Action
- This is a code condition which must return true for the entry action to be available to players.
- Enable Search Action
- This is a code condition which must return true for the search action to be available to players.
- Enable Exit Action
- This is a code condition which must return true for the exit action to be available to players.
- Run on Entry
- This is code which will run locally for players when they are teleported into the tunnel.
- Run on Exit
- This is code which will run locally for players when they are teleported out of the tunnel.
Configuration Files
There are no configuration files for this module.
During Gameplay
At the start of the mission there is a 5% chance for the tunnel entrance to be trapped. Players can search the tunnel entrance before entering to check for traps, they have a 75% chance of finding a trap if once exists, if they fail the check then the trap will explode killing them.
You can change if a tunnel entrance is trapped by changing the vn_tunnel_trapped variable on the entrance object. The entrance object uses the Land_vn_o_trapdoor_01 classname.
The tunnels contain the following animation sources which can be animated to block the exits on each side of the tunnel,
- blockage_01_01_source
- blockage_01_02_source
- blockage_01_03_source
- blockage_01_04_source