ra: 托管时镜头自动跟随防守热点
新增 BotTakeoverCameraFollower(Player trait):托管开启时通过 ViewportCenterProvider 自动跟随热点事件,默认偏防守(基地/矿区受击优先,建造落点次之),并使用热点衰减 + 最短驻留时间 + 切换阈值避免多处战斗时镜头抖动。 同时: - mods/ra/rules/player.yaml 接入该 trait(仅 takeover 激活时生效) - 修复 ingame-player.yaml 的 TooltipDesc/FTL 校验警告 - 小幅代码风格优化(不改行为)
This commit is contained in:
@@ -47,7 +47,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
readonly BotTakeoverManagerInfo info;
|
||||
|
||||
IBot activeBot;
|
||||
readonly List<int> conditionTokens = new();
|
||||
readonly List<int> conditionTokens = [];
|
||||
|
||||
bool pendingAutoActivate;
|
||||
int autoActivateRemainingTicks;
|
||||
|
||||
Reference in New Issue
Block a user