OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Dioxine on April 19, 2023, 04:35:13 pm
-
Ability to set flag on Mind Control to change faction to civilian upon successful mind control attack, instead of the faction of the owner of weapon. Could be a fun option. :)
I believe this will open a completely new tactical option; weapons which are meant to not puppetteer enemies, but turn them relatively docile (by changing faction to civilian in case of Mind Control). On the upside, such 'confusing' weapons can be much stronger/faster/cheaper to use than their Mind Control (change to own faction) counterparts.
Example: Herder's Staff in XPZ. My idea for it was to be a pacifying weapon, but I went for MC since it was the closest approximation. Now if it could change enemies into temporary civilians I could give it more attacks per turn, and this gives a fresh dimension to psionic combat: mass confusion instead of direct puppeteering.
-
moved to WIP section
-
Done.
https://github.com/MeridianOXC/OpenXcom/commit/c923f301e30add05cd2cc490d9b99675e950d505
Attribute `convertToCivilian: true` on items.
Currently the only added functionality is mind-controlling a original-hostile into a temporary-neutral.
(other combinations are not supported until explicitly requested... this was a rather difficult change, bordering on out of scope, with potential side-effects which I haven't found yet... please test carefully)
Sample ruleset:
items:
- type: STR_PSIAMP_NEUTRAL
targetMatrix: 2 # only target hostiles
convertToCivilian: true # duh
requires:
- STR_PSI_AMP
size: 0.1
costSell: 194700
weight: 10
bigSprite: 33
floorSprite: 32
handSprite: 88
hitSound: 36
battleType: 9
twoHanded: true
invWidth: 1
invHeight: 3
tuUse: 25
flatRate: true
When a conversion to neutral happen, the game doesn't display the classic "Mind Control Successful" message, but just a generic "Action Successful" message.
Modders should translate it to whatever makes sense for their mod.
STR_MIND_CONTROL_SUCCESSFUL_ALT: "Action Successful"