At the start of a race, give 1 nitro, and give nitro when used (instead of taking away, effectivly infinite nitro)
This commit is contained in:
parent
6e6c5de622
commit
06d30d1b77
@ -377,7 +377,7 @@ void Kart::reset()
|
||||
m_invulnerable_ticks = 0;
|
||||
m_min_nitro_ticks = 0;
|
||||
m_energy_to_min_ratio = 0;
|
||||
m_collected_energy = 0;
|
||||
m_collected_energy = 1;
|
||||
m_bounce_back_ticks = 0;
|
||||
m_brake_ticks = 0;
|
||||
m_ticks_last_crash = 0;
|
||||
|
@ -1150,19 +1150,20 @@ float KartProperties::getNitroDuration() const
|
||||
// ----------------------------------------------------------------------------
|
||||
float KartProperties::getNitroEngineForce() const
|
||||
{
|
||||
return m_cached_characteristic->getNitroEngineForce();
|
||||
return m_cached_characteristic->getNitroEngineForce() * 1.5f;
|
||||
} // getNitroEngineForce
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
float KartProperties::getNitroEngineMult() const
|
||||
{
|
||||
return m_cached_characteristic->getNitroEngineMult();
|
||||
return m_cached_characteristic->getNitroEngineMult() * 1.5f;
|
||||
} // getNitroEngineMult
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
float KartProperties::getNitroConsumption() const
|
||||
{
|
||||
return m_cached_characteristic->getNitroConsumption();
|
||||
// Reverse nitro consumption (makes you gain nitro instead of losing it)
|
||||
return 0.0f - m_cached_characteristic->getNitroConsumption();
|
||||
} // getNitroConsumption
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -1180,7 +1181,9 @@ float KartProperties::getNitroBigContainer() const
|
||||
// ----------------------------------------------------------------------------
|
||||
float KartProperties::getNitroMaxSpeedIncrease() const
|
||||
{
|
||||
return m_cached_characteristic->getNitroMaxSpeedIncrease();
|
||||
// This is the biggest float that can be represented.
|
||||
return 340282346638528859811704183484516925440.0f;
|
||||
//return m_cached_characteristic->getNitroMaxSpeedIncrease();
|
||||
} // getNitroMaxSpeedIncrease
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user