Skip to content

Customize IdleActionFrequency - #2377

Open
DeathFishAtEase wants to merge 2 commits into
Phobos-developers:developfrom
DeathFishAtEase:IdleActionFrequency
Open

Customize IdleActionFrequency#2377
DeathFishAtEase wants to merge 2 commits into
Phobos-developers:developfrom
DeathFishAtEase:IdleActionFrequency

Conversation

@DeathFishAtEase

Copy link
Copy Markdown
Collaborator

What kind of change is this?

  • New feature, vanilla bugfix or enhancement of a released feature - changelog, docs and credits entries are needed.
  • Improvement to a new (unreleased) feature - docs and credits entries are needed; no changelog entry (Skip Changelog).
  • Bugfix to a new (unreleased) feature - credits entry is needed; no changelog or docs entries (Skip Changelog, Skip Docs).
  • Bugfix to an old (released) feature - changelog and credits entries are needed; no docs entry (Skip Docs).
  • Completely minor change (e.g. a typo fix) - no entries are needed (Skip Changelog, Skip Docs, Skip Credits).

Description

  • Now IdleActionFrequency can be customized on each infantry.
    • With a single value, the interval is a random value between IdleActionFrequency * 450 and IdleActionFrequency * 1800 frames, which customizes the frequency the same way the global value does.
    • With two values, the first one directly sets the lower bound and the second one the upper bound of the random interval in frames.

In rulesmd.ini:

[SOMEINFANTRY]                        ; InfantryType
IdleActionFrequency=                  ; a single floating point value, or a pair of integers defining the random delay range in frames (min, max), defaults to [AudioVisual] -> IdleActionFrequency

@DeathFishAtEase DeathFishAtEase self-assigned this Aug 30, 2026
@DeathFishAtEase DeathFishAtEase added Needs testing ⚙️T1 T1 maintainer review is sufficient ❓Unhardcoding / Customization Make something more tweakable labels Aug 30, 2026
@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/749/1

@github-actions

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs testing ⚙️T1 T1 maintainer review is sufficient ❓Unhardcoding / Customization Make something more tweakable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants