Skip to content

Customizable disguised target evaluation behaviour in new ScriptType attack actions - #1169

Open
FS-21 wants to merge 21 commits into
Phobos-developers:developfrom
FS-21:feature/ai-teams-detect-disguises
Open

Customizable disguised target evaluation behaviour in new ScriptType attack actions#1169
FS-21 wants to merge 21 commits into
Phobos-developers:developfrom
FS-21:feature/ai-teams-detect-disguises

Conversation

@FS-21

@FS-21 FS-21 commented Oct 4, 2023

Copy link
Copy Markdown
Contributor
  • By default, any unit with DetectDisguise=yes seeking targets via new attack team missions introduced in Phobos always detects the disguised units (100% probability). The probability to detect a disguised object now can be customized.
  • DetectDisguise.Percent values represent the probabilities in hard, medium & easy difficulty, in that order.

In rulesmd.ini:
[SOMETECHNO] ; TechnoType
DetectDisguise.Percent=1.0, 1.0, 1.0 ; float, percents or absolute

Customizable disguised target evaluation behaviour in new ScriptType attack actions.

- By default, any unit with `DetectDisguise=yes` seeking targets via new [attack team missions introduced in Phobos](AI-Scripting-and-Mapping.md#10000-10049-attack-actions) always detects the disguised units. The probability to detect a disguised object now can be customized.
- `DetectDisguise.Percent` values represent the probabilities in hard, medium & easy difficulty, in that order.

In rulesmd.ini:
[SOMETECHNO]           ; TechnoType
DetectDisguise.Percent=1.0, 1.0, 1.0  ; float, percents or absolute
@FS-21

FS-21 commented Oct 4, 2023

Copy link
Copy Markdown
Contributor Author

Similar behaviour of the YR tag DisabledDisguiseDetectionPercent

From rulesmd.ini comments:

DisabledDisguiseDetectionPercent=25,20,15
;15,5,2 ;gs h,m,e Damn I love this section. This is the percent chance that an individual unit will detect a Mirage Tank who is fake-blinking (from Firing). This is per unit, so even a lowish number is near automatic when the computer has 10 guys nearby

So 6 units in a AI team capable to detect disguised units with the new DetectDisguise.Percent means that the disguised unit will be evaluated 6 times.

@github-actions

github-actions Bot commented Oct 4, 2023

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Comment thread src/Ext/TechnoType/Body.h Outdated
Comment thread src/Ext/Script/Mission.Attack.cpp Outdated
Comment thread src/Ext/Script/Mission.Attack.cpp
@Starkku
Starkku force-pushed the develop branch 2 times, most recently from b429215 to 280b1c8 Compare June 29, 2025 19:13
FS-21 added 2 commits August 24, 2026 11:15
…etect-disguises

# Conflicts:
#	CREDITS.md
#	docs/Fixed-or-Improved-Logics.md
#	src/Ext/Script/Mission.Attack.cpp
#	src/Ext/TechnoType/Body.cpp
#	src/Ext/TechnoType/Body.h
@Phobos-developers Phobos-developers deleted a comment from coderabbitai Bot Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants