Fandom

武装突袭 Wiki

Arma 3 Tasks Overhaul

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

Introduced with Arma 3 version 1.58
20px

Tasks Overhaul system is actively being developed and is subject to change.


System Overview编辑

Tasks Overhaul is name for project targeting UX and visual improvements to Arma 3 task framework. The 1st batch of updates was released to development branch on March 2016.

Goals编辑

  • Update visuals of task markers in both 3D environment and in map.
  • Improve diary panels UX and visuals.
  • Improve map & task interaction - direct task assignment/unassignment from map.
  • Allow simultaneous display of multiple tasks in 3D environment.
  • Implement 'Shared Objectives' through new generic feature called Custom Data.

Current state编辑

  • Tasks Overhaul system is currently available in the development branch and it is still in development.
  • Engine implantation is almost done, although some aspects and behavior details can change depending on feedback.
  • The core of the data part is done, but there will definitely be changes and tweaks based on internal and external feedback as well as internal tests.
  • Changes to the data part will most likely be visual - color, transparency, scaling, positioning.
  • One of the most noticeable changes will be implementation of the new icon set for task types.
    • Currently all task types use default icon, proper icon set is in production.
    • Expect task types and icons to iterate rapidly.

Feature Breakdown编辑

Below you will find brief feature breakdown, that should present you all the core features of Tasks Overhaul.

Task types编辑

There is a new attribute - task type. The attribute describes what is in general the task about and replaces the task label that was displayed on the task marker. Task type is visualized through the icon and unlike the task label, it is fully implemented to the game UI (3D marker, map marker, task list, task index diary panel, task notification, debriefing screen, ...).

Task type definition编辑

Tasks overhaul is going to ship with quite large library of task types, that should suffice the common needs community creators might have when designing their mission tasks. However we felt it would be great to allow community to extend or replace the default task type selection with their own task types in an easy and comfortable way. As result we prepared the system the way that it reads the definition from addon, campaign and/or even mission config and merges them together. In case there are duplicated definitions the more local definition takes precedence.

Config编辑

Task types definition is stored in CfgTaskTypes class: class CfgTaskTypes { class Ambush { icon = taskTypes\ambush_ca.paa; }; class Heal { icon = \A3\Ui_f\data\IGUI\Cfg\simpleTasks\letters\h_ca.paa; }; };

Texture编辑

The default task type icons are .paa textures with 32x32px size, 32bit color, white foreground and transparent background. There are no gradients or any other colors.

New commands编辑

There are 2 new commands for task type.

setSimpleTaskType编辑

//Syntax
_task setSimpleTaskType _type;
 
//Example
(currentTask player) setSimpleTaskType "attack";

taskType编辑

//Syntax
_type = taskType _task;
 
//Example
_type = taskType (currentTask player);

New functions编辑

bis_fnc_taskCreate编辑

Task type was fully integrated to bis_fnc_taskCreate.

//Syntax
[_owner,_taskid,_texts,_destination,_state,_priority,_showNotification,_taskType,_alwaysVisible] call bis_fnc_taskCreate;
 
//Example
(currentTask player) setSimpleTaskType "attack";

Notice _taskType and _alwaysVisible params at the end of the definition. Defining task type when the task is created is suggested and most efficient way.

bis_fnc_taskSetType编辑

In case task type needs to be changed later it is best to use bis_fnc_taskSetType.

//Syntax
[_taskId:string,_taskType:string] call bis_fnc_taskSetType;
 
//Example
["AttackMike26","attack"] call bis_fnc_taskSetType;

bis_fnc_taskType编辑

To get type of given task, use bis_fnc_taskType.

//Syntax
_type = [_taskId:string] call bis_fnc_taskType;
 
//Example
_type = ["AttackMike26"] call bis_fnc_taskType;

3D markers编辑

Task's 3D marker was completely redesigned. It now consists from 3 elements:

  1. background - texture with distinctive shape to visually define the element as task marker
  2. task type icon - texture of task type icon defining nature of the task; replaces the former task label
  3. distance indicator - standardized info about task distance

In standard situation there can be only an assigned task 3D marker shown on the screen. However there are now new commands and functions that allow to bend this behavior by flagging a task to always show - do not fade out.

New commands编辑

There are 2 new commands that interact with task visibility flag.

setTaskAlwaysVisible编辑

Unassigned tasks under normal conditions fade out. This can be overridden by setTaskAlwaysVisible command.

//Syntax
_task setTaskAlwaysVisible _alwaysVisible;
 
//Example
(currentTask player) setTaskAlwaysVisible true;

taskAlwaysVisible编辑

Command taskAlwaysVisible returns true if task is flagged to be always visible or false if not.

//Syntax
_isAlwaysVisible = taskAlwaysVisible _task;
 
//Example
_isAlwaysVisible = taskAlwaysVisible (currentTask player);

New functions编辑

The alwaysVisible flag is also fully implemented to scripted framework. There are getter and setter functions that mimic the commands behavior.

bis_fnc_taskSetAlwaysVisible编辑

//Syntax
[_taskId:string,_alwaysVisible:bool] call bis_fnc_taskSetAlwaysVisible;

bis_fnc_taskAlwaysVisible编辑

//Syntax
_alwaysVisible:bool = [_taskId:string] call bis_fnc_taskAlwaysVisible;

Task overview编辑

Task overview is a new display that shows all tasks available to player in 3D environment. It is triggered by new action 'Tasks Overview'. Action can be found in 'Common' section and uses the keybind that was previously used by 'Diary' action.

Interaction

  • on keydown - all task markers and navigation elements show up and a special widget with assigned task type and name pops-up in the top-left corner
  • on keyup - 3 secs timer starts to tick, when it is over the task markers, navigation elements and assigned task widget fade out

Assigned task widget

The 'Task Overview' action also shows a small widget (currently in top-left corner). The functionality of the widget is currently limited, it shows task type icon and task name. The future plans are to extend the feature by adding task's short description (if provided) or first few lines of the description text (if short description is not provided). Custom data info (like are assigned players provided by Shared Objectives) could also be added.

Note: Assigned task widget is disabled for A3 1.58 release. It's functionality is being refined.

Map markers and tooltip widgets编辑

Map marker编辑

The former non-interactive markers were replaced by new interactive markers that shows the task type icon and have a tooltip widget.

Interaction patterns (marker)

  • on click on marker - opens-up the task diary panels and selects the task in the task index. Color of the selected task marker on the map gets inverted.
  • on click outside of the marker - closes the diary panels and deselects task marker if it was previously selected. Colors return to normal scheme.
  • on mouse over - marker scales up and tooltip widget get displayed

Tooltip widget编辑

The tooltip widget shows task name, its state and can also display custom data info. The widget can be used to quickly assign to or unassign from a task.

Interaction patterns (tooltip)

  • on mouse over - task state text (bottom text) changes to action which will trigger on click; it is either assign or unassign
  • on mouse leave - tooltip hides
  • on click - assigns or unassigns task; bottom text shows the action that will trigger on click

Task index and description panels编辑

Task index panel编辑

There were 2 major improvements done to the task index panel functionality wise:

  1. inactive (succeeded, failed or cancelled) tasks are automatically drawn in 'disabled' color and are moved down to the bottom of the task list
  2. parent/child task folding visualization and functionality was fixed

Interaction patterns

  • on click (on a list entry) - selects the task in the list and opens up the task description panel. In addition to the former state it also highlights the task marker on the map
  • on double-click (on a list entry) - centers the map on the task marker (if present)

Task description panel编辑

There are now 2 new buttons under task title - toggle button 'Assign'/'Unassign' and 'Locate' button (with distance indicator).

Interaction patterns

  • on 'Assign' button click - assigns the task to player; mimicing functionality of previous 'Assign task as current'
  • on 'Unassign' button click - unassigns player from the task; was not possible before
  • on 'Locate' button click - centers the map on the task marker (if present)

Locate button remarks

  • Locate button currently uses "Find" string. It is subject to change.
  • If task doesn't have an objective linked the Locate buttons is disabled.
  • Number in parentheses shows the actual distance from player to the task objective.
  • If showing distances is blocked through difficulty settings, button is visible, but the distance indicator is hidden.

Diary screen编辑

Visual and functionality of task index and description panel is almost identical to map diary panels, with a single exception - there is no 'Locate' button in the task description panel.

There were 2 major changes done to the Diary display:

  • In addition to the former functionality it also shows 3D markers of all tasks available to player; similarly to the 'Task Overview' action.
  • The 'Diary' action was remapped to 2x[J] as its former keybind was taken by the 'Task Overview' action.

Debriefing编辑

Changes and fixes done to the debriefing screen:

  • Task type icons were added to each task.
  • Task list placement was fixed, list made wider so it properly fits the area dedicated to the task list.
  • Uncompleted tasks are now in 'disabled' color. It usually should not happen as it is a good practice to complete every task at the end of the mission - either cancel, fail or succeed it.

Custom Data and 'Shared Objectives'编辑

Custom data is a brand new feature that was prototyped on the scripted 'Shared Objectives' system. Custom Data allows for displaying extra information in task index and description panel as well as map marker tooltip.

New commands编辑

Custom data are completely local. There are 2 new commands that interact with custom data.

setSimpleTaskCustomData编辑

Command setSimpleTaskCustomData attaches icon, short text (max. 3 characters) displayed next to the icon and long text displayed on the task description panel locally to given task.

//Syntax:
task setSimpleTaskCustomData [icon,iconText,descriptionText]
 
//Parameters:
* task: task - task the custom data are being added to
* icon: string - icon path
* iconText: string - text displayed next to the icon; max. 3 characters
* descriptionText: string - text displayed on the task description panel; html format
 
//Return:
* nothing

taskCustomData编辑

Command taskCustomData returns custom data attached to the local task or [] if there are no custom data attached.

//Syntax:
taskCustomData task
 
//Parameters:
* task: task - task the custom data are being added to
 
//Return:
* custom data array in format [icon,iconText,descriptionText]
  * icon: string - icon path
  * iconText: string - text displayed next to the icon; max. 3 characters
  * descriptionText: string - text displayed on the task description panel; html format

Shared Objectives编辑

Task Overhaul is going to ship with one system build on Custom Data - Shared Objectives. The system monitors people assigned to particular tasks and displays locally the assigned player count per task.

Shared objective can be added to mission from EDEN editor by:

  1. opening Attributes >> Multiplayer >> Tasks >> Shared Objectives panel
  2. selecting either: 'Enable' or 'Enable with Task Propagation'

If 'Enable with Task Propagation' is selected, system automatically re-assigns tasks to every subordinate according to the group leader whenever the leader changes his assigned task.

Appendix编辑

Default Task Types: Actions编辑

Icon Task Type
File:Bis tasktype attack.png attack
File:Bis tasktype default.png default
File:Bis tasktype defend.png defend
File:Bis tasktype destroy.png destroy
File:Bis tasktype download.png download
File:Bis tasktype exit.png exit
File:Bis tasktype heal.png heal
File:Bis tasktype interact.png interact
File:Bis tasktype kill.png kill
File:Bis tasktype meet.png meet
File:Bis tasktype move.png move
File:Bis tasktype move1.png move1
File:Bis tasktype move2.png move2
File:Bis tasktype move3.png move3
File:Bis tasktype move4.png move4
File:Bis tasktype move5.png move5
File:Bis tasktype navigate.png navigate
File:Bis tasktype rearm.png rearm
File:Bis tasktype refuel.png refuel
File:Bis tasktype repair.png repair
File:Bis tasktype run.png run
File:Bis tasktype scout.png scout
File:Bis tasktype search.png search
File:Bis tasktype talk.png talk
File:Bis tasktype talk1.png talk1
File:Bis tasktype talk2.png talk2
File:Bis tasktype talk3.png talk3
File:Bis tasktype talk4.png talk4
File:Bis tasktype talk5.png talk5
File:Bis tasktype target.png target
File:Bis tasktype upload.png upload
File:Bis tasktype walk.png walk

Default Task Types: Objects编辑

Icon Task Type
File:Bis tasktype armor.png armor
File:Bis tasktype intel.png intel
File:Bis tasktype map.png map
File:Bis tasktype radio.png radio
File:Bis tasktype rifle.png rifle
File:Bis tasktype whiteboard.png whiteboard

Default Task Types: Objects编辑

There is also full set of capital letters available. Task types are named simply "a", "b", ... "z".

Icon Task Type
File:Bis tasktype a.png a
Bis tasktype z.png z

更多维基

随机维基