// The Plumber's balance overrides for TF2.
//
// His movement is Super Mario Galaxy's (Petari decomp: MarioConst.cpp tables, MarioWalk / MarioJump formulas; see
// plumber/docs/galaxy_gameplay_reference.md), at his drawn size.  These multiply / replace Galaxy's values; 1 (or
// the Galaxy value noted) means "as in Galaxy".  Read by both the server and the clients at every map load
// (src/game/shared/tf/plumber/plumber_shared.cpp PlumberBalance), so keep the server's and the players' copies the
// same.  Missing keys keep Galaxy's value.
"PlumberBalance"
{
	// x his top run speed (Galaxy: 13 units a frame = 258 u/s at his size); his run / walk animations speed up with
	// it, and so does a jump's forward speed (12.5 x walk speed)
	"run_speed"				"1.1"

	// the rainbow star's dash: its top speed, x the (balanced) run (Galaxy: 2.0, mDashMultiply)
	"star_dash"				"1.25"

	// air control.  air_steer > 0 replaces Galaxy's push (doAirWalk: 13 x 3 / (frames up + 300) a frame, backward
	// input x3, opposing input brakes) with a steady steer: his air speed is turned toward the stick at this many
	// units/s^2, never pushed past his full run or the speed he already has.  0 = Galaxy's, x air_accel.
	"air_steer"				"500"
	"air_accel"				"1"
	// in the air his facing turns toward the camera's, this many degrees a second (Galaxy: never, 0)
	"air_turn_rate"			"100"

	// the crouch waddle, x Galaxy's squat walk (0.1 .. 0.2 of his run by how far the stick is pushed)
	"crouch_walk"			"0.9"

	// x the long jump's forward speed (Galaxy: 16.5, mSquatJumpFrontSpeed)
	"long_jump_forward"		"1.32"
	// x the long jump's upward speed, on top of jump_height (height goes with its square: 0.93 = 13% lower)
	"long_jump_height"		"0.93"

	// x every jump's upward speed (Galaxy's mJumpHeight table: single 22, double 26, triple 36, back / side flip
	// 32, long 15, wall 30; also the stomp bounce and the shell jump).  Height goes with its square.
	"jump_height"			"1.3"

	// momentum: landing, his run speed is at least this fraction of the speed he came down with, and can go past
	// his full run (Galaxy: kept only with the stick held and none after flips / long jumps, doLanding)...
	"momentum_keep"			"0.85"
	// ...and speed over his full run fades by this a frame (Galaxy: 0.8, mInertiaOverSpeed)
	"overspeed_inertia"		"0.978"

	// the spin in the air: the fraction of his horizontal speed it keeps (Galaxy: replaced by a hop of 5 x walk
	// speed, so it stops a run dead: 0)
	"spin_keep"				"0.75"

	// the spin's knockback on who it hits, units/s: away from him, and up (Galaxy: none, it only stuns; TF2's
	// pushback rules, so not on those immune to airblast)
	"spin_knockback"		"250"
	"spin_knockback_up"	"260"

	// bouncing off someone's head, x Galaxy's trample jump (19 a frame, +4 Mario / +6 Luigi with jump held; it
	// rises floaty at first either way)
	"stomp_bounce"			"1.25"

	// the ground-pound jump (Odyssey's, not Galaxy's): jump during a ground pound's landing recovery, or up to
	// ground_pound_jump_window frames (60ths of a second) after it, to flip straight up - x its upward speed (34 a
	// frame: between the backflip's 32 and the triple jump's 36; jump_height applies too)
	"ground_pound_jump"			"1"
	"ground_pound_jump_window"	"10"

	// fireballs thrown in the air hop him (Galaxy: the first 3 an air time, each 15 a frame): how many, the first's
	// hop x Galaxy's, and each after it x the one before (Galaxy: 3, 1, 1)
	"air_throw_hops"		"2"
	"air_throw_hop"			"0.6"
	"air_throw_hop_decay"	"0.5"
	// ...and how hard it changes his motion: the share of the way from his fall speed to that hop he gets, and how
	// much of his run he keeps (Galaxy: 1 and 0.5: a full stop and a hop)
	"air_throw_stall"		"0.35"
	"air_throw_keep"		"0.85"

	// the Red Star: a spin in flight speeds him up only while he's under this x his base flight speed (0: always,
	// with no limit).  Each spin adds ~0.46 of it: two or three spins from cruising reach it
	"fly_spin_cap"			"2.4"
	// flight's take-off speed, a frame (x tf_plumber_fly_speed; 13 = his base flight speed): off a triple jump's top,
	// and from a spin in the air (before: 22 and 20)
	"fly_launch_triple"	"30"
	"fly_launch_spin"		"20"

	// the shell surf's top speed, x his (balanced) run (SM64: 2.0)
	"surf_speed"			"1.6"
	// seconds his stance and the shell ease into place getting on (and off) it (Galaxy: a snap, 0)
	"surf_blend_time"	"0.15"
	// leaning into turns on it: how far into its lean animation a full lean goes (Galaxy: 1), and how fast he leans
	// (full leans a second)
	"surf_lean"			"0.55"
	"surf_lean_rate"	"7"
	// a kicked shell breaks after this many rebounds off walls (wedged in a tight spot); picking it up starts it
	// again (Galaxy: never, 0)
	"shell_bounce_limit"	"30"
	// enemy blasts knock a loose shell (thrown, sliding, waiting) off its course, away from where they went off:
	// blasts doing at least _threshold damage to it (after falloff: a rocket's is 90 .. 45 at its edge), pushing
	// _scale units/s a point of it (a kicked shell slides at ~480, a thrown one flies at ~600 + his speed).  (Not
	// Galaxy: 0)
	"shell_knockback_threshold"	"40"
	"shell_knockback_scale"		"8"

	// the wall slide: frames stuck before sliding (Galaxy: 15, mWallStickTime), its speed and holding into the wall
	// (Galaxy: 14 and 4 a frame, mWallDropSpeedNormal / Stop)
	"wall_stick_frames"		"5"
	"wall_slide_speed"		"24"
	"wall_slide_hold_speed"	"10"

	// fireballs: a hit's damage before falloff (not a Galaxy value: TF2's; it was 80, then 60)
	"fireball_damage"		"50"
	// x the throw speed (Galaxy: 30 a frame)
	"fireball_speed"		"1.6"
	// aimed: 1 = thrown on the arc that lands it on what the crosshair is on (its speed and gravity solved; past its
	// reach, its farthest throw); 0 = fireball_lob degrees above the aim (Galaxy: 45 above his front)
	"fireball_aim"			"0"
	"fireball_lob"			"4.8"
	// its bounces on the floor, as heights (units): never higher than _max (a hard landing doesn't fling it up), and
	// on a level floor never lower than _min (it keeps hopping instead of sliding along); slopes keep their own
	"fireball_bounce_min"	"12"
	"fireball_bounce_max"	"40"
	// how long it lives, seconds, and how far from him it can get, units (Galaxy: 5 s, 3000 = ~990 units)
	"fireball_life"			"8"
	"fireball_range"		"3000"
	// TF2-style damage falloff with the distance from him: full until _start, down to _min x at _end (crits ignore
	// it, as in TF2)
	"fireball_falloff_start"	"512"
	"fireball_falloff_end"		"1536"
	"fireball_falloff_min"		"0.5"
}
