Skip to content

Conversation

@Goober5000
Copy link
Contributor

@Goober5000 Goober5000 commented Jan 5, 2026

The existing cannot-perform-scan flag prevents the cargo from being shown on the HUD, but some modders would like to see the cargo while still preventing a ship from being able to perform a scan. So, this renames the existing flag to cannot-perform-scan-hide-cargo and adds a new cannot-perform-scan-show-cargo flag. Compatibility code in both mission parsing and flag evaluation ensures that missions using the old flag will still work.

Note that if both cannot-perform-scan-hide-cargo and cannot-perform-scan-show-cargo are set, the former will take precedence.

(I recommend viewing the PR with whitespace changes turned off.)

@Goober5000 Goober5000 added enhancement A new feature or upgrade of an existing feature to add additional functionality. sexps A feature or issue related to SEXPs Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle Requested by Active Mod A feature request that has been requested by a mod that is actively in development. labels Jan 5, 2026
@Goober5000 Goober5000 force-pushed the cannot_perform_scan_show_cargo branch from fa99157 to 5d66b9f Compare January 6, 2026 04:23
The existing `cannot-perform-scan` flag prevents the cargo from being shown on the HUD, but some modders would like to see the cargo while still preventing a ship from being able to perform a scan.  So, this renames the existing flag to `cannot-perform-scan-hide-cargo` and adds a new `cannot-perform-scan-show-cargo` flag.  Compatibility code in both mission parsing and flag evaluation ensures that missions using the old flag will still work.

Note that if both `cannot-perform-scan-hide-cargo` and `cannot-perform-scan-show-cargo` are set, the former will take precedence.
@Goober5000 Goober5000 force-pushed the cannot_perform_scan_show_cargo branch from 5d66b9f to 6a05221 Compare January 6, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature or upgrade of an existing feature to add additional functionality. Requested by Active Mod A feature request that has been requested by a mod that is actively in development. sexps A feature or issue related to SEXPs Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant