147 Commits

Author SHA1 Message Date
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
hikerstk
8a74cfcbdd Bugfix: ftl crashed at end of race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4768 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-19 01:00:08 +00:00
hikerstk
888c783b83 Added support for end-race animation (though at this stage no kart model has them).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4762 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-18 21:23:26 +00:00
hikerstk
31e3806fd0 Refactor end of race handling so that more functions are done in a base class only
(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
2010-02-17 11:59:51 +00:00
auria
93cc5209f7 Converted sound effects file to XML. Along the way, refactored the audio code to be more flexible. before, when a sound changed, you needed to edit the config file of STK, edit the enum in the header, edit the loader in the .cpp... was annoying. Now you only need to edit the config file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 19:17:35 +00:00
hikerstk
da3de6d131 Big code refactoring: instead of having auto_kart, player_kart, the karts
now use a 'controller' object which is responsible for its steering, e.g.
a default_ai_controller, player_controller etc. This makes it easier to
switch a player kart to use a end-of-race computer controller to drive
the kart once the race is finished (though that's not implemented yet).
I expect some bugs with restarting race, and perhaps end of race
behaviour at this stage.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 00:54:28 +00:00
hikerstk
328373289a 1) Moved access to world object from race_manager to static functions in
world.
2) Removed more dujplicated/unnecessary functions from race_manager
   (getPlayerKart, getTrack).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-11 07:11:52 +00:00
hikerstk
c6bf95a64c Started to remove the various kart lists in various objects.
1) Removed getKart from RaceManager.
2) Renamged RaceManager::getNumKarts() to getNumberOfKarts.
   This function should only be called when the world
   does not exist (or is not yet initialised). 	In all
   other cases world::getNumKarts() should be called.
3) Improved several 'const' functions.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 11:40:33 +00:00
hikerstk
fde579bee8 Added comments, minor cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-07 21:57:10 +00:00
hikerstk
8be9c3397a Added first version of switch collectable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4635 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-04 22:53:24 +00:00
hikerstk
bcd1c63c21 Commented out debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4557 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-29 02:47:52 +00:00
hikerstk
aca45713c2 Position of slipstream graphical effect now depends on the 'target' kart, and
is using the height of the terrain instead of the karts' positions (since then
the suspension will make the slipstream jump). Pretty much work-in-progress,
and not activated atm.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4547 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-27 12:33:59 +00:00
hikerstk
a9ca58ff97 Renamed 'slowdownTime' in materials.xml file to 'slowdown' which more
accurately reflects what it is. Re-scaled the slowdown from '10' =
normal to '1' =normal and removed stk_config paramter for this scaling
factor.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4495 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-20 01:23:57 +00:00
hikerstk
81d074a694 Added some slip stream graphical effects (which are disabled by default) - pretty much work in progress.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-19 23:15:25 +00:00
hikerstk
797ac71d4b Kart shadows can now be loaded from the data/texture directory, too.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4461 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-13 14:43:17 +00:00
hikerstk
901f8ae7d4 Bugfix: the rotating stars were being shown when restarting a race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-12 23:00:10 +00:00
hikerstk
60840e5851 Made the AI a bit more competitive by not slowing the mid- and
high-level AI down when skidding.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4442 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-12 22:55:03 +00:00
mbjornstk
0b09240e5e Make rands in direct hits use floats correctly (they were ints at the wrong
time, so results were 0.0f always) and limit minimal distance in non direct
hits (maybe should use other value, just a matter of testing).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4417 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-08 02:35:01 +00:00
auria
5e5f91247b Added 'starts rotating around head' effect for hit karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4358 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-28 19:37:59 +00:00
hikerstk
81eeb36edb Added a minimum speed karts need in order to use slipstreaming. Removed debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4274 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-09 03:50:44 +00:00
auria
8fe5779087 Fixed minor warning; fixed Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4231 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-30 13:32:33 +00:00
hikerstk
a7e32c44d0 Bugfix: using nitro while the speed is negative could cause a crash, since
the negative speed caused a huge number of prticles to be created (negative
signed int --> unsigned int).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4228 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-29 11:53:03 +00:00
davemk
454463a919 add hit to kart rescued in 3-strikes-battle mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3927 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-27 02:04:37 +00:00
auria
452808838a Fixed various warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3916 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-26 15:18:14 +00:00
rforder
abbd8bd618 Improved documentation. Added code to stop() any currently playing character voice sample before playing a different sample for the same kart (prevents the kart from talking over itself, which sounds stupid).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3914 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-24 22:07:30 +00:00
davemk
fe6ed7b8f2 Fix 'auto-rescue' when not on rescue material
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3913 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-24 10:05:10 +00:00
rforder
0549c9c965 Added code for custom kart zipper sound
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3907 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-22 17:59:35 +00:00
rforder
e8dc5d4f4d Improved location of custom SFX calls to avoid multiple calls being made simultaneously
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3906 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-22 16:45:24 +00:00
rforder
537c90dd41 Properly updates default horn position
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3905 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-22 02:29:27 +00:00
rforder
5f071a7759 Recorded some voice samples for Tux for testing, continuing to include sfx calls for special in game events.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3901 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-21 17:28:10 +00:00
rforder
1c6cb1115b Writing in playCustomSFX calls where special kart sounds will be played (when shooting a weapon, when hitting another kart, etc.)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-20 20:21:21 +00:00
rforder
8da41850d3 Cleaning up new custom kart sfx code, better documentation, more readable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3896 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-20 20:04:24 +00:00
rforder
97bbad19e7 Implementing easily extensible kart sfx system. See sfx_manager.hpp for sparse notes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3895 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-20 18:29:59 +00:00
rforder
4f2f272d37 Implemented ability to add custom horn sounds to each kart in order to test code that will support character voices. Adding a horn-sound
tag to the .irrkart file that specifies the filename of the sound effect will ensure that sound effect will act as a horn for that kart 
(see tux for an example).  Added m_horn_sfx_file attribute to kart_properties class.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3892 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-20 03:44:32 +00:00
davemk
344f203d18 Add configurable parameter for zipper max speed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3889 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 14:28:07 +00:00
davemk
d5b56f92ee kart:reset zipper/look back key
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3877 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 13:39:38 +00:00
davemk
ae15f8a18e make sure removeKart not called twice (eliminate+rescue)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3875 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 07:50:21 +00:00
davemk
b35ec4b31f separate zipper velocity change from suspension/turning impulses
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3874 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 07:19:14 +00:00
davemk
284599bb38 cosmetic changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3873 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 06:55:44 +00:00
hikerstk
85324a7685 Fixed several memory leaks. Now the karts displayed in the kart
selection screen after a race was finished should be 'clean' (though
a 2nd race might still not work at this stage).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3872 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 00:24:47 +00:00
hikerstk
83e19ff817 Added a test version for slipsteam support. Note that besides
tweaking parameter (and potentially the implementation) there is
currently no graphical indication that you are slipstreaming,
or using a speed boost due to slipstreaming.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3847 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 04:58:37 +00:00
hikerstk
5b42fb9f12 Bugfix: avoid crash in case of a kart not being on top of a terrain.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3744 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-13 12:23:16 +00:00
hikerstk
1b6d075346 Lap counting is now done using checklines, old code for this removed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3706 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 00:44:55 +00:00
auria
2f6b05bace started converting user config to XML. Implementation is not 100% complete yet; saving works, not lodading. Implementation is not the prettiest but designed for minimal maintenance.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-21 01:10:43 +00:00
hikerstk
ee90eca26e 1) Created new config subdir and moved the last remaining files into
appropriate subdirs (only main.cpp and main_loop.?pp are now directly
   in the src directory).
2) Cleaned up all #include directives, so that all files now use
   the right subdirectories.
3) Some minor code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3606 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-11 10:00:43 +00:00
hikerstk
2eceacbd70 1) Added new water splash effect (though it needs a proper texture, and
better tweaked parameters).
2) Water and smoke special effects can now be triggered depending on
   terrain (default is off for everything). For testing purposes the
   lighthouse track has smoke for sand, and water splashed for sea
   (i.e. it is currently possible to drive on the water ... for
   testing purposes only :)  )


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-11 05:57:46 +00:00