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

#include <match_tuning.h>

Static Public Attributes

static constexpr float CROSSING_FREE_KICK_METRES = 45.0f
 
static constexpr float DIRECT_FREE_KICK_METRES = 30.0f
 
static constexpr float DIRECT_FREE_KICK_WIDTH_METRES = 16.0f
 
static constexpr float CROSS_MIN_WIDTH_METRES = 16.0f
 
static constexpr float DIRECT_SHOT_BASE = 0.55f
 
static constexpr float DIRECT_SHOT_SKILL = 0.45f
 
static constexpr float DIRECT_SHOT_DISTANCE_PENALTY = 0.012f
 
static constexpr float DIRECT_FREE_KICK_XG = 0.065f
 
static constexpr float WALL_BLOCK_BASE = 0.34f
 
static constexpr float WALL_BLOCK_SKILL = 0.20f
 
static constexpr float WALL_REBOUND_SPEED_SHARE = 0.35f
 
static constexpr float WALL_SCREEN_SECONDS = 0.55f
 
static constexpr float FREE_KICK_ERROR_SCALE = 0.5f
 
static constexpr float FREE_KICK_AIM_INSET_SPREAD = 0.6f
 
static constexpr float FREE_KICK_AIM_MIN_HEIGHT_METRES = 1.2f
 
static constexpr float SHORT_CORNER_CHANCE = 0.12f
 
static constexpr float SHORT_CORNER_MAX_DISTANCE_METRES = 14.0f
 
static constexpr float NEAR_POST_CHANCE = 0.42f
 
static constexpr float TARGET_RANDOMNESS = 0.6f
 
static constexpr float TARGET_THREAT_WEIGHT = 0.0f
 
static constexpr std::size_t REST_DEFENDERS = 3
 
static constexpr float MARKING_GOAL_SIDE_OFFSET = 0.008f
 
static constexpr float PENALTY_WAIT_OFFSET = 0.01f
 
static constexpr float SET_PIECE_PHASE_SECONDS = 20.0f
 
static constexpr float CLEARANCE_BEHIND_CHANCE = 0.6f
 
static constexpr float HEADER_BEHIND_CHANCE = 0.33f
 
static constexpr float OWN_GOAL_TOUCH_CHANCE = 0.025F
 
static constexpr float OWN_GOAL_TOUCH_DEPTH_METRES = 9.0f
 
static constexpr float OWN_GOAL_TOUCH_WIDTH_METRES = 9.0f
 
static constexpr float OWN_GOAL_MIN_SPEED = 7.0f
 
static constexpr float OWN_GOAL_MAX_SPEED = 13.0f
 
static constexpr float OWN_GOAL_MAX_LIFT = 2.0f
 
static constexpr float BLOCK_BEHIND_CHANCE = 0.6f
 
static constexpr float BLOCK_BEHIND_DEPTH = 0.20f
 
static constexpr float CROSS_CLEARANCE_DEPTH = 0.25f
 

Member Data Documentation

◆ BLOCK_BEHIND_CHANCE

constexpr float MatchTuning::SetPiece::BLOCK_BEHIND_CHANCE = 0.6f
staticconstexpr

◆ BLOCK_BEHIND_DEPTH

constexpr float MatchTuning::SetPiece::BLOCK_BEHIND_DEPTH = 0.20f
staticconstexpr

◆ CLEARANCE_BEHIND_CHANCE

constexpr float MatchTuning::SetPiece::CLEARANCE_BEHIND_CHANCE = 0.6f
staticconstexpr

◆ CROSS_CLEARANCE_DEPTH

constexpr float MatchTuning::SetPiece::CROSS_CLEARANCE_DEPTH = 0.25f
staticconstexpr

◆ CROSS_MIN_WIDTH_METRES

constexpr float MatchTuning::SetPiece::CROSS_MIN_WIDTH_METRES = 16.0f
staticconstexpr

◆ CROSSING_FREE_KICK_METRES

constexpr float MatchTuning::SetPiece::CROSSING_FREE_KICK_METRES = 45.0f
staticconstexpr

◆ DIRECT_FREE_KICK_METRES

constexpr float MatchTuning::SetPiece::DIRECT_FREE_KICK_METRES = 30.0f
staticconstexpr

◆ DIRECT_FREE_KICK_WIDTH_METRES

constexpr float MatchTuning::SetPiece::DIRECT_FREE_KICK_WIDTH_METRES = 16.0f
staticconstexpr

◆ DIRECT_FREE_KICK_XG

constexpr float MatchTuning::SetPiece::DIRECT_FREE_KICK_XG = 0.065f
staticconstexpr

◆ DIRECT_SHOT_BASE

constexpr float MatchTuning::SetPiece::DIRECT_SHOT_BASE = 0.55f
staticconstexpr

◆ DIRECT_SHOT_DISTANCE_PENALTY

constexpr float MatchTuning::SetPiece::DIRECT_SHOT_DISTANCE_PENALTY = 0.012f
staticconstexpr

◆ DIRECT_SHOT_SKILL

constexpr float MatchTuning::SetPiece::DIRECT_SHOT_SKILL = 0.45f
staticconstexpr

◆ FREE_KICK_AIM_INSET_SPREAD

constexpr float MatchTuning::SetPiece::FREE_KICK_AIM_INSET_SPREAD = 0.6f
staticconstexpr

◆ FREE_KICK_AIM_MIN_HEIGHT_METRES

constexpr float MatchTuning::SetPiece::FREE_KICK_AIM_MIN_HEIGHT_METRES = 1.2f
staticconstexpr

◆ FREE_KICK_ERROR_SCALE

constexpr float MatchTuning::SetPiece::FREE_KICK_ERROR_SCALE = 0.5f
staticconstexpr

A dead ball is struck with more precision and aimed higher and tighter to the post than a shot on the move.

◆ HEADER_BEHIND_CHANCE

constexpr float MatchTuning::SetPiece::HEADER_BEHIND_CHANCE = 0.33f
staticconstexpr

A defender heading a delivery away near his goal line.

◆ MARKING_GOAL_SIDE_OFFSET

constexpr float MatchTuning::SetPiece::MARKING_GOAL_SIDE_OFFSET = 0.008f
staticconstexpr

◆ NEAR_POST_CHANCE

constexpr float MatchTuning::SetPiece::NEAR_POST_CHANCE = 0.42f
staticconstexpr

◆ OWN_GOAL_MAX_LIFT

constexpr float MatchTuning::SetPiece::OWN_GOAL_MAX_LIFT = 2.0f
staticconstexpr

◆ OWN_GOAL_MAX_SPEED

constexpr float MatchTuning::SetPiece::OWN_GOAL_MAX_SPEED = 13.0f
staticconstexpr

◆ OWN_GOAL_MIN_SPEED

constexpr float MatchTuning::SetPiece::OWN_GOAL_MIN_SPEED = 7.0f
staticconstexpr

◆ OWN_GOAL_TOUCH_CHANCE

constexpr float MatchTuning::SetPiece::OWN_GOAL_TOUCH_CHANCE = 0.025F
staticconstexpr

Chance that a defender's header or touch of a delivery in front of his goal skews toward it (own goals), and its speed and lift.

◆ OWN_GOAL_TOUCH_DEPTH_METRES

constexpr float MatchTuning::SetPiece::OWN_GOAL_TOUCH_DEPTH_METRES = 9.0f
staticconstexpr

◆ OWN_GOAL_TOUCH_WIDTH_METRES

constexpr float MatchTuning::SetPiece::OWN_GOAL_TOUCH_WIDTH_METRES = 9.0f
staticconstexpr

◆ PENALTY_WAIT_OFFSET

constexpr float MatchTuning::SetPiece::PENALTY_WAIT_OFFSET = 0.01f
staticconstexpr

◆ REST_DEFENDERS

constexpr std::size_t MatchTuning::SetPiece::REST_DEFENDERS = 3
staticconstexpr

◆ SET_PIECE_PHASE_SECONDS

constexpr float MatchTuning::SetPiece::SET_PIECE_PHASE_SECONDS = 20.0f
staticconstexpr

◆ SHORT_CORNER_CHANCE

constexpr float MatchTuning::SetPiece::SHORT_CORNER_CHANCE = 0.12f
staticconstexpr

◆ SHORT_CORNER_MAX_DISTANCE_METRES

constexpr float MatchTuning::SetPiece::SHORT_CORNER_MAX_DISTANCE_METRES = 14.0f
staticconstexpr

◆ TARGET_RANDOMNESS

constexpr float MatchTuning::SetPiece::TARGET_RANDOMNESS = 0.6f
staticconstexpr

◆ TARGET_THREAT_WEIGHT

constexpr float MatchTuning::SetPiece::TARGET_THREAT_WEIGHT = 0.0f
staticconstexpr

Weight of a box attacker's heading reach when choosing the target.

◆ WALL_BLOCK_BASE

constexpr float MatchTuning::SetPiece::WALL_BLOCK_BASE = 0.34f
staticconstexpr

◆ WALL_BLOCK_SKILL

constexpr float MatchTuning::SetPiece::WALL_BLOCK_SKILL = 0.20f
staticconstexpr

◆ WALL_REBOUND_SPEED_SHARE

constexpr float MatchTuning::SetPiece::WALL_REBOUND_SPEED_SHARE = 0.35f
staticconstexpr

◆ WALL_SCREEN_SECONDS

constexpr float MatchTuning::SetPiece::WALL_SCREEN_SECONDS = 0.55f
staticconstexpr

The wall hides the strike: the keeper reacts this much later.


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