OpenXcom Forum

Modding => OpenXcom Extended => Topic started by: memmaker on February 04, 2020, 10:41:30 pm

Title: [Documentation] New Targeting Options for the PSI Amp
Post by: memmaker on February 04, 2020, 10:41:30 pm
Hi there,
a new OXCE feature has been merged and will become available in future builds: New targeting options for the PSI Amp.

You can now define which factions can be targeted with the PSI Amp.

An example looks like this:
# 1 = player, 2 = hostile, 4 = neutral

Code: [Select]
items:
  - type: STR_FRIENLDY_FIRE_PSI_AMP
    psiTargetMatrix: 1    # 1= player faction only, defaults to 6 (hostile + neutral)

This would define a PSI Amp which can target only allied units. You can disallow targeting of your own or other factions explicitly with this.
Title: Re: [Documentation] New Targeting Options for the PSI Amp
Post by: Meridian on February 04, 2020, 10:56:34 pm
Note: mind-control on friendly units is not possible, hardcoded. Other actions (panic, use) are possible.
Title: Re: [Documentation] New Targeting Options for the PSI Amp
Post by: Meridian on October 22, 2020, 07:48:25 pm
Update:

`psiTargetMatrix` has been renamed to `targetMatrix` in OXCE v6.7.1

See also: https://openxcom.org/forum/index.php/topic,7671.msg133202.html#msg133202