Commit Graph

36 Commits

Author SHA1 Message Date
auria
ff9f8503da Forgotten file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12355 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-14 00:48:19 +00:00
auria
bb37472177 Many little tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11777 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-27 19:43:24 +00:00
hikerstk
490bdec3b9 Removed triple parachutes, tweaked probabilities for last kart a bit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11763 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-26 00:23:08 +00:00
hikerstk
76407f4b63 Disable anchor as an item (since this is replaced by the rubber ball).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10082 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-02 00:02:02 +00:00
hikerstk
3f96f3529b Rubber ball will now detect tunneling and try to avoid it
(if a ball tunnels four times in a row it is removed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10041 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 20:48:36 +00:00
hikerstk
b9e4325560 Added 'early targeting': the rubber ball will align its relative position
to the center of the track according to the relative distance of its target
(more precisely: it will move the interpolation control points). This
results in the ball being better align when it switches to aim-directly-at-
target mode, meaning that the target-distance can be reduced, hopefully
reducing the frequency with which tunneling happens.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10016 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 20:14:03 +00:00
hikerstk
aa74b59dcb Added separate fast-ping distance, so that the rubber ball
can start boucing lower/faster earlier, increasing the chances
to hit the target when target-distance is set to a small value.
Target-distance was set to 25 to decrease the chances of the
ball going through e.g. tunnel walls.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10004 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 21:18:45 +00:00
hikerstk
830e88d1e5 Added maximum height difference to detect if a target is
close enough for a rubber ball. This avoids a problem is 
the target is actually close on a different part of the
track.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9996 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 12:17:56 +00:00
hikerstk
3c8d1e896a 1) Added a delete timer: if the ball has no target (e.g. fired by
player currently at front) it will disappear after a given
   time (atm 5 seconds).
2) If the ball overtakes the target it will now be deleted.
3) Fixed ball sometimes turning in the wrong direcftion when
   trying to hit a kart.
4) Some refactoring to make functions smaller.
5) Removed left-over debug code. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9945 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 21:27:21 +00:00
hikerstk
1246744be3 Restricted the angle the rubber ball can turn once
it is close to its target. This gives karts a chance
to escape a rubber ball by driving irretically.
Also added some debug output to indicate when the 
ball lost sight of its target (i.e. the ball was
going directly to a target, but then the target 
was suddenly too far away), so perhaps the ball
should be removed then?
ATM the ball will continue, trying again to hit
the leader in the next round.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9921 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-30 03:56:25 +00:00
hikerstk
0577fa8c91 Reduced interpolation distance. While this makes ball prone to
more abrupt change of direction, it (hopefully) avoids most
problems of the ball going off track (e.g. sand track when
firing up the ramp --> ball goes to the left of the tunnel,
bouncing on the pyramid; skyline and star track have 
problems as well when a ball goes off track).
Added documentation of the rubber ball specific xml attributes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9836 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 21:51:17 +00:00
hikerstk
1ab1a100b6 Improved rubber ball behaviour in tunnel somewhat
(start height was impacted by average height, which in
turn depends on minimum and maximum height).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 04:22:24 +00:00
auria
296d854062 Remove the ability to get multiple rubber-balls, IMO one is nasty enough
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9720 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 18:12:35 +00:00
hikerstk
cb34118707 Made the minimum distance between interpolation control
points and the distance to target at which the rubber
ball starts aiming directly at the target configurable.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9550 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-18 03:31:52 +00:00
auria
4112aee9a3 Add sound to swatter
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9542 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-17 01:18:24 +00:00
auria
342c284892 Remove packs of 3 swatters, make it a little less common
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9500 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-14 23:40:54 +00:00
hikerstk
916dbb9bc1 Karts 'accidentally' hit by a bouncing ball while it is
going to catch if with the leader will now be flattened
(parameters for that are defined in powerup.xml). No
explosion effect is shown anymore for the first kart,
it will only be tossed around.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9369 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-26 06:58:11 +00:00
hikerstk
f2226e1335 Added option to scale powerup models (Arthur, feel free to
tweak the size of the ball - *grin* try "2 5 2" for some fun).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9324 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-22 11:47:37 +00:00
hikerstk
1928a0b409 Fixed speed of rubber balls to be really the value specified
in the powerup.xml file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9316 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-21 22:14:55 +00:00
hikerstk
4477862356 Improved bouncing of ball when it is still far away from the kart.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-21 06:58:28 +00:00
hikerstk
afb3728995 Added first test version of 'rubber ball' (which might replace
the anchor). Known bugs: atm it does not yet bounce (it follows
just the drivelines and might be partly in the track); the first
kart can't avoid it (long term breaking might allow you to avoid it);
it might hit another kart first and explode.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9302 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-20 00:39:32 +00:00
auria
3a8df49a9e More minor tweaks to powerup probabilities
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9129 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-01 23:17:04 +00:00
auria
30fd8372f0 Remove parachutes from 3 strikes battle
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9128 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-01 23:07:12 +00:00
hikerstk
da8ec214ce Added a very first version of a swatter (or inflatable hammer).
Details are in the wiki (http://supertuxkart.sourceforge.net/Items).
Note that the model is _obviously_ a placeholder, and I  used
the icon for the bomb (which isn't used in game atm) for the
swatter. I hope someone can provide a better model and icon.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9011 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-22 12:27:48 +00:00
auria
4812ba21dd Tweak weapons in 3 stirkes mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8044 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-24 18:33:53 +00:00
auria
a50e0fe660 Tweak items distribution a little
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7766 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-27 23:16:56 +00:00
hikerstk
d93c33dcdb 1) Multiplied all weights by 10 (to have more granularity adjusting weights for
global powerups).
2) Weights for global powerups (parachute and switch) are divided by num_karts-4
   if more than 4 karts are being used (see bug 3107638).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-26 05:44:38 +00:00
hikerstk
8e519d1959 Disabled multiple bubble gums to make it less easy to
drop three bubble gums, collect a switch and in the next
lap collect three nitros.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6718 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-24 22:57:57 +00:00
hikerstk
b470f5d3e0 Disabled multiple parachutes, when running with many karts the race
becomes a parachute-slowdown-race only.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6507 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-12 00:15:32 +00:00
hikerstk
033688e595 Updated documentation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6241 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 00:57:03 +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
b03dec0eb3 Made it less likely to get a switch (1/3 less likely then previously).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5589 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-29 01:45:14 +00:00
hikerstk
56ebedd175 Fixed item handling in battle modes by adding an additional 'position class'
to data/powerup.xml for battle modes. This makes it unnecessary that modes
can select which powerup are available, therefore this code was cleaned up.
Also added some minor code simplifications.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-04 13:54:49 +00:00
hikerstk
e9413ccf46 The probability of which item is collected now depends on the race
position. The actual distribution is defined in powerup.xml (and
probably needs some adjustments).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5320 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-30 01:11:22 +00:00
mbjornstk
95a8bd469c Replace parachute with new version (TODO: animation and new icon).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5097 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-29 01:48:44 +00:00
hikerstk
93e15df841 1) Replaced all .projectile files with one powerup.xml file,
replaced items.item with items.xml. Cleaned up item_manager
   and removed support for different item styles (since it
   didn't work anyway)
2) If a swapper item is used while items are swapped, they will
   now un-swap.
3) Moved all models and textures from data/items to data/models.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4648 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-07 02:05:21 +00:00