3 protected bool m_EnableClick;
4 protected bool m_RotatingCharacter;
5 protected int m_RotatingCharacterMouseX;
6 protected int m_RotatingCharacterMouseY;
7 protected float m_RotatingCharacterRot;
8 protected float m_Radius;
9 protected float m_Radius_original;
10 protected float m_DiffX;
11 protected float m_DeltaX;
12 protected float m_DeltaZ;
13 protected float m_Angle;
14 protected float m_Angle_offset = 0;
15 protected float m_NewX = 0;
16 protected float m_NewZ = 0;
17 protected float m_BlurValue;
19 protected ref OptionsMenu m_optmenu;
24 SetClickEnable(
true );
26 m_DeltaX =
Math.AbsFloat(m_CharacterPos[0] - m_Camera.GetPosition()[0]);
27 m_DeltaZ =
Math.AbsFloat(m_CharacterPos[2] - m_Camera.GetPosition()[2]);
36 protected override void SetInitPostprocesses()
38 super.SetInitPostprocesses();
40 PPERequester_MenuEffects requester;
41 Class.CastTo(requester,PPERequesterBank.GetRequester(PPERequester_MenuEffects));
43 requester.SetVignetteIntensity(0.5);
47 void SetClickEnable(
bool enable )
49 m_EnableClick = enable;
59 void CharacterRotationStart()
61 m_RotatingCharacter =
true;
62 GetMousePos(m_RotatingCharacterMouseX, m_RotatingCharacterMouseY);
66 m_RotatingCharacterRot = m_CharacterRot[0];
71 void CharacterRotationStop()
73 if (m_RotatingCharacter)
75 m_RotatingCharacter =
false;
80 bool IsRotatingCharacter()
82 return m_RotatingCharacter;
86 void CharacterRotate()
88 if (m_Character && m_Character.GetCharacterObj())
95 m_DiffX = m_RotatingCharacterMouseX - actual_mouse_x;
97 coef = ( m_RotatingCharacterRot + (m_DiffX * 0.5) ) / 360;
98 coef = coef -
Math.Floor(coef);
99 m_CharacterRot[0] = coef * 360;
101 m_Character.GetCharacterObj().SetOrientation(m_CharacterRot);
108 if (m_Character && m_RotatingCharacter)