Commit Graph

1266 Commits

Author SHA1 Message Date
hikerstk
6c7bfd3050 Improved handling of situations in which a good and bad item
are close, which results in the AI getting the bad item when
trying to collect the good one. Some refactoring of code by
adding a hitLine function to Item.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11541 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 23:17:09 +00:00
auria
06821dc880 Give nolok a special swatter
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 01:54:28 +00:00
auria
bfc1a5e14c Give nolok some special powers in the last fight against him. Changing the swatter and bubble gum to different models might help make it more dramatic of course
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11538 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 00:39:14 +00:00
auria
20382c0f15 Allow a challenge to specify which AI kart to use, and use it for the final race against Nolok challenge
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11536 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-03 20:18:48 +00:00
magned
0aa7494469 Enables both new skidding behaviour and new skidding AI. Disables old sharp turn behaviour and PRESENT_AI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11533 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-01 22:45:07 +00:00
auria
e211de77b6 Lock gnu and nolok until the last challenge is solved
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11525 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-29 23:53:44 +00:00
hikerstk
a1c51d61a5 Added first and early version of an item-collecting AI (within
SkiddingAI).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11517 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-23 22:00:36 +00:00
auria
fe65f46035 Work on end cutscene. Code to start particles based on a condition
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11516 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-23 01:52:55 +00:00
hikerstk
ed9b701e53 Added maximum amount of nitro a kart can collect to stk_config.xml
(instead of "const int MAX_NITRO = 16"  in moveable.hpp).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11512 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-19 23:41:36 +00:00
hikerstk
13175b8566 1) Changed the minimum turn radius when skidding to be 20% instead
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
2012-08-05 23:27:39 +00:00
hikerstk
203ae69ce6 Added support in MaxSpeed for an additional engine force
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
2012-07-29 23:46:16 +00:00
auria
4b9d02cc25 Allow combining lightmaps and normal maps
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 21:30:47 +00:00
stephenjust
f766785302 Add rating to add-on info dialog.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11412 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-20 22:48:37 +00:00
wardje
36ce4c63f4 Add challenge file for black mansion
* Requirement set to 0 until there's a structure in the order
   we want challenges to be completed.
 * Times based on a few rounds without cheating[1]

[1]: You can cheat in Black Mansion by just going straight ahead
     in the hill after the start.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-06 19:29:48 +00:00
wardje
4a29403df6 Correct persistent typo
Someone had, at some point long ago, written warp instead of wrap.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-06 03:53:38 +00:00
wardje
af0d1528ba Fix incorrect attributes in track info dialog
* "min" changed to "min_value"
 * "max" changed to "max_value"


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11366 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-05 21:29:44 +00:00
wardje
2ec6335bdd Add Ward Muylaert to credits (programming/bug fixes).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-29 00:07:10 +00:00
wardje
7dc4e585d1 Make easy challenge doable on subsea and snowpeak
Greatly upping time for both. Probably still too fast for actual
beginners.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-20 23:32:17 +00:00
wardje
72d516d530 Greatly increase time on jungle challenge easy
Time was set to 2:55, (my) near perfect runs go at about 3:20-3:25
with the AI over 30s behind at ~4:00. Setting it to 3:50 (for now).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11280 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-07 14:31:31 +00:00
magned
f23993eea3 Changed turn-radius at lower speeds. Now it's possible to do Minigolf curves after slowing down
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11234 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-14 01:58:41 +00:00
auria
c82ce876de File i forgot to commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11228 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-12 17:20:22 +00:00
hikerstk
7c4cebcbd5 Disabled new skidding code again.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11220 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-09 23:47:24 +00:00
hikerstk
fb249f43bf Allowed to enable smooth-normals per track, and added this flag as an
example to lighthouse track. Note atm both needs to be set: smooth-normals
in the track.xml file and in stk_config. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11217 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-09 22:57:51 +00:00
auria
78a6da45f2 Rename 'end race' button so that it's clearer what it does
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11206 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-08 01:00:32 +00:00
auria
6a50f23ea0 Nice little hack to make the GPs appear in the right order in the GUI
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11193 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 01:14:26 +00:00
auria
157081edf2 Add fog support to water shader
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11184 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-04 01:33:13 +00:00
auria
55193a0e48 Make sure the water splash particles decay
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11171 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-28 21:07:51 +00:00
auria
b400320745 Make anti-aliasing level configurable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11148 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 15:44:17 +00:00
wardje
a4994e7512 Fix #580 by re-exporting in GIMP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11142 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-23 16:37:54 +00:00
auria
0a3e95ec12 Lower the XR591 challenge, atm it makes the track always locked
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11133 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 00:36:42 +00:00
auria
f65a5c3d83 While we're on the subject of Arabic, fix arabic accents
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11130 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 23:21:16 +00:00
auria
1a5593a9ba No in-game visible change, just re-export the font PNGs from gimp but setting the background color to black, so that you can see something in picasa's image viewer, who respects the background color set in the PNG :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11129 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 23:18:43 +00:00
auria
e7acddc195 Improve arabic font, to a reasonable state
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11126 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 22:48:46 +00:00
auria
22e0f0f9c0 Offer STK in Arabic. Note that for some reason this crashes the options menu
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11121 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 02:14:55 +00:00
wardje
9eed9409e5 Add functionality to end a race early (#486).
* Only adding for standard races (normal race + time trial), didn't make as
  much sense elsewhere.
* Places still active players at the back of the final result and gives
  them penalty time.
* Add button to race pause dialog, temporarily using options_ui.png.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11093 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-07 21:58:11 +00:00
auria
5af4be2217 Reduce points required for minigolf challenge so that it is at least possible to play it by unlocking everything ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11052 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-30 01:20:59 +00:00
auria
ffe317f2f3 Added forgotten part of a previous commit, oops
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11048 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-29 01:57:02 +00:00
wardje
cb890d4f32 Add reverse track functionality for GPs.
Fixes part of #503 (and #599 completely).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11019 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 22:15:20 +00:00
wardje
a40462594c GP start order option to user's config + add option to have players always last
In light of #28, the GP start order option is probably more at home in a user's
configuration. While at it, also add an option to keep the player always last.
This is more of a challenge for the player than just reverse mode since your
direct opponents _will_ be at the forefront while you have to play catch up.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11017 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 16:39:32 +00:00
hikerstk
acba9e523a Updated documentation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11006 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-21 23:06:45 +00:00
hikerstk
330c269f42 Added a little jump (duration set in config file) when
starting to skid.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10965 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-13 22:34:50 +00:00
hikerstk
288f43d481 Made the bonus speed given for a skidding boost configurable (the values
were for bonuses were changed, but are still not considered to be tweaked).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-13 20:51:50 +00:00
hikerstk
73176a8d28 Made skidding more controllable: now once the kart
started to skid, you can influence the turn radius
to a certain degree (stk_config.xml, reduce-turn-min
and -max).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-08 23:30:26 +00:00
hikerstk
65c73e9186 Refactored skidding to use a new base class SkiddingProperties.
This patch reduces the dependencies between KartProperties and
skidding core (and especially reduces compile time when skidding
core changes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 11:28:04 +00:00
auria
d1240cb1bf Revert accidental commit to data/stk_config.xml
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10922 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 00:27:52 +00:00
auria
3c2b69fb5c Apply a bunch of CMake patches by riebl, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10921 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 00:18:51 +00:00
hikerstk
1f3cf63680 1) Removed unused angular velocity setting for skidding.
2) Stop misusing m_skidding to force skid sfx when a bubble
   gum was hit or the kart is breaking.
3) Somehwat simplified skidding code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10910 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-29 21:27:39 +00:00
hikerstk
3fc43d4d14 Refactored replay by splitting it into one base class, and dedicated
classes for recording and for replaying. Added compression (by use of
interpolation) settings to stk_config - atm only using a certain
frequency (delta-t setting in stk_config) is used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10904 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-28 22:33:49 +00:00
auria
547ab07078 Add qubodup's new skid sound, thanks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10887 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-24 00:19:07 +00:00
auria
c953803f13 Start refactor to turn around a bad design decision regarding challenges. Oops. Number of required trophies moved from scene.xml to .challenge file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10885 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-23 01:36:24 +00:00