//
// AI Prototyping configuration
//
// These are variables to play with to tune the gameplay or try alternative designs.
//

// The dimensions of the field.  The units are 16ths of a foot.  
// FIFA:	6450.0 x 4300.0 = 134.4Y x 89.6Y
// TCM:		5482.5 x 3655.0 = 114.2Y x 76.1Y  (85% of FIFA)
FIELD_LENGTH = 5482.5    
FIELD_WIDTH  = 3655.0

DIGITAL_SNAPTOANGLE = 46

// 60 is the original default value.  Values from 40 to 80 are "reasonable".
GAME_SPEED = 45

// 19 is the original default value.  Values from 10 to 25 are "reasonable".
POWERUP_RATE = 19

// Setting this to 1 will mean that powerup does not take into account the intensity of the button press (ie. Dualshock2 buttons will be treated as non-analog)
FLAT_POWERUP = 0

//There are three setting for ref Strictness
// 0 = normal
// 1 = DEBUG EASY (no carding)
// 2 = DEBUG STRICT

REFEREE_STRICTNESS = 0
REFCALL_NO_FOUL = 0

// 0 = none
// 1 = R1
// 2 = idle (no dpad movement)

SHIELDING = 2


// 0 = off		1 = movement direction is locked while powering up (and aiming) kick.
POWERUPHEADINGLOCK = 2


// 0 = no crazy CPU through passes		1 = crazy CPU through passes
CPUTHROUGHPASSES = 1

// 0 = normal					1 = cpu tries to keep the ball away
// new cpu dribble and keep away mode enabled
CPUKEEPAWAY = 1

// 0 = turn off new cpu shots			1 = turn on new cpu shots
CPUSHOTS = 1

// 0 = turn off cpu dribble			1 = turn on cpu dribble
CPUDRIBBLE = 1

CPUWALLPASS = 1

CPUCLEARANCE = 1

CPULOBPASS = 1

CPUCROSS = 1

CPUTARGET = 1

CPURUNOFFSIDE = 1

// 0 = allow CPU dekes
// 1 = no CPU dekes
NOCPUDEKES = 0

BODY_COLLISION_SCALING = 0.7

CROSS_ASSISTANCE = 9.0
CROSS_ASSISTANCE_WIDTH = 7

AGGRESSIVE_TACKLE_TACKLEE_FOOT_SIZE=12

//Defend style
DEFEND_STYLE = 0

//Auto Switch Scale
AUTO_SWITCH_SCALE = 0.7

//Defensive Tuning	
MIN_APPROACHDIST = 4
MARKPOS_BLOCKOPP_ANGLERANGE = 30
MAX_MARKPOS_BLOCKOPP_ANGLERANGE = 50
MARKPOS_DANGER_DIST = 10
MIN_MARKWING_EXTRASPACE = 5

// For debugging attibutes, we can set all the members of a team to the same values by entering it here.
// To use set either HOME or AWAY_TEAM_ATTRIB to 1, and then set the attribute values that you would like to use
// for the team.  Any time you want to use a players default values, you can set the attibute to -1.
// example to test shooting we could do this.
//
//Atribute Max is 6 min is 0
//											HOME_TEAM_ATTRIB = 1 

//												HOME_TEAM_AWARENESS		= -1
//												HOME_TEAM_BALL_CONTROL	= -1
//												HOME_TEAM_FITNESS		= -1
//												HOME_TEAM_HEADING		= -1
//												HOME_TEAM_SPEED			= -1
//												HOME_TEAM_TACKLING		= -1
//												HOME_TEAM_PASSING		= -1
//												HOME_TEAM_SHOOTING		=  6
//												HOME_TEAM_STRENGTH		= -1
//												HOME_TEAM_AGGRESSION	= -1
//												HOME_TEAM_POSITIONING	= -1
//												HOME_TEAM_SKILLS		= -1


HOME_TEAM_ATTRIB = 0

	HOME_TEAM_AWARENESS		= 3
	HOME_TEAM_BALL_CONTROL	= 3
	HOME_TEAM_FITNESS		= 3
	HOME_TEAM_HEADING		= 3
	HOME_TEAM_SPEED			= 3
	HOME_TEAM_TACKLING		= 3
	HOME_TEAM_PASSING		= 6
	HOME_TEAM_SHOOTING		= 3
	HOME_TEAM_STRENGTH		= 3
	HOME_TEAM_AGGRESSION	= 3
	HOME_TEAM_POSITIONING	= 3
	HOME_TEAM_SKILLS		= 3

AWAY_TEAM_ATTRIB = 0

	AWAY_TEAM_AWARENESS		= 3
	AWAY_TEAM_BALL_CONTROL	= 3
	AWAY_TEAM_FITNESS		= 3
	AWAY_TEAM_HEADING		= 3
	AWAY_TEAM_SPEED			= 3
	AWAY_TEAM_TACKLING		= 3
	AWAY_TEAM_PASSING		= 3
	AWAY_TEAM_SHOOTING		= 3
	AWAY_TEAM_STRENGTH		= 3	
	AWAY_TEAM_AGGRESSION	= 3
	AWAY_TEAM_POSITIONING	= 3
	AWAY_TEAM_SKILLS		= 3

// ranges for attributes
ATTRIBUTE_AVG = 60
ATTRIBUTE_GOOD = 80
ATTRIBUTE_EX = 95

//Min and Max Sprint speed used in speed attribute tuning, please tell Paul if your gonna change these
SPRINT_SPEED_POOR = 7.5
SPRINT_SPEED_AVG = 8.5
SPRINT_SPEED_GOOD = 9.5
SPRINT_SPEED_EX = 10.5

DRIBBLE_SPEED_PENALTY = 0.3

DRIBBLE_OFFSET_POOR = 36
DRIBBLE_OFFSET_AVG = 22
DRIBBLE_OFFSET_GOOD = 10
DRIBBLE_OFFSET_EX = 0

TRAP_DIST_POOR = 32
TRAP_DIST_AVG = 18
TRAP_DIST_GOOD = 8
TRAP_DIST_EX = 0

TRAP_FAIL_RATE_POOR = 0.15
TRAP_FAIL_RATE_AVG = 0.08
TRAP_FAIL_RATE_GOOD = 0.03
TRAP_FAIL_RATE_EX = 0

TRAP_FTSTUMBLE_RATE_POOR = 0.15
TRAP_FTSTUMBLE_RATE_AVG = 0.08
TRAP_FTSTUMBLE_RATE_GOOD = 0.03
TRAP_FTSTUMBLE_RATE_EX = 0

TRAP_FTSTAR_RATE_POOR = 0
TRAP_FTSTAR_RATE_AVG = 0.20
TRAP_FTSTAR_RATE_GOOD = 0.50
TRAP_FTSTAR_RATE_EX = 0.75

// defensive positioning adjustment tuning 
DEFADJ_MAX_SHIFT = 0.6
DEFADJ_MIN_SHIFT = -0.3
DEFADJ_SHIFT_RATE = 0.8

// tuning parameters for FindBestIntercept (used to determining who should mark the ball carrier)

FBI_DEF_BONUS_MAX = 0.8
FBI_DEF_BONUS_RANGE = 0.4
FBI_DEF_BONUS_LINE = -1.0
FBI_MID_BONUS_MAX = 0.8
FBI_MID_BONUS_RANGE = 0.5
FBI_MID_BONUS_LINE = -0.4
FBI_FWD_BONUS_MAX = 0.8
FBI_FWD_BONUS_RANGE = 0.6
FBI_FWD_BONUS_LINE = 0.4 
FBI_LINE_BONUS_MULTIPLIER = 20.0
FBI_ANGLE_PENALTY_SECONDS = 20.0
FBI_LEAD = 32.0
FBI_SPEEDFACTOR = 0.003
FBI_HYSTERESIS_SECONDS = 0.1
FBI_SECOND_MARKER_THRESHOLD = 125.0


// Ball player to player avoidance 
BPAVOID_RADIUS = 23.0

// Chance of getting injured/winded in a collision
INJURY_PERCENTAGE = 15

// chance of getting winded vs getting injured  (100 means always winded 0 means always injured).
INJURY_CHANCE_OF_WINDING = 40

// Possible shot height for a penalty kick in terms of netheight. 1.0 == height of net.
// NOTE: if you actually use 1.0, using full power won't score, it will hit crossbar.
PK_HEIGHT_SCALAR = 1.4

// Possible shot width for a penalty kick in terms of netheight. 1.0 == width of net.
PK_WIDTH_SCALAR = 1.6

// Rate at which penalty kicks power up (and you have time to direct your shot). Reasonable values = 5..20
PK_POWERUP_RATE = 16

GAMELINK_PROP_FILE = aitmp.prop


TACKLE_ANGLE_1 = 114
TACKLE_ANGLE_2 = 90
TACKLE_ANGLE_3 = 45

TACKLE_LENGTH_1 = 4
TACKLE_LENGTH_2 = 7
TACKLE_LENGTH_3 = 7
TACKLE_LENGTH_4 = 4

//shot (in DEGREE)
SHOT_ASSISTED_ANGLE = 45
SHOT_NEARMISS_ANGLE = 90

//smart pass (in FEET), these smart pass value are obsolete
SMART_PASS_ASSISTED_ANGLE_MAX = 95

SMART_PASS_ASSISTED_DISTANCE_MIN = 10
SMART_PASS_ASSISTED_DISTANCE_MAX = 150

SMART_SHORT_PASS_ASSISTED_DISTANCE_MAX = 50
SMART_AIRPASS_ASSISTED_DISTANCE_MAX = 150

////////////////////////////////////////////
// new smart pass parameter used by Jinsong
// all the angles are in degree
// all the distance length are in feet, 
// unless specified
///////////////////////////////////////////
SMARTPASS_PERFECT_AMING_ANGLE = 10
SMARTPASS_ACCEPTABLE_AMING_ANGLE_LV0 = 60
SMARTPASS_ACCEPTABLE_AMING_ANGLE_LV1 = 90
SMARTPASS_ACCEPTABLE_AMING_ANGLE_LV2 = 120

SMARTPASS_SAFE_DIST_TO_SIDELINE = 15
SMARTPASS_SAFE_DIST_TO_ENDLINE = 5

SMARTPASS_ASSIST_DIST_FAR = 150
SMARTPASS_ASSIST_IDEAL_DIST_NEAR = 20
SMARTPASS_ASSIST_IDEAL_DIST_FAR = 50

SMARTPASS_FREE_CRITERION_DIST_LV0 = 6
SMARTPASS_FREE_CRITERION_DIST_LV1 = 12

SMARTPASS_OPEN_CRITERION_DIST_X_LV0 = 8
SMARTPASS_OPEN_CRITERION_DIST_Z_LV0 = 12
SMARTPASS_OPEN_CRITERION_DIST_X_LV1 = 12
SMARTPASS_OPEN_CRITERION_DIST_Z_LV1 = 18

SMARTPASS_BLOCK_CRITERION_DIST = 5

SMARTPASS_LEADING_DIST_LV0 = 5
SMARTPASS_LEADING_DIST_LV1 = 12
SMARTPASS_LEADING_DIST_LV2 = 20



SMARTPASS_ANGLE_SCORE_WEIGHT = 1.0
SMARTPASS_DIST_SCORE_WEIGHT = 1.0
SMARTPASS_OPEN_SCORE_WEIGHT = 0.1
SMARTPASS_FREE_SCORE_WEIGHT = 0.1
SMARTPASS_BLOCK_SCORE_WEIGHT = 0.1

THROUGHPASS_ACCEPTABLE_AMING_ANGLE = 75

THROUGHPASS_ASSIST_DIST_NEAR = 10
THROUGHPASS_ASSIST_DIST_MID = 60
THROUGHPASS_ASSIST_DIST_FAR = 90

THROUGHPASS_FREE_CRITERION_DIST_LV0 = 6
THROUGHPASS_FREE_CRITERION_DIST_LV1 = 12

THROUGHPASS_OPEN_CRITERION_DIST_X_LV0 = 8
THROUGHPASS_OPEN_CRITERION_DIST_Z_LV0 = 12
THROUGHPASS_OPEN_CRITERION_DIST_X_LV1 = 12
THROUGHPASS_OPEN_CRITERION_DIST_Z_LV1 = 18

THROUGHPASS_BLOCK_CRITERION_DIST = 5

THROUGHPASS_LEADING_DIST_LV0 = 20
THROUGHPASS_LEADING_DIST_LV1 = 30
THROUGHPASS_LEADING_DIST_LV2 = 40

THROUGHPASS_ANGLE_SCORE_WEIGHT = 0.7
THROUGHPASS_DIST_SCORE_WEIGHT = 0.7
THROUGHPASS_OPEN_SCORE_WEIGHT = 0.2
THROUGHPASS_FREE_SCORE_WEIGHT = 0.2
THROUGHPASS_BLOCK_SCORE_WEIGHT = 0.2


/////////////////////////////////////////////
// CPU parameters for Xinwei's use only.
// If you like to tune CPU playing style or
// the difficulty level, change ini files 
// in data/cmn/ai/aicpu
/////////////////////////////////////////////
//0: HOME 
//1: AWAY 
//2: BOTH
//3: NONE
INIVADER_CONTROL_TEAM = 3

//Team Attack Style and Bias Parameters 
TEAM_ATTACKSTYLE_GOOD_PASS_LIMIT = 250000
TEAM_ATTACKSTYLE_GOOD_DRIBBLE_LIMIT = 250000
TEAM_ATTACKSTYLE_GOOD_SHOT_LIMIT = 250000
//TEAM_ATTACKSTYLE_PASS_SCALE = 1.25
//TEAM_ATTACKSTYLE_DRIBBLE_SCALE = 1.25

//TEAM_ATTACK_STYLE_FROM_INI = 1

//0:Least 1:Less 2:Neutral 3:More 4:Most
//HOME_TEAM_ATTACK_STYLE_PASS_MORE = 3
//AWAY_TEAM_ATTACK_STYLE_PASS_MORE = 2

//0:Least 1:Less 2:Neutral 3:More 4:Most
//HOME_TEAM_ATTACK_STYLE_LONG_PASS = 2
//AWAY_TEAM_ATTACK_STYLE_LONG_PASS = 2

//0:Left 1:Center 2:Right 3:BothWing 4:All
//HOME_TEAM_ATTACK_STYLE_DIRECTION = 4
//HOME_TEAM_ATTACK_STYLE_DIRECTION = 4

//Attributes effect (On: 1     Off:0)
PLAYER_ATTR_CPU_EFFECT_ON = 1

//CPU do tactic sub or not
DO_CPU_SUB = 1

//Option values used in CPU TACTIC_doBestKick
MAX_OPTION_VALUE = 1000000

//Shot
OPTION_VALUE_SHOT_DIST = 20  
OPTION_VALUE_SHOT_ANGLE = 6000
OPTION_VALUE_SHOT_NUMDEF = 20000 

//Clearrance
OPTION_VALUE_CLEARRANCE = 3000 

//Cross
OPTION_VALUE_CROSS = 700 

//Dribble
OPTION_VALUE_DRIBBLE_FORWARD = 500
OPTION_VALUE_DRIBBLE_SAFE = 650
OPTION_VALUE_DRIBBLE = 300000
OPTION_VALUE_DRIBBLE_MOMENTUM = 500
OPTION_VALUE_DRIBBLE_BREAKAWAY = 250000

//Real Dribble
//OPTION_VALUE_REALDRIBBLE = 800
//OPTION_VALUE_MAX_REALDRIBBLE_TIME = 1000
//OPTION_VALUE_REALDRIBBLE_AWARE_DIST = 300

//Sprint Dribble
OPTION_VALUE_SPRINTDRIBBLE = 150000
OPTION_VALUE_SPRINTDRIBBLE_NETDIST = 50
OPTION_VALUE_SPRINTDRIBBLE_SAFE = 5000

//General Pass
OPTION_VALUE_45DEGREE_CROSS = 800000
OPTION_VALUE_LONGPASS_KILLTIME = 500000
OPTION_VALUE_LOB_PASS_FORWARD = 190
OPTION_VALUE_LOB_RECV_SAFE = 145
OPTION_VALUE_MIN_LOB_PASS_DIST = 1200
OPTION_VALUE_MAX_LOB_PASS_DIST = 4000

//Conservative Pass
OPTION_VALUE_PASS_FORWARD = 250
OPTION_VALUE_PASS_SAFE = 600
OPTION_VALUE_RECV_SAFE = 100
OPTION_VALUE_MIN_PASS_DIST = 400
OPTION_VALUE_MAX_PASS_DIST = 2500
OPTION_VALUE_MAX_GROUND_PASS_DIST = 2000

//Throughpass
OPTION_VALUE_THROUGH_PASS_FORWARD = 150
OPTION_VALUE_THROUGH_PASS_SAFE = 200
OPTION_VALUE_MIN_THROUGH_PASS_DIST = 300
OPTION_VALUE_MAX_THROUGH_PASS_DIST = 2000

//Wall pass
OPTION_VALUE_WALLPASS = 360000


///////////////////////////////////////////
//
//	setplay settings
//
///////////////////////////////////////////

//number of AIFEET the ball can be kicked up field for a free kick
//will be scaled down by player attribute (POWER+SHOOTING)
MAX_FREEKICK_DIST = 160


//==============================================================================
// goalie tuning
//==============================================================================
ALLOW_BACKPASS_PICKUP = 1

GOALIE_RUN_FORWARD_WITH_BALL = 40
GOALIE_RUN_SIDEWAYS_WITH_BALL = 35
GOALIE_TIME_BEFORE_CPU_KICK = 200
GOALIE_TIME_BEFORE_USER_KICK = 200
GOALIE_DROP_KICK_SPEED = 50
GOALIE_DROP_KICK_YV = 25
GOALIE_PUNT_YV = 23
GOALIE_PUNT_SPEED = 42
GOALIE_ROLL_SPEED = 20
GOALIE_THROW_SPEED = 50
GOALIE_THROW_YV = 20
GOALIE_OVERHEAD_THROW_YV = 10
GOALIE_THROW_THRESHOLD = 80


// goalie positoning factors

// chance of scoring
RANDOM_SCORE_CHANCE = 10

NO_SECOND_YELLOW = 0
NO_IMMEDIATE_RED_CARDS = 0

// Comment this out and it will use the FE option.
//OFFSIDES_OFF = 1



DRIBBLE_KNOCK_OPPONENT_DISTANCE = 18

// Bumpy ground!

BUMPY_GROUND_MAX_VEL_UP			= 1.4 
BUMPY_GROUND_MIN_XZ_VEL	        = 1.52 

// How the ball rolls
BALL_ROTATION_MAX_KICK_STRENGTH						= 2000000.0
BALL_ROTATION_BACKSPIN_ADDITION_ON_MAX_KICK			= 0.03	   
BALL_ROTATION_BACKSPIN_ADDITION_ON_MIN_KICK			= 0.01      
BALL_ROTATION_BLENDRATE_WITH_GROUND					= 0.50      

AUTO_BACKSPIN_LIMITER = 0.8
AUTO_BACKSPIN_MULTIPLIER = 0.8

// Save determination
SAVE_SPEED_WEIGHT = 120
SAVE_TRAVEL_WEIGHT = 10
SAVE_SKILL_WEIGHT = 60
SAVE_DEFENCE_WEIGHT = 220
SAVE_ATTACK_WEIGHT = 220
SAVE_RANDOM_WEIGHT = 5

SAVE_THRESHOLD = 2250
ATTACK_THRESHOLD = 20
DEFENCE_THRESHOLD = 20

COLLISION_DETECTION = 1
AUTO_TACKLING = 1

// if these badness overrides are commented out, then it uses BAD_SKILLS_THRESHOLD
HOME_GOALIE_BAD = 0
AWAY_GOALIE_BAD = 0

//******************
//more goalie tuning
//******************
// See gdata.h for description of parameters. To update these, use goalie
// tuning dialog in testbed, then "Save to clipboard" and paste here.
NEARTHIRD_LINEDISTANCE = 8
MIDDLETHIRD_LINEDISTANCE = 21
FARTHIRD_LINEDISTANCE = 41
DEADZONE_X = 54
DEADZONE_Z = 30

CHARGE_MAX_BOX_WIDTH = 80
CHARGE_MAX_BOX_LENGTH = 75
CHARGE_ALWAYS_BOX_WIDTH = 60
CHARGE_ALWAYS_BOX_LENGTH = 50
CHARGE_STRIP_BOX_WIDTH = 121
CHARGE_STRIP_BOX_LENGTH = 54
CHARGE_ALWAYS_RANGE = 15
CHARGE_STRIP_RANGE = 5
CHARGE_STRIP_ANGLE = 30
CHARGE_STOP_RANGE = 2
CHARGE_TACKLE_ANGLE = 130
CHARGE_COMMIT_TIME = 10
CHARGE_BACKAT_RANGE = 10
CHARGE_FACEAT_RANGE = 15
CHARGE_FULLSPEED_RANGE = 75

USER_GOALIE_AUTO_CHARGE = 1
USER_GOALIE_CHARGE_SCALE = 75

MAX_BALL_PREDICT_TIME = 20
BALL_PREDICT_RANGE = 40
TARGET_ANTICIPATION = 80
ANCHOR_ANTICIPATION = 100
ANCHOR_WIDTH = 12
ANCHOR_MAX_BALL_ANGLE = 18
THREAT_WIDTH = 24
PRIMARY_THREAT_WIDTH = 4
SECONDARY_THREAT_WIDTH = 4


//**************************
//user control tuning values
//**************************
	//feet
MIN_USER_PASS_DIST = 8
MAX_USER_PASS_DIST = 100
	
MIN_USER_PASS_TIME = 30
MAX_USER_PASS_TIME = 60

MIN_USER_LOB_DIST = 40
MAX_USER_LOB_DIST = 140
MIN_USER_LOB_HEIGHT = 10
MAX_USER_LOB_HEIGHT = 20

MIN_USER_LOBTHROUGH_DIST = 20
MAX_USER_LOBTHROUGH_DIST = 100
MIN_USER_LOBTHROUGH_HEIGHT = 8
MAX_USER_LOBTHROUGH_HEIGHT = 20

MIN_USER_CROSS_DIST = 40
MAX_USER_CROSS_DIST = 140
MIN_USER_CROSS_HEIGHT = 10
MAX_USER_CROSS_HEIGHT = 20

MIN_USER_CLEARANCE_DIST = 40
MAX_USER_CLEARANCE_DIST = 120
MIN_USER_CLEARANCE_HEIGHT = 8
MAX_USER_CLEARANCE_HEIGHT = 30

//**************************
//Tackling tuning values
//**************************
FOUL_STUMBLE_CHANCE = 30
CLEAN_STUMBLE_CHANCE = 70

POOR_TACKLING_FOUL_BEHIND_CHANCE=100
POOR_TACKLING_FOUL_SIDE_CHANCE=70
AVERAGE_TACKLING_FOUL_BEHIND_CHANCE=80
AVERAGE_TACKLING_FOUL_SIDE_CHANCE=60
GOOD_TACKLING_FOUL_BEHIND_CHANCE=60
GOOD_TACKLING_FOUL_SIDE_CHANCE=40
VERY_GOOD_TACKLING_FOUL_BEHIND_CHANCE=40
VERY_GOOD_TACKLING_FOUL_SIDE_CHANCE=30

PTSTUMBLEDELAY_POOR = 16
PTSTUMBLEDELAY_AVG  = 12
PTSTUMBLEDELAY_GOOD = 6
PTSTUMBLEDELAY_EX   = 0

PTAVOIDDECEL = 0.05

PTAVOIDDELAY_POOR = 25
PTAVOIDDELAY_AVG  = 21
PTAVOIDDELAY_GOOD = 16
PTAVOIDDELAY_EX   = 10

//**************************
//Marking Tuning Values
//**************************
MARK_BALL_TARGETDIST_WEIGHT = 0.30
MARK_BALL_FORMDIST_WEIGHT = 0.25
MARK_BALL_ANGLE_WEIGHT = 0.45

MARK_PLAYER_TARGETDIST_WEIGHT_NEAR = 0.80
MARK_PLAYER_FORMDIST_WEIGHT_NEAR = 0.20
MARK_PLAYER_TARGETDIST_WEIGHT_FAR = 0.30
MARK_PLAYER_FORMDIST_WEIGHT_FAR= 0.70


//**************************
//Shot Tuning Values
//**************************
SHOT_POWERUP_RATE = 20

//**************************
//Cross Tuning Values
//**************************
CROSS_ANGLE_SCALE = 0.20

//***************************


//TEST_SAVE_ANIM = 59

KEEPER_INTERCEPTION_AMNESTY_FRAMES = 0

//in yards
FORCE_TEAMMATE_ADVANTAGE = 18


//***************************
// Bad Ref calls
//***************************
[BAD_REF_DECISIONS]

REF_PERFECT_GAME_CHANCE = 0
MAX_CALLS = 8

MISS_OFFSIDE = 15
OFFSIDE = 25
GOAL = 10
MISS_GOAL = 10
THROWIN = 10
CORNER = 15
GOALKICK = 15
MISS_BALL_OUT = 20
BALL_OUT = 20
MISS_THROWIN = 10
MISS_CORNER = 15
MISS_GOALKICK = 15
WRONG_FOUL = 15
WRONG_TEAM_CORNER = 10
WRONG_TEAM_THROWIN = 5
WRONG_TEAM_GOALKICK = 10
PENALTY_KICK = 25
MISS_PENALTY_KICK = 25


//***************************
[]

MAX_BALL_VELOCITY_XZ = 40.000000
MAX_BALL_VELOCITY_Y = 25.000000

BALL_AIR_RESISTANCE_XZ = 0.007037
BALL_AIR_RESISTANCE_Y = 0.005812
BALL_GRAVITY = -0.30

BALL_BOUNCE_COEFF_XZ = 0.90
BALL_ROLLING_COEFF = 0.984441
BALL_BOUNCE_DAMPING = 2.0
BALL_L_BOUNCE_DAMPING = 0.8
BALL_NL_BOUNCE_DAMPING_SPEED = 5.0

RAIN_BALL_BOUNCE_COEFF_XZ = 0.95
RAIN_BALL_ROLLING_COEFF = 0.9795
RAIN_BALL_BOUNCE_DAMPING = 3.2
RAIN_BALL_L_BOUNCE_DAMPING = 0.6
RAIN_BALL_NL_BOUNCE_DAMPING_SPEED = 12.0

PASS_SPEED = 1.5
ANGLE_BIAS = 200000.0
SMART_PASS_NO_PENALTY_ANGLE = 10.0

SPIN_CREATION_MULTIPLIER = 3.0
SPIN_EFFECT_MULTIPLIER = 3.0

EVALBALL_BESTCASEDELAY = 0
EVALBALL_WORSTCASEDELAY = 40
EVALBALL_BESTCASESPEED = 9.0
EVALBALL_WORSTCASESPEED = 7.0
EVALBALL_MAX_PLAYABLE_HEIGHT = 10


POWERUP_RAT