Skip to main content
Version: Unreleased

PatreonSafetyRatingPlugin

This plugin assigns ranks to players based on the number of collisions per driven distance. This makes it easy for other players to identify bad drivers or rammers.

note

PatreonHubPlugin is required for this plugin to work.

Forced minimum CSP version of 0.1.77 (1937) and EnableClientMessages: true in extra_cfg.yml required!

How it works

The plugin assigns contact points to all collisions of a player and divides the driven distance by that.
The number of points for a collisions depends on relative speed and the type of collision.

Collision type multipliers are 0.2 for AI, 0.3 for environment and 0.6 for players.
The speed multiplier is capped at 100km/h.
A 100km/h crash is twice as bad as a 10km/h crash and collisions less than 10km/h are not counted.

The score has a range of 0 (worst) to 10 (best) and is recalculated after every 25km driven.

Configuration

Enable the plugin in extra_cfg.yml

extra_cfg.yml
EnablePlugins:
- PatreonSafetyRatingPlugin

Example configuration

plugin_patreon_safety_rating_cfg.yml
# Only allow admins to view safety ratings
AdminOnly: false
# Change driver chat name colors based on safety rating rank
EnableChatColors: true

Hub configuration

Ranks are configured in AssettoServer Hub. Example snippet for configuration.yml:

configuration.yml (AssettoServer Hub)
# List of ranks for PatreonSafetyRatingPlugin
SafetyRatingRanks:
- Name: A
Color: '#00FF00'
MinimumRating: 3
- Name: B
# Leave Color empty for no color
Color:
MinimumRating: 1
- Name: C
Color: '#FF0000'
MinimumRating: 0