Zone Restriction Module – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(not final version... enemies not attacking)
Line 2: Line 2:


'''Zone Restriction (Zora)''' module defines a kill zone around the playable one to avoid player(s) to flee from the battlefield.
'''Zone Restriction (Zora)''' module defines a kill zone around the playable one to avoid player(s) to flee from the battlefield.
This only works for player unit.
This only works for player unit.<br />
A border is created where enemy patrols can be spawned, hunting the player while in this danger zone.


== Initialization==
== Initialization==
Line 18: Line 19:
Set variables to Zone Restriction mudule with desired values:
Set variables to Zone Restriction mudule with desired values:


*'''bordersize = <number>;''' - set the maximum distance in meters of combat area
*'''bordersize = <number>;''' - set the border size, between the "normal" area and the immediate death area
::Example: ''Zora_Module setvariable ["bordersize", 250];''
::Example: ''Zora_Module setvariable ["bordersize", 250];''
::Default value: 1000m
::Default value: 1000m


*'''factionlist = <array>;''' -  
*'''factionlist = <array>;''' - list of factions that can patrol in the border
::Example: ''Zora_Module setvariable ["factionlist", ["GUE"]];''
::Example: ''Zora_Module setvariable ["factionlist", ["USMC", "CDF", "GUE"]];''
::Default value: ["GUE"]
::Default value: ["GUE"]


*'''maxgroups = <number>;''' -  
*'''maxgroups = <number>;''' - maximum number of groups at once chasing players in the border
::Example: ''Zora_Module setvariable ["maxgroups", 8];''
::Example: ''Zora_Module setvariable ["maxgroups", 8];''
::Default value: 3
::Default value: 3 ; minimum 1, else, will be reset to default


*'''debug = <bool>;''' - show restricted zone by markers on map
*'''debug = <bool>;''' - show restricted zone by markers on map, and patrols going after players in the border
::Example: ''Zora_Module setvariable ["debug", true];''
::Example: ''Zora_Module setvariable ["debug", true];''
::Default value: false
::Default value: false
Line 39: Line 40:
::Example: ''BIS_Zora_Pause = true;''
::Example: ''BIS_Zora_Pause = true;''
::Default value: false
::Default value: false
=== Behaviour ===
*Patrols will hunt down players in border given the formula ''[posx -50 +(random 100), posy -50 +(random 100), 0]''
*Patrols will retreat after some time if the player left the border (either killed or gone back in safe zone)
*Patrols will disappear (instantly) once defeated / retreated
=== Known bugs ===
*Disembarking from a vehicle you embarked in the border will make you killed as if you left the combat area (even if disembarking in safe zone)
*Disembarking from a vehicle you started in will make you killed as if you left the combat area

Revision as of 21:03, 3 November 2009


Zone Restriction (Zora) module defines a kill zone around the playable one to avoid player(s) to flee from the battlefield. This only works for player unit.
A border is created where enemy patrols can be spawned, hunting the player while in this danger zone.

Initialization

Paths

Editor:

Modules (F7) > Zone Restriction

Data:

ca\modules\zora

Editor setup

  1. Insert sensor(s) named BIS_Zora_x - x as a number, starting from 0, numbers must follow, e.g BIS_Zora_0, BIS_Zora_1, etc.

The sensors are used to define the combat area.

Optional parameters

Set variables to Zone Restriction mudule with desired values:

  • bordersize = <number>; - set the border size, between the "normal" area and the immediate death area
Example: Zora_Module setvariable ["bordersize", 250];
Default value: 1000m
  • factionlist = <array>; - list of factions that can patrol in the border
Example: Zora_Module setvariable ["factionlist", ["USMC", "CDF", "GUE"]];
Default value: ["GUE"]
  • maxgroups = <number>; - maximum number of groups at once chasing players in the border
Example: Zora_Module setvariable ["maxgroups", 8];
Default value: 3 ; minimum 1, else, will be reset to default
  • debug = <bool>; - show restricted zone by markers on map, and patrols going after players in the border
Example: Zora_Module setvariable ["debug", true];
Default value: false

Set global variables with desired values:

  • BIS_Zora_Pause = <bool>; - pause the detection
Example: BIS_Zora_Pause = true;
Default value: false

Behaviour

  • Patrols will hunt down players in border given the formula [posx -50 +(random 100), posy -50 +(random 100), 0]
  • Patrols will retreat after some time if the player left the border (either killed or gone back in safe zone)
  • Patrols will disappear (instantly) once defeated / retreated

Known bugs

  • Disembarking from a vehicle you embarked in the border will make you killed as if you left the combat area (even if disembarking in safe zone)
  • Disembarking from a vehicle you started in will make you killed as if you left the combat area