222 Commits

Author SHA1 Message Date
hikerstk
9d5b51e797 Only apply terrain-specific slowdown when being on the ground.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6306 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-18 06:04:05 +00:00
mbjornstk
6790b694b5 Make zipper fade out linearly (experimental hardcoded values and even formula).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6304 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-18 05:23:09 +00:00
hikerstk
f517feeeba Renamed 'slowdown' for terrain specific max speed to slowdown-time.
Made slowdown in tuxtollway less abrupt.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6296 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-17 11:09:48 +00:00
hikerstk
b0ed33197b Improved/fixed terrain specific slowdown. Slowdowns are not specified in materials.xml
with two values: one specifying the percentage of max kart speed that can be reached
(e.g. 0.5 means a kart can only drive 50% of its maximum speed on this terrain),
the 'slowdown' value specifying how long it will take for a kart to be slowed down
to that value (e.g. a value of 3 for slowdown and 0.5 for max-speed means that
it will take 3 seconds of continuously driving on that terrain till the speed
is reduced to 50% of the karts maximum value).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6290 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-16 13:07:25 +00:00
auria
c7fec2a586 Fixed terrain sounds not being properly reset
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6287 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-14 14:15:10 +00:00
auria
86b5b82c71 Make AIs drive slower during the end animation with an ugly hack
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6242 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 00:59:06 +00:00
hikerstk
3c2f45a556 Changed slipstream handling: boost will now be given when getting out
of slipstream and enough 'slipstream credits' have been accumulated
(which is shown by a little bit of nitro). This should avoid the problem of
crashing into the kart ahead when getting nitro, and also make it less
likely that the AI creates trains.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6153 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-26 22:44:23 +00:00
hikerstk
351a69adfe Fixed upright constraint, which prevents karts from toppling over when
jumping (e.g. paper plane in math class).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-25 21:57:56 +00:00
hikerstk
0c5c9496cf Fixed bug 3074299 (slipstream in air on low level AI).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6143 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-25 13:48:41 +00:00
hikerstk
cbf089ce40 Disabled slipstreaming for low AI level.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6122 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-23 07:18:46 +00:00
hikerstk
ea94ac5c7c Karts that have finished the race will now still give slipstream advantage.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6111 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-22 02:17:00 +00:00
hikerstk
78346e3ddf Added support for multiple powerups to be collected with one item
box. Weights for these are set in powerup.xml. ATM a 'multi item'
gives three items (hardcoded, I'll change that to be configurable
later).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6079 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 14:48:05 +00:00
hikerstk
a7672b5720 Made the amount of nitro configurable per kart - in case that we
want to change this later when giving each kart different abilities
(now that I think about it: a similar effect can be accomplished 
with the nitro consumption rate).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6074 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 01:21:17 +00:00
hikerstk
0e23c01c81 Fixed steering animation to be independent of the actual frame
rate defined in the animation, and also to handle if only
steering partly into a direction.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6031 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-16 23:31:13 +00:00
hikerstk
7f3f598193 Fixed crashes in grand_prix lose, win, feature animation etc.
KartModel instances come now in two different types:
master instances which are part of KartProperties and
should never call attachModel (or have wheels attached),
and copies of the master instances (which are used by karts
and other classes when the kart is actually displayed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 13:30:31 +00:00
hikerstk
2d4f2ad32f Each kart instance has now its own copy of kart_model instead of a shared
version of it. This avoids animation issues (in some circumstances e.g.
a win/lose animation could be shown for a kart still driving), and an
assert crash (bug 3058787) is also avoided.
Note that the animation issues are usually not easy to see since the
random AI kart selection makes usually sure that the player kart is 
not used more than once, so this issue can only be seen in AI karts.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5935 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 00:35:15 +00:00
hikerstk
1d4471f7c4 Moved handling of kart elimination into emergency animation (since
it's closely related, i.e. removing and adding bullet bodies), and
fixed bug 3059830).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5908 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 23:08:27 +00:00
hikerstk
8b29d20866 Fixed missing stars animation, which is now moved completely into
EmergencyAnimation (see bug 3059588).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5901 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 11:07:41 +00:00
hikerstk
442168e845 More bug fixes for FTL mode, and started some code simplification.
By now FTL should basically work (i.e. not crash and list karts 
in the right order at the end), though the reported times are
still not correct.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 01:07:44 +00:00
hikerstk
059a599e47 Bugfix: eliminated kart where not added back properly when restarting a race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5875 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-03 02:12:57 +00:00
hikerstk
b1205821b2 Changed implementation of slipstream to make it less likely that AI
will form 'trains': you have to slipstream for a certain amount of 
time, then (indicated by blue nitro sparks appearing) you will get
a zipper boost. This avoids the previous issue that by getting a
bonus even after a single frame of slipstream that trains are build
(since an overtaken kart will become faster, it's easy for the 
overtaken kart to keep on getting slipstream bonus. Now the overtaking
kart gets a zipper and is therefore far enough ahead of the overtaken
kart as to not giving it a slipstream bonus).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5874 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 22:42:35 +00:00
hikerstk
0e84cdf091 Modified behaviour of startup boost: instead of giving it to the first
two karts, it is now given for all karts starting withint a certain
amount of time. These times and boost value are specified in
stk-config.xml.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5855 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 00:19:06 +00:00
hikerstk
48e7b4542b Fixed auto-rescue when a kart is about to topple over.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5835 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-31 10:30:26 +00:00
hikerstk
483479d556 When an explosion is triggered by driving on a banana with a bomb attached,
the banana will now be disabled long enough to drive away once the explosion
animation is finished (previously karts would get punished twice, since after
the explosion they would be hit by the banana again).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5830 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-30 22:38:50 +00:00
hikerstk
626f83087a Added new base class for race gui (in prepration for improved
result gui).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 23:03:54 +00:00
hikerstk
e9837ca8fc Added some startup speed boost, mainly for testing. The first two
karts to press 'accelerate' after 'go' will receive a boost. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 23:53:27 +00:00
hikerstk
396db5ae2b Added intro sfx to be played before ready-set-go.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 23:10:47 +00:00
hikerstk
28f2b3742d 1) Fixed 'shaking' of kart, which happens esp. in end- and reverse camera
(reason was that camera used the previous kart position to adjust the camera
   settings, while the karts were shown at the new position. This becomes a 
   problem if bullet does more than one time step, since then the usually
   fixed offset is changes, which is visible).
2) Removed debug output.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5591 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-29 11:15:00 +00:00
hikerstk
c1c7daf2fa 1) Added support for new camera mode: end camera positions and types
can now be specified in the scene file. Currently supported are:
   - normal 'ahead of kart' camera (which is what we used so far)
   - fixed camera: camera is at a fixed position, always looking
     at the kart.
2) Removed camera.hpp dependency from kart.hpp.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5585 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-28 23:33:07 +00:00
hikerstk
0502408d60 Terrain-specific sfx will now not be cut off when the terrain is left, instead
the sfx will finish.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5556 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 23:10:25 +00:00
hikerstk
07ac6f5c76 Added separate camera mode for end camera, added experimental new end camera
(which atm has hardcoded values for lighthouse track only and is disabled).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5542 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-23 22:37:48 +00:00
hikerstk
d3020e44ce Fixed incorrect position of terrain-specific sfx (though
I still do not get positional sfx atm, but that might be
a different issue??).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5533 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-22 06:17:29 +00:00
hikerstk
c5d56b90a2 Bugfix: terrain specific sfx was still played when the race was over.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5529 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-20 23:42:58 +00:00
hikerstk
f1438d6354 Added support for terrain specific sfx. As an example
this has been used for the wooden terrain in snowtuxpeak.
Note that atm changing the pitch is used to make the sfx
depend on speed, but since I am not too happy with this
I might add support for a customisable pause between
looping the sfx.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5527 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-20 23:01:23 +00:00
mbjornstk
041c528a9f Change engine sound, while on air, to a less squeeky one (1.4 -> 0.9).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5515 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-13 18:31:55 +00:00
hikerstk
3c335d4d0a Applied Lilian Gimenez's patch which allows the nitro consumption to
vary from kart to kart. While this is atm not used, it will be useful
once we have different physics parameters for karts. Thanks for the
patch!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5497 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-11 01:19:15 +00:00
mbjornstk
5fc4473bd5 Disable AI cheat when skidding. All AI levels lose power now, like humans.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5484 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 23:43:04 +00:00
mbjornstk
91c40319b3 Adjust speed vector in all 3 axis, so going downhill (mostly Y motion)
counts as going fast and is reduced, not just X and Z.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-11 01:15:43 +00:00
hikerstk
1d5fe00af8 Cosmetic change only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5423 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-10 23:51:12 +00:00
hikerstk
d13f8c85f6 Added #define to enable slipstreams even if karts are not moving. This allows for
e.g. easier debugging of the slipstream looks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5385 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-06 05:25:58 +00:00
mbjornstk
a94eb33590 Disable real zipper from slipstream, but abuse the zipper timer to control
the effect duration. Global TODO: zipper / nitro / slipstream need each
a set of timer / engine power multiplier / speed limit, as well as
a fall off timer so they do not end sharply (maybe 1 sec transition
from raised speed limit to normal limit?).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-05 18:59:46 +00:00
hikerstk
7cdefb4101 Enabled slip streaming, slip-stream graphics now scales according to the distance
between the karts, successful slipstreaming (for atm 2 seconds, see stk_config.xml)
will give a zipper boost.
This is pretty much work in progress, mostly meant to test playability, and allow
more tuning of graphics.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5376 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-04 23:36:01 +00:00
auria
889a4e4562 Give better diagnostics when trying to use kart rank and it's not set
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5327 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-30 20:21:07 +00:00
mbjornstk
e6e38adf59 Ear candy, now engine noise fakes 3 gears. The faster you go, the faster
it plays the engine noise, but with 3 ramps to make it sound like you changed
a gear and the engine RPM went down a bit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5319 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-29 23:17:59 +00:00
mbjornstk
8d4df87429 Make engine sound acute if no wheel load (flying).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5296 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-27 23:11:40 +00:00
hikerstk
10ea91e758 Made bubble gum disappear (after a certain number of hits, set in
stk_config.xml).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-27 22:43:44 +00:00
hikerstk
5696fc0c73 Moved explosion and rescue handling to EmergencyAnimation object
(previously called ExplosionAnimation).
Updated vs project file for latest changes as well.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-22 13:21:35 +00:00
auria
297f0cceb4 Renamed SoundManager into MusicManager, since this makes it much clearer what it does (it was just confusing to have SoundManager and SFXManager)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5228 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-21 17:24:02 +00:00
hikerstk
c6127dc0f6 Removed debug printf statement, removed global variables (which I swear was only done
to avoid a complete recompile, since the laptop's battery were nearly empty).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5224 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-21 00:16:43 +00:00
hikerstk
f1fd38cbf3 Added (for testing) new explosion handling, which uses a fixed random animation
to toss karts around after an explosion.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5223 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-20 23:50:38 +00:00