192 Commits

Author SHA1 Message Date
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
hikerstk
c5bd075dd1 Removed unnecessary include, improved rescue animations, though it
is still not correct in all cases (that's work in progress).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5202 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-15 23:56:32 +00:00
hikerstk
232d9a2540 1) Simplified rescue code somewhat (one-time setup of variables is now
done in forceRescue, not in an if-statement in update anymore).
2) Made the parameters for rescue configurable in stk_config.xml
   (in preparation for other similar animations). E.g. the rescue time
   can now be set per kart.
3) Reset animations on restart (so that e.g. a win/lose animation
   is not shown during startup in case of a restart anymore).
4) Removed unused variable m_current_gear_ratio
5) Added documentation.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5193 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-14 00:14:20 +00:00
hikerstk
91feb49998 1) Added animation support for attachments, atm hardcoded for bomb only.
2) Instead of creating a new scene node every time something is attached
   to a kart, the same node will now be re-used (and is set as invisible
   otherwise).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5173 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-11 22:48:01 +00:00
hikerstk
54fe97f890 Added support for lose animations (and better support for other
animations).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5132 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-08 12:45:21 +00:00
mbjornstk
8576e4ef32 Raise max speed allowed when zipper is on effect.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-28 22:26:46 +00:00
mbjornstk
85bf15763d Attenuate roll and pitch, trying to reduce the "boat shake" look in jumps.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5093 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-28 18:04:59 +00:00
mbjornstk
daa2c467b3 Attenuate "yawing" speed when leaving the ground (jumps). Suggested by hiker,
with some tweaks by me (make it 25% per update instead of abrupt zeroing).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5076 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-27 01:07:44 +00:00
mbjornstk
92ca36cac5 Tweak cases for constraint, so long jumps are possible (via ramp+zipper).
One is commented out for now as it needs more testing of the distance setting.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5075 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-25 23:55:44 +00:00
hikerstk
bd89c51fca Fixed bug 2972321 - crash in battle mode since in battle mode there is no quad graph.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5051 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-23 23:42:46 +00:00
hikerstk
794e532515 Bugfix: wrong axis resulted in incorrect automatic rescues.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5033 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-19 12:46:30 +00:00
hikerstk
1ddb5e2b7d Fixed incorrect start positions on some tracks (caused by minor
forwards/backwards shaking of the kart at start and the fact
that 'isInRest()' tested the wrong axis).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5021 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-18 11:42:49 +00:00
hikerstk
124e719d11 Applied Chris Morris patch 2968849: make the torque after an
explosion dependent on distance to avoid karts shaking that
are way too far to be affected at all.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5012 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-17 02:46:12 +00:00
mbjornstk
bbb58408e4 Swap YZ when applying explosion forces.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4987 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-12 02:55:31 +00:00
hikerstk
d50bd9dbe6 Merged the switch_coordinate_system branch with trunk. This means
that now all coordinate systems are y up, z forwards - including
the file format. For now only one track has been ported, the
rest will follow shortly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4985 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-12 02:16:11 +00:00
hikerstk
8dfcd28e44 1) Fixed AIs.
2) Changed steering (m_steer positive is now steering left, negative right).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4981 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-11 22:36:53 +00:00
hikerstk
706984c1c8 Re-enabled upright constraint.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4968 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-10 10:17:32 +00:00
auria
9fb9278f31 Improved Follow-the-leader game ending. An assert failure might occur if one kart dies in front of the leader
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4964 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-08 20:31:37 +00:00
mbjornstk
220f00ed10 Abstract engine power to a single call. Now karts are 4WD 40-60 ratio.
Real karts are not 4WD, but behaviour seems better while jumping/turning.
RWD is easy to put back, or FWD, or any other ratios, no more per wheel
calls except if really needed (traction control, differentials, etc).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4955 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-07 22:54:53 +00:00
hikerstk
7b38753638 Removed debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4932 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 02:34:37 +00:00
hikerstk
1df83662f6 1) Fixed cakes.
2) Changed several animated meshes/scene nodes to use more
   general mesh/scene nodes.
3) General many more fixes for changed coordinate systems.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-04 12:35:58 +00:00
hikerstk
2813e3d75c More fixes related to camera handling.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-02 05:14:56 +00:00
auria
9b7a0fdc31 Some fixes with end-of-race messages;don't display 'you have finished the race' when you're killed in 3-strikes mode; don't display 'you have won' when using the 'race again' button at the end of three strikes; improved FTL end
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 19:09:05 +00:00
hikerstk
bd33113f20 Fixed incorrect heading and pitch in vec3, fixed rescue (again),
fixed checklines, improved camera (still not fully working), fixed
incorrect 'wrong heading' messages.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 13:20:22 +00:00
auria
08c0d291fb 3 strikes now has some ending instead of crashing (more to come)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 01:48:32 +00:00
auria
2945e55d89 Fixed camera doing ugly moves when restarting race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4836 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 00:16:06 +00:00
hikerstk
55578dbadd Fixed rescue.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4826 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 12:13:34 +00:00
hikerstk
fbeaa0524f More fixes to swap the bullet axis.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 05:23:00 +00:00
hikerstk
092a59a7d2 Very first changes. Doesn't really work yet and will most likely crash - not recommended to use :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-23 13:27:01 +00:00
hikerstk
f41150eae7 Replaced OpenGL bullet debug view with irrlicht bullet debug view.
Debug view can now be switch on and off during a race (ctl-F11),
but currenlty does not display as much information as the 
original debug view (more to be implemented here).
Removed glut dependency.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4794 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-22 12:02:13 +00:00
mbjornstk
03a438b0cb Make torque be away from zero always, so shake is a sure thing.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-20 23:32:59 +00:00