Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchTuning::Player Struct Referencefinal

#include <match_tuning.h>

Static Public Attributes

static constexpr float DEFAULT_ATTRIBUTE = 0.5f
 
static constexpr float RATING_SCALE = 100.0f
 
static constexpr float ATTRIBUTE_PIVOT = 0.66f
 
static constexpr float ATTRIBUTE_CONTRAST = 3.6f
 
static constexpr float REFERENCE_LEVEL = 0.65f
 
static constexpr float LEVEL_NORMALISATION = 0.7f
 
static constexpr float LEVEL_FINISHING_GAIN = 2.5F
 
static constexpr float ELITE_FINISHING_GAIN = 1.0f
 
static constexpr float MIN_LEVEL_PRECISION = 0.6f
 
static constexpr float ATTRIBUTE_SATURATION = 0.38f
 
static constexpr float MIN_ATTRIBUTE = 0.02f
 
static constexpr float TOP_SPEED_BASE = 7.4f
 
static constexpr float TOP_SPEED_PACE = 2.6f
 
static constexpr float ACCELERATION_BASE = 5.7f
 
static constexpr float ACCELERATION_PACE = 1.6f
 
static constexpr float ACCELERATION_PHYSICALITY = 0.6f
 
static constexpr float BRAKING_BASE = 6.0f
 
static constexpr float BRAKING_PHYSICALITY = 2.0f
 
static constexpr float LATERAL_ACCELERATION_SLOW = 9.0f
 
static constexpr float LATERAL_ACCELERATION_FAST = 5.5f
 
static constexpr float ARRIVAL_DECELERATION = 2.0f
 
static constexpr float ARRIVAL_DEAD_ZONE_METRES = 0.35f
 
static constexpr float FACING_TURN_RATE_RADIANS = 9.0f
 
static constexpr float MOVEMENT_FACING_THRESHOLD = 0.3f
 
static constexpr float MINIMUM_STAMINA = 0.35f
 
static constexpr float FATIGUE_TOP_SPEED_LOSS = 0.14f
 
static constexpr float FATIGUE_ACCELERATION_LOSS = 0.06f
 
static constexpr float FATIGUE_WORK_RATE_LOSS = 0.12f
 
static constexpr float EMPTY_RESERVE_TOP_SPEED = 0.80f
 
static constexpr float HOLD_SHAPE_SPEED_SCALE = 0.36f
 
static constexpr float CARRY_BALL_SPEED_SCALE = 0.60f
 
static constexpr float SUPPORT_SPEED_SCALE = 0.46f
 
static constexpr float ATTACKING_RUN_SPEED_SCALE = 0.95f
 
static constexpr float PRESS_SPEED_SCALE = 0.88f
 
static constexpr float COVER_SPEED_SCALE = 0.55f
 
static constexpr float MARKING_SPEED_SCALE = 0.52f
 
static constexpr float RECOVERY_SPEED_SCALE = 0.58f
 
static constexpr float GOALKEEPER_MOVEMENT_SPEED_SCALE = 0.7f
 
static constexpr float RESTART_WALK_SPEED_SCALE = 0.22f
 
static constexpr float URGENCY_DISTANCE_METRES = 25.0f
 
static constexpr float MAX_URGENCY_SPEED_SCALE = 0.56f
 
static constexpr float TACTICAL_TARGET_RESPONSE_PER_SECOND = 1.8f
 
static constexpr float URGENT_TARGET_RESPONSE_PER_SECOND = 4.5f
 
static constexpr float FAMILIARITY_RESPONSE_LOSS = 0.3f
 
static constexpr float MINIMUM_BODY_SEPARATION_METRES = 0.8f
 
static constexpr float BODY_SEPARATION_SHARE = 0.5f
 
static constexpr float BODY_COLLISION_VELOCITY_RETAINED = 0.9f
 
static constexpr float SUBSTITUTION_SETTLE_SECONDS = 1.5f
 
static constexpr float MAX_LOOSE_BALL_LOOKAHEAD_SECONDS = 1.2f
 
static constexpr float COVER_LOOSE_BALL_OFFSET = 0.055f
 
static constexpr float PASS_RECEIVER_LOOKAHEAD_SECONDS = 0.8f
 
static constexpr float MINIMUM_PURSUIT_SPEED = 1.4f
 
static constexpr float CURRENT_VELOCITY_PURSUIT_WEIGHT = 0.55f
 
static constexpr float MAX_COUNTED_STEP_SPEED = 13.0f
 

Detailed Description

Player kinematics: an in-situ acceleration-speed profile a(v) = A0 (1 - v / vmax) for speeding up, a stronger braking capacity and a speed-dependent lateral (centripetal) limit so sharp turns at speed force a player to slow down first.

Member Data Documentation

◆ ACCELERATION_BASE

constexpr float MatchTuning::Player::ACCELERATION_BASE = 5.7f
staticconstexpr

◆ ACCELERATION_PACE

constexpr float MatchTuning::Player::ACCELERATION_PACE = 1.6f
staticconstexpr

◆ ACCELERATION_PHYSICALITY

constexpr float MatchTuning::Player::ACCELERATION_PHYSICALITY = 0.6f
staticconstexpr

◆ ARRIVAL_DEAD_ZONE_METRES

constexpr float MatchTuning::Player::ARRIVAL_DEAD_ZONE_METRES = 0.35f
staticconstexpr

◆ ARRIVAL_DECELERATION

constexpr float MatchTuning::Player::ARRIVAL_DECELERATION = 2.0f
staticconstexpr

Desired-speed approach to a target (comfortable deceleration).

◆ ATTACKING_RUN_SPEED_SCALE

constexpr float MatchTuning::Player::ATTACKING_RUN_SPEED_SCALE = 0.95f
staticconstexpr

◆ ATTRIBUTE_CONTRAST

constexpr float MatchTuning::Player::ATTRIBUTE_CONTRAST = 3.6f
staticconstexpr

◆ ATTRIBUTE_PIVOT

constexpr float MatchTuning::Player::ATTRIBUTE_PIVOT = 0.66f
staticconstexpr

◆ ATTRIBUTE_SATURATION

constexpr float MatchTuning::Player::ATTRIBUTE_SATURATION = 0.38f
staticconstexpr

◆ BODY_COLLISION_VELOCITY_RETAINED

constexpr float MatchTuning::Player::BODY_COLLISION_VELOCITY_RETAINED = 0.9f
staticconstexpr

◆ BODY_SEPARATION_SHARE

constexpr float MatchTuning::Player::BODY_SEPARATION_SHARE = 0.5f
staticconstexpr

◆ BRAKING_BASE

constexpr float MatchTuning::Player::BRAKING_BASE = 6.0f
staticconstexpr

◆ BRAKING_PHYSICALITY

constexpr float MatchTuning::Player::BRAKING_PHYSICALITY = 2.0f
staticconstexpr

◆ CARRY_BALL_SPEED_SCALE

constexpr float MatchTuning::Player::CARRY_BALL_SPEED_SCALE = 0.60f
staticconstexpr

◆ COVER_LOOSE_BALL_OFFSET

constexpr float MatchTuning::Player::COVER_LOOSE_BALL_OFFSET = 0.055f
staticconstexpr

◆ COVER_SPEED_SCALE

constexpr float MatchTuning::Player::COVER_SPEED_SCALE = 0.55f
staticconstexpr

◆ CURRENT_VELOCITY_PURSUIT_WEIGHT

constexpr float MatchTuning::Player::CURRENT_VELOCITY_PURSUIT_WEIGHT = 0.55f
staticconstexpr

◆ DEFAULT_ATTRIBUTE

constexpr float MatchTuning::Player::DEFAULT_ATTRIBUTE = 0.5f
staticconstexpr

◆ ELITE_FINISHING_GAIN

constexpr float MatchTuning::Player::ELITE_FINISHING_GAIN = 1.0f
staticconstexpr

Above the reference finishing improves more slowly.

◆ EMPTY_RESERVE_TOP_SPEED

constexpr float MatchTuning::Player::EMPTY_RESERVE_TOP_SPEED = 0.80f
staticconstexpr

Top speed kept with an empty repeat-sprint reserve.

◆ FACING_TURN_RATE_RADIANS

constexpr float MatchTuning::Player::FACING_TURN_RATE_RADIANS = 9.0f
staticconstexpr

◆ FAMILIARITY_RESPONSE_LOSS

constexpr float MatchTuning::Player::FAMILIARITY_RESPONSE_LOSS = 0.3f
staticconstexpr

Response lost by a side with no familiarity with its tactics.

◆ FATIGUE_ACCELERATION_LOSS

constexpr float MatchTuning::Player::FATIGUE_ACCELERATION_LOSS = 0.06f
staticconstexpr

◆ FATIGUE_TOP_SPEED_LOSS

constexpr float MatchTuning::Player::FATIGUE_TOP_SPEED_LOSS = 0.14f
staticconstexpr

◆ FATIGUE_WORK_RATE_LOSS

constexpr float MatchTuning::Player::FATIGUE_WORK_RATE_LOSS = 0.12f
staticconstexpr

Tired players also choose to run less hard (work-rate loss).

◆ GOALKEEPER_MOVEMENT_SPEED_SCALE

constexpr float MatchTuning::Player::GOALKEEPER_MOVEMENT_SPEED_SCALE = 0.7f
staticconstexpr

◆ HOLD_SHAPE_SPEED_SCALE

constexpr float MatchTuning::Player::HOLD_SHAPE_SPEED_SCALE = 0.36f
staticconstexpr

◆ LATERAL_ACCELERATION_FAST

constexpr float MatchTuning::Player::LATERAL_ACCELERATION_FAST = 5.5f
staticconstexpr

◆ LATERAL_ACCELERATION_SLOW

constexpr float MatchTuning::Player::LATERAL_ACCELERATION_SLOW = 9.0f
staticconstexpr

Lateral acceleration a runner sustains at a standstill / top speed.

◆ LEVEL_FINISHING_GAIN

constexpr float MatchTuning::Player::LEVEL_FINISHING_GAIN = 2.5F
staticconstexpr

◆ LEVEL_NORMALISATION

constexpr float MatchTuning::Player::LEVEL_NORMALISATION = 0.7f
staticconstexpr

◆ MARKING_SPEED_SCALE

constexpr float MatchTuning::Player::MARKING_SPEED_SCALE = 0.52f
staticconstexpr

◆ MAX_COUNTED_STEP_SPEED

constexpr float MatchTuning::Player::MAX_COUNTED_STEP_SPEED = 13.0f
staticconstexpr

Teleports (restart repositioning) are not counted as running.

◆ MAX_LOOSE_BALL_LOOKAHEAD_SECONDS

constexpr float MatchTuning::Player::MAX_LOOSE_BALL_LOOKAHEAD_SECONDS = 1.2f
staticconstexpr

◆ MAX_URGENCY_SPEED_SCALE

constexpr float MatchTuning::Player::MAX_URGENCY_SPEED_SCALE = 0.56f
staticconstexpr

◆ MIN_ATTRIBUTE

constexpr float MatchTuning::Player::MIN_ATTRIBUTE = 0.02f
staticconstexpr

◆ MIN_LEVEL_PRECISION

constexpr float MatchTuning::Player::MIN_LEVEL_PRECISION = 0.6f
staticconstexpr

◆ MINIMUM_BODY_SEPARATION_METRES

constexpr float MatchTuning::Player::MINIMUM_BODY_SEPARATION_METRES = 0.8f
staticconstexpr

Two bodies of ~0.4 m radius cannot overlap.

◆ MINIMUM_PURSUIT_SPEED

constexpr float MatchTuning::Player::MINIMUM_PURSUIT_SPEED = 1.4f
staticconstexpr

◆ MINIMUM_STAMINA

constexpr float MatchTuning::Player::MINIMUM_STAMINA = 0.35f
staticconstexpr

◆ MOVEMENT_FACING_THRESHOLD

constexpr float MatchTuning::Player::MOVEMENT_FACING_THRESHOLD = 0.3f
staticconstexpr

◆ PASS_RECEIVER_LOOKAHEAD_SECONDS

constexpr float MatchTuning::Player::PASS_RECEIVER_LOOKAHEAD_SECONDS = 0.8f
staticconstexpr

◆ PRESS_SPEED_SCALE

constexpr float MatchTuning::Player::PRESS_SPEED_SCALE = 0.88f
staticconstexpr

◆ RATING_SCALE

constexpr float MatchTuning::Player::RATING_SCALE = 100.0f
staticconstexpr

◆ RECOVERY_SPEED_SCALE

constexpr float MatchTuning::Player::RECOVERY_SPEED_SCALE = 0.58f
staticconstexpr

◆ REFERENCE_LEVEL

constexpr float MatchTuning::Player::REFERENCE_LEVEL = 0.65f
staticconstexpr

The absolute level of a match (mean raw outfield attribute of both elevens) is partly normalised toward the reference level before the stretch, so quality gaps decide as before but a weaker league does not turn into a shooting gallery; the level shows in finishing precision instead (per unit of raw level).

◆ RESTART_WALK_SPEED_SCALE

constexpr float MatchTuning::Player::RESTART_WALK_SPEED_SCALE = 0.22f
staticconstexpr

◆ SUBSTITUTION_SETTLE_SECONDS

constexpr float MatchTuning::Player::SUBSTITUTION_SETTLE_SECONDS = 1.5f
staticconstexpr

◆ SUPPORT_SPEED_SCALE

constexpr float MatchTuning::Player::SUPPORT_SPEED_SCALE = 0.46f
staticconstexpr

◆ TACTICAL_TARGET_RESPONSE_PER_SECOND

constexpr float MatchTuning::Player::TACTICAL_TARGET_RESPONSE_PER_SECOND = 1.8f
staticconstexpr

Perception/intent lag: how quickly a moving target is followed.

◆ TOP_SPEED_BASE

constexpr float MatchTuning::Player::TOP_SPEED_BASE = 7.4f
staticconstexpr

◆ TOP_SPEED_PACE

constexpr float MatchTuning::Player::TOP_SPEED_PACE = 2.6f
staticconstexpr

◆ URGENCY_DISTANCE_METRES

constexpr float MatchTuning::Player::URGENCY_DISTANCE_METRES = 25.0f
staticconstexpr

Distance from the target at which a player runs at the urgency cap.

◆ URGENT_TARGET_RESPONSE_PER_SECOND

constexpr float MatchTuning::Player::URGENT_TARGET_RESPONSE_PER_SECOND = 4.5f
staticconstexpr

The documentation for this struct was generated from the following file: