Commit Graph

1725 Commits

Author SHA1 Message Date
davemk
96e2c28799 Set contact point and max suspension when 1 wheel off ground
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3908 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-23 14:38:46 +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
auria
bb0b353a0c Updated Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-22 00:13:24 +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
hikerstk
6318008c87 Restructured modes to be easier to inerhit from:
- cleanly split into constructor and init()
  phase
- added new isRaceFinished() function
Some minor code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3900 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-21 13:05:52 +00:00
hikerstk
ef175e94d4 1) Added alpha version of profile-mode (which replaces if-statements
in world).
2) Moved camera management into race gui, so that the number of split screens
   used can be adjusted (and not only indirect via number of player) - this
   allows e.g. debug modes where you can see 4 AI karts at the same time,
   for profile mode, ...
3) Code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3899 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-21 00:32:24 +00:00
rforder
bbfb30d4c5 Implemented voice event when attachment occurs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3898 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-20 21:22:34 +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
hikerstk
5aee938257 Bugfix: kart icons were not made permanent, resuling in the last kart
icon (wilber atm) to be deleted when a track was deleted, and in a 2nd
race the kart icon could not be displayed anymore.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3894 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-20 12:30:34 +00:00
hikerstk
4c31a5548e Fixed VS compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3893 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-20 04:29:50 +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
rforder
6c0f94190b Created addSingleSfx() to the sfx_manager. Extends ability of sfx_manager to load custom sounds during run-time. Will be used for loading character voices. Replaced SFXType with int in several places and added bounds checking.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3891 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 18:34:49 +00:00
rforder
b5e25d1298 Fixes key-up propagation bug in menu system
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3890 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 17:48:02 +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
779003befe Make z-offset after rescue a configurable parameter (z-rescue-offset)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3888 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 14:07:15 +00:00
davemk
329124a3ba oops. Include btkart.hpp to world.cpp so it compiles again.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3887 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 13:48:28 +00:00
davemk
7315b74865 initially project karts onto track from slightly higher
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3886 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 13:45:44 +00:00
davemk
361174536a project karts with rest suspension in wheel direction
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3885 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 13:43:17 +00:00
hikerstk
63e16e3e8a Removed scene.?pp (which didn't do much anyway except for
handling the cameras, which can as easily be handled by
player karts instead).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3883 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 04:03:25 +00:00
davemk
271a157c6c use kart projection for rescue and initial simulation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3882 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-18 11:05:40 +00:00
davemk
9b45fdc547 more cosmetic changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3881 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-18 10:59:21 +00:00
hikerstk
91e1f0d1ba Added some AI debugging support: for AI hard the
point it is aiming at is displayed when compiled
with AI_DEBUG.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3880 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-18 10:37:05 +00:00
davemk
a5dc04c5e7 cosmetic changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3879 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-18 10:33:21 +00:00
hikerstk
184ba6269e Bugfix: the circles for the karts on the minimap were not shown
when the game was started using the menu (instead of -N command
line option).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3878 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-18 09:41:53 +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
hikerstk
91613632ff Removed VS compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3876 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 09:58:39 +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
ce4d1b8000 Fixed VS compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3871 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 00:19:55 +00:00
auria
91c04d564f Improved music credit text displayed at the beginning of a race so it's not confused with track author
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3870 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 22:52:41 +00:00
auria
a2e93a9b2c Don't show music desc when music is off
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3869 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 20:55:06 +00:00
auria
b7c8b77952 Improved input handling with modal dialogs & text boxes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3868 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 19:36:52 +00:00
auria
600ac7ebf5 Fixed backspace in new player dialog dismissing the dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3867 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 19:25:15 +00:00
rforder
5b62ac9a59 Fixed ActivePlayer::getKart to actually return the correct kart.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-14 20:16:34 +00:00
rforder
47cfe64301 More cleanup. Replaced StateManager::addActivePlayer(PlayerProfile *) with StateManager::createActivePlayer(PlayerProfile *, InputDevice *) . This will ensure that in the future no active players will accidentally be added without an associated device and also removes some redundant code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-14 17:36:47 +00:00
rforder
8b3b8e3d28 Fix for no keyboard support when using --no-start-screen switch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-14 17:05:52 +00:00
hikerstk
405ee12ca5 Fixed various memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3857 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 23:26:38 +00:00
rforder
7a84273ec5 Cleaning up kart selection. Assigns karts correctly in multiplayer. included some null pointer and bounds checks that were causing some
crashes, etc.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 22:53:24 +00:00
rforder
3119dec5c2 temporary work around for multiplayer kart selection
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3855 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 21:58:55 +00:00
rforder
808aa8bfea More cleanup in the kart selection gui & input code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3854 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 18:39:18 +00:00
rforder
7db3295936 Moved various function calls involved in the initialization of the kart selection screen from different places in the code into the "init"
section of the kart selection call back.  This will prevent some problems that were occuring when returning to the kart select screen 
from the track select screen (and it just makes more sense to find them there).  Renamed playerPressedRescue and firePressedOnNewDevice 
to playerQuit and playerJoin respectively, to more accurately describe the behavior of the functions.  Removed the now superfluous 
setPlayer0Device function.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3853 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 17:38:01 +00:00
hikerstk
0fa6343023 Fixed VS compilation error and warnings (no hypotf).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3852 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 12:29:45 +00:00
davemk
ab5a57daff remove excess side_impulse friction torque on karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3851 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 12:24:19 +00:00
davemk
c27a807e64 item intersection uses y_offset, hat initialised properly and some redundant code removed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 12:12:22 +00:00