31e3806fd0
(esp. code that was previously duplicated in the battle mode and standard race). There is now time for an end animation, even if the player should finish last (in which case the previous end camera would not be shown). This mostly in preparation for end animations. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4750 178a84e3-b1eb-0310-8ba1-8eac791a3b58
268 lines
9.5 KiB
XML
268 lines
9.5 KiB
XML
|
|
<?xml version="1.0"?>
|
|
|
|
<config>
|
|
|
|
<!-- STK PARAMETERS
|
|
|
|
min-kart-version and max-kart-version are the the minimum and maximum .kart
|
|
files supported. Older/newer files are ignored.
|
|
|
|
min-track-version and max-track-version are the minimum and maximum .track
|
|
files supported, older/newer files are ignored.
|
|
|
|
max-karts is maximum number of karts.
|
|
scores are the number of points given when the race ends.
|
|
grid-order is the grand prix order, 1 = most points 1st, 0 = least points 1st.
|
|
title-music is umm... the title music.
|
|
|
|
mainmenu-background and menu-background must have the same length, containing
|
|
all the possible main menu and background images.
|
|
|
|
max-history is the maximum number of history frames.
|
|
|
|
max-skidmarks is the max. number o skidmarks per kart.
|
|
skid-fadeout-time is the time till the skid marks fade out
|
|
|
|
near-ground is the distance above ground when the upright constraint will be
|
|
disabled to allow more violent explosions.
|
|
|
|
delay-finish-time is the delay till the race results are displayed
|
|
music-credit-time is the time for which the music credits are displayed
|
|
final-camera-time is the time for the final camera to reach it's destination
|
|
|
|
-->
|
|
|
|
<stk-parameters
|
|
min-kart-version="1"
|
|
max-kart-version="1"
|
|
min-track-version="1"
|
|
max-track-version="1"
|
|
max-karts="8"
|
|
scores="10 8 6 5 4 3 2 1"
|
|
grid-order="1"
|
|
title-music="main_theme.music"
|
|
mainmenu-background="st_title_screen.rgb st_title_screen2.rgb"
|
|
menu-background="menu_background.rgb menu_background2.rgb"
|
|
max-history="10000"
|
|
max-skidmarks="100"
|
|
skid-fadeout-time="60"
|
|
near-ground="2"
|
|
delay-finish-time="4"
|
|
music-credit-time="10"
|
|
final-camera-time="1.5"
|
|
/>
|
|
|
|
<!-- ATTACHMENT PARAMETERS
|
|
|
|
anvil-weight is the additional weight an anvil adds to a kart
|
|
anvil-speed-factor is the additional slowdown caused by the anvil
|
|
parachute-friction is the friction increase when a parachute is attached
|
|
parachute-time is the time an attached parachute is active
|
|
parachute-time-other is the time a parachute attached from other kart works
|
|
parachute-done-fraction is the fraction of speed when lost will detach
|
|
parachute
|
|
|
|
bomb-time is the time till a bomb explodes
|
|
bomb-time-increase is the time added to timer when bomb is passed on
|
|
leader-intervals is the time till a kart is removed in follow leader mode
|
|
anvil-time is the time an anvil is active
|
|
zipper-time is the time a zipper is active
|
|
zipper-force is the additional zipper force
|
|
zipper-speed-gain is the one time additional speed
|
|
item-switch-time How long a switch is being effective.
|
|
switch-items for each item list the index of the item it is switched with.
|
|
Order: item, banana, big-nitro, small-nitro, bubble-bum
|
|
-->
|
|
|
|
<attachment-parameters
|
|
anvil-weight="150.0"
|
|
anvil-speed-factor="0.2"
|
|
parachute-friction="2.0"
|
|
parachute-time="4.0"
|
|
parachute-time-other="8.0"
|
|
parachute-done-fraction="0.7"
|
|
bomb-time="30.0"
|
|
bomb-time-increase="-5.0"
|
|
leader-intervals="30 20 10"
|
|
anvil-time="2.0"
|
|
zipper-time="3.5"
|
|
zipper-force="250.0"
|
|
zipper-speed-gain="4.5"
|
|
zipper-max-speed-fraction="2.0"
|
|
item-switch-time="5"
|
|
switch-items="1 0 4 4 2"
|
|
/>
|
|
|
|
<!-- GENERAL KART DEFAULTS
|
|
|
|
time-full-steer = is the time when a player's input goes from neutral
|
|
steering to extreme left or right.
|
|
|
|
time-full-steer-ai is the time for the AI to go from neutral steering to
|
|
extreme left (or right). This can be used to reduce 'shaking' of AI karts
|
|
caused by changing steering direction too often. It also helps with making it
|
|
easier to push the AI karts (otherwise micro-corrections make this nearly
|
|
impossible). A value of 1/maxFPS / 2 will guarantee that the wheel can go from
|
|
-1 to +1 steering in one frame, basically disabling this mechanism.
|
|
|
|
gravity-center-shift is the shift of the chassis with regards to the center of
|
|
mass. E.g. with the the value commented out below the chassis will be 30 cm
|
|
higher than the center of mass - or the center of mass will be 30 cm lower
|
|
than the middle of the chassis. So this effectively lowers the center of
|
|
mass, making the kart more stable and less likely to topple over. Default (if
|
|
nothing is defined here) is that the center of the mass is at the very bottom
|
|
of the chassis!
|
|
|
|
nitro-power-boost is the increase in engine power, i.e. 1=plus 100%
|
|
|
|
skid-increase: multiplicative increase of skidding factor in each frame.
|
|
skid-decrease: multiplicative decrease of skidding factor in each frame.
|
|
skid-max: maximum skidding factor = maximum increase of steering angle.
|
|
time-till-max-skid: Time till maximum skidding is reached.
|
|
skid-visual: Additional graphical rotation of kart.
|
|
slipstream slipstream-length: How far behind a kart slipstream works
|
|
slipstream-collect-time: How many seconds of sstream give maximum benefit
|
|
slipstream-use-time: How long the benefit will last.
|
|
slipstream-add-power: Additional power due to sstreaming. 1 = +100%
|
|
slipstream-min-speed: Minimum speed necessary for slipstream to take effect.
|
|
|
|
min-speed-radius and max-speed-radius define the smallest turn radius at
|
|
lowest speed (4.64 m at speed 0) and at high speed (13.5 m at speed 12 m/s).
|
|
Maximum steering angles for speeds in between will be interpolated. This
|
|
allows for tighter turns at lower speeds. The actual steering angle is
|
|
dependent on the wheel base of the kart:
|
|
radius = wheel_base/sin(steering_angle)
|
|
By specifying the radius the steering behaviour can be defined independent
|
|
of the kart size.
|
|
|
|
|
|
engine-power and max-speed have 3 values, one for hard, medium and low
|
|
difficulties; Max speed right now would be 116 101 90 km/h.
|
|
|
|
mass: kart's mass
|
|
suspension-stiffness: kart's suspension stiffness
|
|
|
|
max-speed-reverse-ratio is the percentage of max speed for reverse gear
|
|
|
|
jump-velocity is the z-axis velocity set when a jump is initiated. This
|
|
will cause the kart to start rising, till it is pulled back by gravity.
|
|
A higher value means higher Z velocity, meaning the kart will rise faster
|
|
and higher, and will be in the air longer
|
|
|
|
collision-side-impulse is an additional (artificial) impulse that pushes
|
|
the slower kart out of the way of the faster karts (i.e. sideways to the
|
|
faster kart) when a collision happens. This is for now disables, since
|
|
it needs tuning and additionally has the problem that the amount of push
|
|
a hit kart receives depends on the orientation - if a kart is pushed
|
|
in the direction it is driving, it will be more (no friction from tires),
|
|
while when pushed to the side, hardly anything happens.
|
|
|
|
z-rescue-offset is the z-axis offset when kart is being put back on track
|
|
after being rescued, it's a fraction of kart height
|
|
|
|
gear-switch-ratio defines at what ratio of the maximum speed what gear is
|
|
selected, e.g. 0.25 means that if the speed is bigger or equal to 0.25 x
|
|
maxSpeed then use gear 1, 0.5 means if the speed is bigger or equal to 0.5 x
|
|
maxSpeed then gear 2.
|
|
|
|
gear-power-increase contains the increase in max power (to simulate
|
|
different gears), e.g. 2.5 as first entry means: 2.5*maxPower in gear 1
|
|
| first | second | third | .
|
|
|
|
wheel-front-right, wheel-front-left, wheel-rear-right and wheel-rear-left
|
|
give the position of the physics raycast wheels relative to the center of
|
|
gravity. Default is to use the corners of the chassis to attach the wheels
|
|
to.
|
|
|
|
rubber-band-max-length is the maximum length of rubber band
|
|
|
|
rubber-band-force is the force a plunger/rubber band applies to the kart(s).
|
|
|
|
rubber-band-duration is the duration a rubber band acts.
|
|
-->
|
|
|
|
<general-kart-defaults
|
|
wheel-base="1.2"
|
|
heightCOG="0.2"
|
|
time-full-steer="0.2"
|
|
time-full-steer-ai="0.1"
|
|
corn-f ="4"
|
|
corn-r="4"
|
|
gravity-center-shift="0 0 0.3"
|
|
nitro-power-boost="3"
|
|
|
|
skid-increase="1.05"
|
|
skid-decrease="0.95"
|
|
skid-max="2.5"
|
|
time-till-max-skid="0.4"
|
|
skid-visual="0.16"
|
|
slipstream-length="10"
|
|
slipstream-collect-time="2"
|
|
slipstream-use-time="5"
|
|
slipstream-add-power="3"
|
|
slipstream-min-speed="10"
|
|
|
|
brake-factor="11.0"
|
|
min-speed-radius="0 3"
|
|
max-speed-radius="10 15.0"
|
|
engine-power="400 400 300"
|
|
max-speed="32.22 28 25"
|
|
mass="225"
|
|
suspension-stiffness="48.0"
|
|
wheel-damping-relaxation="20"
|
|
wheel-damping-compression="4.4"
|
|
friction-slip="10000000"
|
|
roll-influence="0.03"
|
|
wheel-radius="0.25"
|
|
wheel-width="0.3"
|
|
chassis-linear-damping="0.2"
|
|
chassis-angular-damping="30.2"
|
|
max-speed-reverse-ratio="0.3"
|
|
suspension-rest="0.2"
|
|
suspension-travel-cm="19"
|
|
jump-velocity="3.0"
|
|
collision-side-impulse="0"
|
|
z-rescue-offset="0.0"
|
|
wheel-front-right="0.38 0.6 0"
|
|
wheel-front-left="-0.38 0.6 0"
|
|
wheel-rear-right="0.38 -0.6 0"
|
|
wheel-rear-left="-0.38 -0.6 0"
|
|
gear-switch-ratio="0.25 0.7 1.0"
|
|
gear-power-increase="2.2 1.7 1.3"
|
|
upright-tolerance="0.2"
|
|
upright-max-force="30"
|
|
track-connection-accel="2"
|
|
rubber-band-max-length="50"
|
|
rubber-band-force="1500"
|
|
rubber-band-duration="1"
|
|
camera-max-accel="10"
|
|
camera-max-brake="10"
|
|
camera-distance="3.0"
|
|
/>
|
|
|
|
<!-- MISC DEFAULTS
|
|
|
|
shortcut-length is the length that when leaving the road and coming back on
|
|
it more than X 'meters"
|
|
later is considered to be a shortcut
|
|
|
|
offroad-tolerance widens the road % for shortcut detection.
|
|
|
|
enable-networking is a boolean value that enables / disables networking
|
|
explosion-impulse is the push from explosions when karts aren't hit directly
|
|
explosion-impulse-objects 500.0 is the impulse for physics objects (smaller
|
|
ones like the cone, will be pushed way too far
|
|
-->
|
|
|
|
<misc-defaults
|
|
shortcut-length="90"
|
|
offroad-tolerance="0.15"
|
|
enable-networking="f"
|
|
explosion-impulse="10000.0"
|
|
explosion-impulse-objects="500.0"
|
|
/>
|
|
|
|
</config>
|
|
|