Skip to content

Radar / Power Outage warhead#2205

Open
WingHwy wants to merge 16 commits into
Phobos-developers:developfrom
WingHwy:warhead
Open

Radar / Power Outage warhead#2205
WingHwy wants to merge 16 commits into
Phobos-developers:developfrom
WingHwy:warhead

Conversation

@WingHwy
Copy link
Copy Markdown

@WingHwy WingHwy commented May 9, 2026

  • Now you can use the following tags to make the warhead cause a radar or power outage to the affected houses for a specified duration.
  • RadarOutage disables the radar display (identical to a Lightning Storm), while PowerOutage causes a blackout (identical to spy infiltration on a Power Plant).
  • If Duration is positive, it stacks onto the current outage timer, unless Cap is negative — then the effect does not stack and only the longest single duration is kept.
  • If Duration is negative, it reduces the current outage timer.
  • When Cap is positive, it acts as a ceiling for stacking or a floor for reduction.
  • Setting Cap to 0 with a negative Duration removes the outage entirely.
  • The final duration never goes below zero.

In rulesmd.ini:

[SOMEWARHEAD]                     ; WarheadType
RadarOutage.Duration=0            ; integer, game frames
RadarOutage.Cap=0                 ; integer
RadarOutage.AffectsHouse=enemies  ; Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
PowerOutage.Duration=0            ; integer, game frames
PowerOutage.Cap=0                 ; integer
PowerOutage.AffectsHouse=enemies  ; Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)

@CCCP84
Copy link
Copy Markdown

CCCP84 commented May 10, 2026

Is it possible to use this feature so that a spy enters a Spysat and turns it off for a certain time, losing map visibility for the player?

@DeathFishAtEase DeathFishAtEase added ❓New feature Needs testing ⚙️T1 T1 maintainer review is sufficient Needs MP testing This PR needs to be tested for desync. labels May 10, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 10, 2026

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.

@DeathFishAtEase
Copy link
Copy Markdown
Collaborator

DeathFishAtEase commented May 10, 2026

About docs:

  1. Please ensure that the comments within the ini block are aligned.
  2. Please place descriptive content outside the ini block, especially content that has already been elaborated in the descriptive text is not suitable to be repeated within the ini block.

@WingHwy
Copy link
Copy Markdown
Author

WingHwy commented May 10, 2026

About docs:

  1. Please ensure that the comments within the ini block are aligned.
  2. Please place descriptive content outside the ini block, especially content that has already been elaborated in the descriptive text is not suitable to be repeated within the ini block.

Okay, got it. Thanks for correcting me.

@WingHwy
Copy link
Copy Markdown
Author

WingHwy commented May 10, 2026

Is it possible to use this feature so that a spy enters a Spysat and turns it off for a certain time, losing map visibility for the player?

Do you mean turning off the radar screen (like a Lightning Storm), or literally removing the map reveal so everything goes back to black fog? Our RadarOutage feature only does the first one. If you need the full map vision removed, that would require a different approach, such as triggering a Create Gap effect or adding a new tag to disable SpySat – maybe something we can suggest for a future update.

@phoboscn-bot
Copy link
Copy Markdown

To Chinese users:
This pull request has been mentioned on Phobos CN. There might be relevant details there:

致中文用户:
此拉取请求已在 Phobos CN 上被提及。那里可能有相关详细信息:

https://www.phoboscn.top/t/topic/439/1

Comment thread src/Ext/WarheadType/Body.cpp
@TaranDahl
Copy link
Copy Markdown
Contributor

Tested by https://www.phoboscn.top/t/topic/439/5

@TaranDahl
Copy link
Copy Markdown
Contributor

Needs MP testing

@DeathFishAtEase for what reason?

@DeathFishAtEase
Copy link
Copy Markdown
Collaborator

I think I mistakenly thought that "losing map visibility" was also part of the PR's planned content, so I added that label. As it currently appears, it might not be necessary.

@DeathFishAtEase DeathFishAtEase removed the Needs MP testing This PR needs to be tested for desync. label May 11, 2026
@WingHwy
Copy link
Copy Markdown
Author

WingHwy commented May 11, 2026

Renamed RadarOutage.Max / PowerOutage.Max to Cap and switched to Helpers::Alex::getCappedDuration, adding support for non‑stacking mode and reduction floors via the Cap value while preserving the existing stacking behavior.

Copy link
Copy Markdown
Author

@WingHwy WingHwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread src/Ext/WarheadType/Body.cpp
@TaranDahl TaranDahl requested a review from NetsuNegi May 12, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

❓New feature ⚙️T1 T1 maintainer review is sufficient Tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants