DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DayZIntroSceneXbox()

void DayZIntroSceneXbox::DayZIntroSceneXbox ( )
inlineprotected

См. определение в файле DayZIntroSceneXbox.c строка 36

37 {
38 m_MenuData = g_Game.GetMenuData();
39
40 m_LastPlayedCharacterID = m_MenuData.GetLastPlayedCharacter();
41 m_CharacterPos = "0 0 0";
42 m_CharacterDir = "0 0 0";
43
44 //g_Game.m_PlayerName = "Survivor"; //default
45 if ( m_MenuData.GetCharactersCount() == 0 )
46 {
48 }
49
50 if ( m_LastPlayedCharacterID > -1 )
51 {
52 m_MenuData.GetCharacterName(m_LastPlayedCharacterID, g_Game.GetPlayerGameName());
53 }
54
55 // Camera Setup
56 vector camera_position;
57 camera_position[0] = 1323.0; // X
58 camera_position[1] = 1.0; // Y
59 camera_position[2] = 1590.37; // Z
60 float camera_rotation_h = 100;
61 float camera_rotation_v = -3;
62 float camera_fov = 0.85;
63 float camera_focus_distance = 0.0;
64 float camera_focus_streght = 0.0;
65
66 // Character
67 float character_distance = 2.25;
68
69 // Camera Setup
70 m_SceneCamera = CameraCreate(camera_position, camera_rotation_h, camera_rotation_v, camera_fov, camera_focus_distance, camera_focus_streght);
71 m_SceneCamera.SetActive(true);
72
73 PPEffects.Init(); //Deprecated, left in for legacy purposes only
74
75 // Character Setup
76 vector cam_dir = m_SceneCamera.GetDirection();
77 m_CharacterPos = camera_position + ( cam_dir * character_distance );
79 m_CharacterDir = (camera_position - m_CharacterPos);
80
81 float overcast = 0.42;
82 float rain = 0.0;
83 float fog = 0.0;
84
85 m_Weather = g_Game.GetWeather();
86 m_Weather.GetOvercast().SetLimits(overcast, overcast);
87 m_Weather.GetRain().SetLimits(rain, rain);
88 m_Weather.GetFog().SetLimits(fog, fog);
89
90 m_Weather.GetOvercast().Set(overcast, 0, 0);
91 m_Weather.GetRain().Set(rain, 0, 0);
92 m_Weather.GetFog().Set(fog, 0, 0);
93
95 m_Character.LoadCharacterData(m_CharacterPos, m_CharacterDir);
96
97 m_TimerParticle.Run(0.1, this, "SetupParticles", null, false);
98 //m_TimerDate.Run(2.0, this, "SetupDate", null, false);
99 m_TimerUpdate.Run(0.5, this, "SetupCharacter", null, true);
100
101 vector clut_pos = SnapToGround( m_CharacterPos + "-1 0 0" );
102 m_Clutter = GetGame().CreateObject( "ClutterCutter2x2", clut_pos, true );
103
104 // Xbox check update
106
107 g_Game.SetHudBrightness(g_Game.GetHUDBrightnessSetting());
108
110 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native float SurfaceY(float x, float z)
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
proto native Object CreateObject(string type, vector pos, bool create_local=false, bool init_ai=false, bool create_physics=true)
Creates object of certain type.
vector SnapToGround(vector pos)
Определения DayZIntroSceneXbox.c:357
Camera m_SceneCamera
Определения DayZIntroSceneXbox.c:15
ref Timer m_TimerParticle
Определения DayZIntroSceneXbox.c:29
Camera CameraCreate(vector cam_pos, float cam_rot_h, float cam_rot_v, float cam_fov, float cam_focus_dist, float cam_focus_strg)
Определения DayZIntroSceneXbox.c:252
MenuData m_MenuData
Определения DayZIntroSceneXbox.c:22
Weather m_Weather
Определения DayZIntroSceneXbox.c:16
void CheckXboxClientUpdateLoopStart()
Определения DayZIntroSceneXbox.c:220
ref IntroSceneCharacter m_Character
Определения DayZIntroSceneXbox.c:14
void SetInitPostprocesses()
Определения DayZIntroSceneXbox.c:152
vector m_CharacterPos
Определения DayZIntroSceneXbox.c:18
int m_LastPlayedCharacterID
Определения DayZIntroSceneXbox.c:4
vector m_CharacterDir
Определения DayZIntroSceneXbox.c:19
ref Timer m_TimerUpdate
Определения DayZIntroSceneXbox.c:28
Object m_Clutter
Определения DayZIntroSceneXbox.c:17
void IntroSceneCharacter()
Определения IntroSceneCharacter.c:19
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native CGame GetGame()
const int CALL_CATEGORY_GUI
Определения tools.c:9

Перекрестные ссылки ScriptCallQueue::Call(), CALL_CATEGORY_GUI, CameraCreate(), CheckXboxClientUpdateLoopStart(), CGame::CreateObject(), g_Game, CGame::GetCallQueue(), GetGame(), PPEffects::Init(), Managed::IntroSceneCharacter(), m_Character, m_CharacterDir, m_CharacterPos, m_Clutter, m_LastPlayedCharacterID, m_MenuData, m_SceneCamera, m_TimerParticle, m_TimerUpdate, m_Weather, SetInitPostprocesses(), SnapToGround() и CGame::SurfaceY().