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

◆ EEItemAttached()

override void ManBase::EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected

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

1327 {
1328 super.EEItemAttached(item, slot_name);
1329
1330 ItemBase itemIB = ItemBase.Cast(item);
1331 SwitchItemSelectionTexture(item, slot_name);
1332 Param1<PlayerBase> p = new Param1<PlayerBase>(this);
1333 item.SwitchItemSelectionTextureEx(EItemManipulationContext.ATTACHING, p);
1334 m_QuickBarBase.updateSlotsCount();
1336 UpdateShoulderProxyVisibility(item, slot_name);
1337
1338 HideHairSelections(itemIB,true);
1339
1341 Clothing clothing = Clothing.Cast(item);
1342 if (clothing)
1343 {
1344 if (!GetGame().IsDedicatedServer())
1345 {
1346 if (clothing.GetEffectWidgetTypes())
1347 {
1348 QueueAddEffectWidget(clothing.GetEffectWidgetTypes());
1349 }
1350
1351 if (clothing.GetGlassesEffectID() > -1)
1352 {
1353 QueueAddGlassesEffect(clothing.GetGlassesEffectID());
1354 }
1355
1356 GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallLater(UpdateCorpseStateVisual, 200, false);//sometimes it takes a while to load in
1357 UpdateCorpseStateVisual();//....but if possible, we don't want a delay
1358 }
1359 else if (GetGame().IsServer())
1360 {
1361 if (clothing.IsGasMask())
1362 {
1363 GetModifiersManager().ActivateModifier(eModifiers.MDF_MASK);
1364 }
1365 }
1366
1367 clothing.UpdateNVGStatus(this,true);
1368 }
1369
1370 AdjustBandana(item,slot_name);
1371 AdjustShemag(item,slot_name);
1372 }
class GP5GasMask extends MaskBase ItemBase
void OnItemAttachedAtPlayer(EntityAI item, string slot_name)
Определения AnalyticsManagerClient.c:77
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
AnalyticsManagerClient GetAnalyticsClient()
Определения Game.c:1513
void UpdateShoulderProxyVisibility(EntityAI item, string slot_name)
Определения PlayerBase.c:1416
override void SwitchItemSelectionTexture(EntityAI item, string slot_name)
Определения PlayerBase.c:1434
void AdjustBandana(EntityAI item, string slot_name)
Определения PlayerBase.c:8848
ModifiersManager GetModifiersManager()
Определения PlayerBase.c:7595
void QueueAddEffectWidget(array< int > effects)
Определения PlayerBase.c:966
void UpdateCorpseStateVisual()
Определения PlayerBase.c:8883
void AdjustShemag(EntityAI item, string slot_name)
Определения PlayerBase.c:8865
void QueueAddGlassesEffect(int id)
Определения PlayerBase.c:976
void CalculateVisibilityForAI()
Определения PlayerBase.c:4984
void HideHairSelections(ItemBase item, bool state)
Определения PlayerBase.c:8613
QuickBarBase m_QuickBarBase
Определения PlayerBase.c:86
proto void CallLater(func fn, int delay=0, bool repeat=false, 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 ...
eModifiers
Определения eModifiers.c:2
proto native CGame GetGame()
const int CALL_CATEGORY_GUI
Определения tools.c:9

Перекрестные ссылки AdjustBandana(), AdjustShemag(), CalculateVisibilityForAI(), CALL_CATEGORY_GUI, ScriptCallQueue::CallLater(), CGame::GetAnalyticsClient(), CGame::GetCallQueue(), GetGame(), GetModifiersManager(), HideHairSelections(), m_QuickBarBase, AnalyticsManagerClient::OnItemAttachedAtPlayer(), QueueAddEffectWidget(), QueueAddGlassesEffect(), SwitchItemSelectionTexture(), UpdateCorpseStateVisual() и UpdateShoulderProxyVisibility().