8 private float m_fSpeedBoost;
10 private float m_fSpeedBoostActive = 1;
13 protected void ManualCameraSpeedBoostDown(
float value, EActionTrigger trigger)
18 m_fSpeedBoostActive = m_fSpeedBoost * value;
22 protected void ManualCameraSpeedBoostUp(
float value, EActionTrigger trigger)
27 m_fSpeedBoostActive = 1;
33 if (!param.isManualInputEnabled)
36 if (m_fSpeedBoostActive != 1)
37 param.multiplier *= m_fSpeedBoostActive;
41 override bool EOnCameraInit()
43 GetInputManager().AddActionListener(
"ManualCameraSpeedBoost", EActionTrigger.DOWN, ManualCameraSpeedBoostDown);
44 GetInputManager().AddActionListener(
"ManualCameraSpeedBoost", EActionTrigger.UP, ManualCameraSpeedBoostUp);
49 override void EOnCameraExit()
51 GetInputManager().RemoveActionListener(
"ManualCameraSpeedBoost", EActionTrigger.DOWN, ManualCameraSpeedBoostDown);
52 GetInputManager().RemoveActionListener(
"ManualCameraSpeedBoost", EActionTrigger.UP, ManualCameraSpeedBoostUp);