15 const float FOV = 0.5236;
50 if (!m_Character)
return;
52 m_camera_orientation[1] = 1;
55 m_character_pos = m_Character.GetPosition();
59 m_Character.SetPosition(CalculatePos());
61 m_Character.SetOrientation(m_demoRot);
75 m_demoPos =
Vector(0, 0, 3.68823).Multiply4(m_cameraTrans);
76 m_demoPos[1] =
GetGame().SurfaceY(m_demoPos[0], m_demoPos[2]);
class LogTemplates Log(string message, LogTemplateID template_id=0)
Creates debug log (optional) from LogTemplate which are registred.
vector m_camera_orientation
PluginDeveloper m_ModuleDeveloper
override void OnDestroy()
override void OnUpdate(float delta_time)
proto float Normalize()
Normalizes vector. Returns length.
proto string ToString(bool beautify=true)
Vector to string.
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
static proto void DirectionAndUpMatrix(vector dir, vector up, out vector mat[4])
Creates rotation matrix from direction and up vector.
static proto float Atan2(float y, float x)
Returns angle in radians from tangent.
static const float RAD2DEG