跳到主要内容
版本:未发布

PatreonOvertakePlugin

带排行榜的超车模式插件。玩家在不发生碰撞的情况下超越其他车辆即可获得分数。 每次超车,得分倍率增加 1;每次近距离超车增加 3;倍率会随时间缓慢下降。

备注

排行榜需要 PatreonHubPlugin 才能工作。

需要强制最低 CSP 版本 0.1.77 (1937),并且在 extra_cfg.yml 中设置 EnableClientMessages: true

配置

extra_cfg.yml 中启用该插件

extra_cfg.yml
EnablePlugins:
- PatreonOvertakePlugin

参考配置

plugin_patreon_overtake_cfg.yml
# Name of leaderboard. Use this if you have multiple servers connected to the hub and want them to have different leaderboards.
LeaderboardName: "Default"
# Minimum speed required for an overtake run to start
MinimumSpeedKph: 80
# Number of seconds a player can drive below the minimum speed before the run ends
TooSlowTimeoutSeconds: 3
# Maximum distance to another for an overtake to count
OvertakeDistanceMeters: 7
# Maximum distance for a close overtake (x3 score multiplier)
CloseOvertakeDistanceMeters: 4
# Define whether the overtake UI is enabled by default (it can always be enabled/disabled via the light bulb in chat)
EnableUIByDefault: false
# List of random messages to show on collision
CollisionMessages:
- "Collision!"
# List of random messages to show on overtake
OvertakeMessages:
- "Overtake"
# List of random messages to show on close overtake
CloseOvertakeMessages:
- "Close Overtake!"

UI 自定义

超车模式的 lua 脚本位于 plugins/PatreonOvertakePlugin/lua/overtake.lua。你可以编辑此文件来更改 UI、添加 logo 等。
注意,出于安全原因,分数计算在服务器端进行,无法通过此方式修改。