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

◆ SwitchItemSelectionTextureEx()

override void Clothing_Base::SwitchItemSelectionTextureEx ( EItemManipulationContext context,
Param par = null )
inlineprivate

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

129 {
130 super.SwitchItemSelectionTextureEx(context, par);
131
132 Param1<PlayerBase> data = Param1<PlayerBase>.Cast(par);
133 if (!data)
134 {
135 return;
136 }
137
138 PlayerBase player = data.param1;
139
140 int personality = GetHiddenSelectionIndex("personality");
141 if (personality >= 0)
142 {
143 string tone_mat = player.m_EmptyGloves.GetHiddenSelectionsMaterials().Get(0);
144 string tone_texture;
145
146 if (player.m_CorpseState > PlayerConstants.CORPSE_STATE_FRESH)
147 {
148 tone_texture = player.m_DecayedTexture;
149 }
150 else
151 {
152 tone_texture = player.m_EmptyGloves.GetHiddenSelectionsTextures().Get(0);
153 }
154
155 SetObjectMaterial( personality, tone_mat );
156 SetObjectTexture( personality, tone_texture );
157 }
158 }

Перекрестные ссылки PlayerConstants::CORPSE_STATE_FRESH.