Added option to let the camera follow the skid angle (there is still
some discrepancy due to smoothing of camera movement). For now enabled in stk_config.xml. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11589 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
4a8058947e
commit
6eca109725
@ -109,9 +109,13 @@
|
||||
work anymore - so for now don't enable this. -->
|
||||
<networking enable="false"/>
|
||||
|
||||
<!-- Disable steering when stop skidding during the time it takes to
|
||||
adjust the physical body with the graphics. -->
|
||||
<steer disable-while-unskid="true"/>
|
||||
<!-- disable-while-unskid: Disable steering when stop skidding during
|
||||
the time it takes to adjust the physical body with the graphics.
|
||||
camera-follow-skid: If true the camera will stay behind the kart,
|
||||
potentially making it easier to see where the kart is going to
|
||||
after a skid. -->
|
||||
<steer disable-while-unskid="false"
|
||||
camera-follow-skid="true" />
|
||||
|
||||
<!-- Default values for all karts
|
||||
============================ -->
|
||||
|
@ -178,6 +178,7 @@ void STKConfig::init_defaults()
|
||||
m_same_powerup_mode = POWERUP_MODE_ONLY_IF_SAME;
|
||||
m_ai_acceleration = 1.0f;
|
||||
m_disable_steer_while_unskid = false;
|
||||
m_camera_follow_skid = false;
|
||||
|
||||
m_score_increase.clear();
|
||||
m_leader_intervals.clear();
|
||||
@ -256,6 +257,7 @@ void STKConfig::getAllData(const XMLNode * root)
|
||||
if (const XMLNode *steer_node= root->getNode("steer"))
|
||||
{
|
||||
steer_node->get("disable-while-unskid", &m_disable_steer_while_unskid);
|
||||
steer_node->get("camera-follow-skid", &m_camera_follow_skid );
|
||||
}
|
||||
|
||||
if (const XMLNode *music_node = root->getNode("music"))
|
||||
|
@ -109,6 +109,10 @@ public:
|
||||
* crashing). */
|
||||
bool m_disable_steer_while_unskid;
|
||||
|
||||
/** If true the camera will stay behind the kart, potentially making it
|
||||
* easier to see where the kart is going to after the skid. */
|
||||
bool m_camera_follow_skid;
|
||||
|
||||
float m_ai_acceleration; /**<Between 0 and 1, default being 1, can be
|
||||
used to give a handicap to AIs */
|
||||
|
||||
|
@ -79,7 +79,7 @@ void SkidMarks::reset()
|
||||
void SkidMarks::update(float dt, bool force_skid_marks,
|
||||
video::SColor* custom_color)
|
||||
{
|
||||
//if the kart is gnu, then dont skid because he floats!
|
||||
//if the kart is gnu, then don't skid because he floats!
|
||||
if(m_kart.isWheeless())
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user