Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс Clothing_Base

Закрытые члены

override bool IsClothing ()
 
override bool CanHaveWetness ()
 
int GetGlassesEffectID ()
 Used for 'glasses' (and other colored layers triggered by attach/detach in the InventorySlots.EYEWEAR)
 
array< intGetEffectWidgetTypes ()
 
override bool CanPutInCargo (EntityAI parent)
 
bool CanPutInCargoClothingConditions (EntityAI parent)
 
override bool CanReceiveItemIntoCargo (EntityAI item)
 
bool CanReceiveItemIntoCargoClothingConditions (EntityAI item)
 
bool SmershException (EntityAI hierarchyParent)
 
override bool CanLoadItemIntoCargo (EntityAI item)
 
bool CanLoadItemIntoCargoClothingConditions (EntityAI item)
 
bool CanWearUnderMask (EntityAI parent)
 deprecated
 
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
 
override void SwitchItemSelectionTextureEx (EItemManipulationContext context, Param par=null)
 

Подробное описание

Методы

◆ CanHaveWetness()

override bool CanHaveWetness ( )
inlineprivate
12 {
13 return true;
14 }

◆ CanLoadItemIntoCargo()

override bool CanLoadItemIntoCargo ( EntityAI item)
inlineprivate
86 {
87 if (!super.CanLoadItemIntoCargo(item))
88 return false;
89
91 }
bool CanLoadItemIntoCargoClothingConditions(EntityAI item)
Definition Clothing_Base.c:93
Definition EntityAI.c:95

◆ CanLoadItemIntoCargoClothingConditions()

bool CanLoadItemIntoCargoClothingConditions ( EntityAI item)
inlineprivate
94 {
95 EntityAI parent = GetHierarchyParent();
96
97 if ( parent && parent.IsInherited( UndergroundStash ) )
98 return true;
99
100 return !parent || parent.IsMan() || SmershException(parent);
101 }
bool SmershException(EntityAI hierarchyParent)
Definition Clothing_Base.c:73
Definition Building.c:6
override bool IsMan()
Definition Man.c:44

Перекрестные ссылки EntityAI::IsMan().

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
31 {
32 if ( !super.CanPutInCargo( parent ) )
33 return false;
34
35 return !parent || CanPutInCargoClothingConditions( parent );
36 }
bool CanPutInCargoClothingConditions(EntityAI parent)
Definition Clothing_Base.c:38

◆ CanPutInCargoClothingConditions()

bool CanPutInCargoClothingConditions ( EntityAI parent)
inlineprivate
39 {
40 bool is_hidden_stash_exception = false;
41
42 if ( parent.IsInherited( UndergroundStash ) )
44
45 if ( GetNumberOfItems() == 0 || !parent || parent.IsMan() || is_hidden_stash_exception )
46 {
47 EntityAI cargoParent = parent.GetHierarchyParent();
49 if (cargoParent)
50 return !(parent.IsClothing() && cargoParent.IsClothing()) || ( parentClothing && parentClothing.SmershException(cargoParent) );
51
52 return true;
53 }
54
55 return false;
56 }
int GetNumberOfItems()
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
Definition ItemBase.c:8106
Definition DallasMask.c:2

Перекрестные ссылки GetNumberOfItems() и EntityAI::IsMan().

◆ CanReceiveItemIntoCargo()

override bool CanReceiveItemIntoCargo ( EntityAI item)
inlineprivate
59 {
60 if (!super.CanReceiveItemIntoCargo(item))
61 return false;
62
64 }
bool CanReceiveItemIntoCargoClothingConditions(EntityAI item)
Definition Clothing_Base.c:66

◆ CanReceiveItemIntoCargoClothingConditions()

bool CanReceiveItemIntoCargoClothingConditions ( EntityAI item)
inlineprivate
67 {
68 EntityAI hierarchyParent = GetHierarchyParent();
70 }

◆ CanWearUnderMask()

bool CanWearUnderMask ( EntityAI parent)
inlineprivate

deprecated

106 {
107 return true;
108 }

◆ EEHealthLevelChanged()

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprivate
112 {
113 super.EEHealthLevelChanged(oldLevel, newLevel, zone);
114 if ( !GetGame().IsDedicatedServer() )
115 {
116 PlayerBase player_owner = PlayerBase.Cast(GetHierarchyParent());
117
118 if( player_owner )
119 {
120 if( player_owner.m_CorpseState != 0 )
121 {
122 GetGame().GetCallQueue( CALL_CATEGORY_GUI ).CallLater( player_owner.UpdateCorpseState, 0, false);
123 }
124 }
125 }
126 }
Definition PlayerBaseClient.c:2
proto native CGame GetGame()
const int CALL_CATEGORY_GUI
Definition tools.c:9

Перекрестные ссылки CALL_CATEGORY_GUI и GetGame().

◆ GetEffectWidgetTypes()

array< int > GetEffectWidgetTypes ( )
inlineprivate
25 {
26 return null;
27 }

◆ GetGlassesEffectID()

int GetGlassesEffectID ( )
inlineprivate

Used for 'glasses' (and other colored layers triggered by attach/detach in the InventorySlots.EYEWEAR)

18 {
19 return -1;
20 }

◆ IsClothing()

override bool IsClothing ( )
inlineprivate
7 {
8 return true;
9 }

◆ SmershException()

bool SmershException ( EntityAI hierarchyParent)
inlineprivate
74 {
75 EntityAI hp = hierarchyParent.GetHierarchyParent();
76 if (hp)
77 {
78 if (!hp.IsMan())
79 return false;
80 }
81
82 return IsInherited(SmershBag) && hierarchyParent.IsInherited(SmershVest);
83 }

◆ SwitchItemSelectionTextureEx()

override void SwitchItemSelectionTextureEx ( EItemManipulationContext context,
Param par = null )
inlineprivate
129 {
130 super.SwitchItemSelectionTextureEx(context, par);
131
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 }
Definition PlayerConstants.c:2
static const int CORPSE_STATE_FRESH
Definition PlayerConstants.c:199

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


Объявления и описания членов класса находятся в файле: