of 40%. This allows longer skids in wider turns (e.g. hacienda).
2) Improved skidding decision when sharp turning is required:
on sharp turn when already skidding, wait till an 'even sharper'
turn is required, which (usually) means that then the AI is
nicely aligned with the new track direction when releasing skid,
which makes nice use of the bonus and the additional rotation.
If not skidding when sharp turn is required, don't even start
one.
3) Prevent AI from skidding 'against' track direction (i.e. track
is turning left, but AI tries to skid right). This happened
before (e.g. when slightly adjusting steering) and caused
rapid left/right turns (and skid/stop/skid/stop sequences).
4) Allow some steering in wrong direction when skidding (to allow
for some incorrect estimations, and to avoid skidding on/off
sequences when only minor corrections are necessary).
5) If adjusted (i.e. taking the skid steering reduction into account)
steer fraction when skidding is too high, stop skidding.
6) Re-enabled braking when AI is not aligned with track direction.
7) Improve debug output so that only a state change (skidding to
non-skidding and vice versa) triggers output (instead of output
every frame).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11469 178a84e3-b1eb-0310-8ba1-8eac791a3b58
assume that node n is followed by n1) - though that code
is actually not used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11451 178a84e3-b1eb-0310-8ba1-8eac791a3b58
to work while a speed increase is active. This simplifies
existing code (for slipstream, nitro). Additional engine
force is also added for skidding, which should make
skidding more worthwhile (since usually adjusting the
heading when stop skidding will use up the actual bonus
speed).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11450 178a84e3-b1eb-0310-8ba1-8eac791a3b58
determineTrackDirection, handleCurve, doSkid (the latter
was already implement, but didn't do anything).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11445 178a84e3-b1eb-0310-8ba1-8eac791a3b58
press skid while still turning in the opposite direction
(due to the delay with which the turning reacts). Therefore
skidding is only triggered when steering has nearly reached
full left or right (this code was by accident removed in
a previous commit).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11444 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Sorry for the big recompile because of it, had some of these
after some experimenting and it was clouding my svn diff.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
quite stupid, but can sometimes compete with the old AI (unless
the new AI is behaving stupid ... as I've said). This is still
disabled by default (and if you want to test it, make sure
to adjust stk_config.xml as well).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11438 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Was needed because of some outdated attributes and the like.
This is the "630.7z" patch from the bug report, simple copying
over of the files. Jungle was left out because it has changed
in the repo since the patch got sent in.
Tracks:
* Battle Island
* Shiny Suburbs
* Bovine Barnyard
* Fort Magma
* Hacienda
* Old Mine
* Minigolf Mischief
* Oliver's Math Class
* Scotland
* Northern Resort
* Zen Garden
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11436 178a84e3-b1eb-0310-8ba1-8eac791a3b58
better seen (esp. in camera debug mode when the drivelines are
higher than the track).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(since this indicates an invalid position, and it would appear
like saving the position doesn't work).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11433 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Computerfreak97 had a go at this about a year ago, but the
implementation was flawed.
* Randomization was still being reset later on (`reset()`)
* Only physics were affected, not graphics
Implement it by randomizing at the start as well as adjusting
`KartModel::update()` so that it not resets the random values.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11429 178a84e3-b1eb-0310-8ba1-8eac791a3b58