tweaked bowling ball speed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2631 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
987bb11761
commit
02f5ae09ef
@ -4,7 +4,7 @@
|
||||
(name "Bowling")
|
||||
(model "bowling.ac")
|
||||
(icon "bowlingicon.rgb")
|
||||
(speed 5.0)
|
||||
(speed 2.0)
|
||||
(min-height 0.2) ; height above terrain below which a spark is
|
||||
; started to be pulled up
|
||||
(max-height 1.0) ; height above terrain at which a spark is
|
||||
|
@ -40,10 +40,12 @@ Bowling::Bowling(Kart *kart) : Flyable(kart, POWERUP_BOWLING, 50.0f /* mass */)
|
||||
}
|
||||
else
|
||||
{
|
||||
int min_speed = m_speed*4;
|
||||
/* make it go faster when throwing forward
|
||||
so the player doesn't catch up with the ball
|
||||
and explode by touching it */
|
||||
m_speed = kart->getSpeed() + m_speed;
|
||||
if(m_speed < min_speed) m_speed = min_speed;
|
||||
}
|
||||
|
||||
createPhysics(y_offset, btVector3(0.0f, m_speed*2, 0.0f),
|
||||
|
Loading…
Reference in New Issue
Block a user