DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс Inventory_Base
+ Граф наследования:Inventory_Base:

Защищенные члены

void HescoBox ()
 
override bool HasProxyParts ()
 
override bool CanPutIntoHands (EntityAI parent)
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
void RefreshVisuals ()
 
int GetState ()
 
void SetState (int state)
 
bool CanBeFilledAtPosition (vector position)
 
bool CanBeManipulated ()
 
void Fold ()
 
void Unfold ()
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
override void RefreshPhysics ()
 
void Fill ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool IsDeployable ()
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
override void SetActions ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 

Защищенные данные

int m_State
 
ref EffectSound m_DeployLoopSound
 DEPRECATED.
 

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

override void SetActions ()
 
override void SetActions ()
 
override bool CanDetachAttachment (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanDetachAttachment (EntityAI attachment)
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanDetachAttachment (EntityAI parent)
 
override bool IsMeleeFinisher ()
 
override array< intGetValidFinishers ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void SetActions ()
 
override bool CanDetachAttachment (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanDetachAttachment (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanDetachAttachment (EntityAI parent)
 
override void SetActions ()
 
override void InitItemVariables ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool IsMeleeFinisher ()
 
override array< intGetValidFinishers ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void SetActions ()
 
override void SetActions ()
 
void SeedPackBase ()
 
void EmptySeedPack (PlayerBase player)
 
override void SetActions ()
 
override void SetActions ()
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
void XmasLights ()
 
override bool IsElectricAppliance ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void AttachToObject (ItemBase parent)
 
void DetachFromObject (ItemBase parent)
 
void TurnOnItem (ItemBase item)
 
void TurnOffItem (ItemBase item)
 
void HideOnItem (ItemBase item)
 
override void SetActions ()
 

Закрытые данные

ref Timer m_Timer
 
ItemBase m_AttachedTo = NULL
 

Закрытые статические данные

static const int FOLDED = 0
 
static const int UNFOLDED = 1
 
static const int FILLED = 2
 
static const int PERCENTUAL_DAMAGE = 1
 
static const float PACK_DAMAGE_TOLERANCE = 0.5
 

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

Методы

◆ AttachToObject()

void AttachToObject ( ItemBase parent)
inlineprivate
28 {
29 //SetPilotLight( false );
30
31 m_AttachedTo = parent;
32 TurnOnItem( parent );
33
34 if ( GetCompEM().IsPlugged() )
35 {
36 parent.SetAnimationPhase( "Cord_plugged", 0);
37 parent.SetAnimationPhase( "Cord_folded", 1);
38 }
39 else
40 {
41 parent.SetAnimationPhase( "Cord_plugged", 1);
42 parent.SetAnimationPhase( "Cord_folded", 0);
43 }
44 }
void TurnOnItem(ItemBase item)
Definition XmasLights.c:55
ItemBase m_AttachedTo
Definition XmasLights.c:3

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

◆ CanBeFilledAtPosition()

bool CanBeFilledAtPosition ( vector position)
inlineprotected
69 {
70 string surface_type;
71 GetGame().SurfaceGetType( position[0], position[2], surface_type );
72
73 return GetGame().IsSurfaceDigable(surface_type);
74 }
Definition EntityAI.c:95
proto native CGame GetGame()

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

◆ CanBeManipulated()

bool CanBeManipulated ( )
inlineprotected
77 {
78 if ( GetState() == FOLDED )
79 {
80 return true;
81 }
82 else
83 {
84 return false;
85 }
86 }
int GetState()
Definition HescoBox.c:58
static const int FOLDED
Definition HescoBox.c:3

Перекрестные ссылки FOLDED и GetState().

Используется в CanPutIntoHands().

◆ CanDetachAttachment() [1/6]

override bool CanDetachAttachment ( EntityAI attachment)
inlineprivate
28 {
29 return false;
30 }

◆ CanDetachAttachment() [2/6]

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate
4 {
5 if ( Weapon_Base.Cast(parent) && parent.FindAttachmentBySlotName("weaponFlashlight")/*.IsKindOf("UniversalLight")*/ )
6 {
7 return false;
8 }
9 return true;
10 }
shorthand
Definition BoltActionRifle_Base.c:6

◆ CanDetachAttachment() [3/6]

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate
4 {
5 if ( Weapon_Base.Cast(parent) && parent.FindAttachmentBySlotName("weaponFlashlight") )
6 {
7 return false;
8 }
9 return true;
10 }

◆ CanDetachAttachment() [4/6]

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate
4 {
5 if ( Weapon_Base.Cast(parent) && parent.FindAttachmentBySlotName("weaponFlashlight")/*.IsKindOf("UniversalLight")*/ )
6 {
7 return false;
8 }
9 return true;
10 }

◆ CanDetachAttachment() [5/6]

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate
43 {
44
45 bool is_barrel = false;
46 bool is_opened_barrel = false;
47
48 // is barrel
49 if ( parent.IsKindOf("Barrel_ColorBase") )
50 {
51 is_barrel = true;
52 }
53
54 // is opened barrel
55 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
56 {
57 is_opened_barrel = true;
58 }
59
61 {
62 return true;
63 }
64 return false;
65 }

◆ CanDetachAttachment() [6/6]

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate
60 {
61
62 /*bool is_barrel = false;
63 bool is_opened_barrel = false;
64
65 // is barrel
66 if ( parent.IsKindOf("Barrel_ColorBase") )
67 {
68 is_barrel = true;
69 }
70
71 // is opened barrel
72 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
73 {
74 is_opened_barrel = true;
75 }
76
77 if ( is_opened_barrel || !is_barrel )
78 {
79 return true;
80 }*/
81 return false;
82 }

◆ CanPutAsAttachment() [1/6]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 bool m4_hndgrd = false;
7 bool ak_hndgrd = false;
8
9 if ( parent.FindAttachmentBySlotName("weaponHandguardM4") != NULL )
10 {
11 m4_hndgrd = parent.FindAttachmentBySlotName("weaponHandguardM4").IsKindOf("M4_RISHndgrd");
12 }
13
14 if ( parent.FindAttachmentBySlotName("weaponHandguardAK") != NULL )
15 {
16 ak_hndgrd = parent.FindAttachmentBySlotName("weaponHandguardAK").IsKindOf("AK_RailHndgrd");
17 }
18
19 if ( m4_hndgrd || ak_hndgrd )
20 {
21 return true;
22 }
23
24 return false;
25 }

◆ CanPutAsAttachment() [2/6]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
14 {
15 if(!super.CanPutAsAttachment(parent)) {return false;}
16 if ( parent.FindAttachmentBySlotName("suppressorImpro") == null && parent.FindAttachmentBySlotName("weaponMuzzleMosin") == null )
17 {
18 return true;
19 }
20 return false;
21 }

◆ CanPutAsAttachment() [3/6]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 const int SLOTS_ARRAY = 8;
7 bool is_barrel = false;
8 bool is_opened_barrel = false;
9 bool slot_test = true;
10 string slot_names[SLOTS_ARRAY] = { "BerryR", "BerryB", "Plant", "OakBark", "BirchBark", "Lime", "Disinfectant", "Guts" };
11
12
13 // is barrel
14 if ( parent.IsKindOf("Barrel_ColorBase") )
15 {
16 is_barrel = true;
17 }
18
19 // is opened barrel
20 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
21 {
22 is_opened_barrel = true;
23 }
24
25 // all of the barrel slots are empty
26 for ( int i = 0; i < SLOTS_ARRAY ; i++ )
27 {
28 if ( parent.FindAttachmentBySlotName(slot_names[i]) != NULL )
29 {
30 slot_test = false;
31 break;
32 }
33 }
34
35 if ( ( is_opened_barrel && slot_test ) || !is_barrel )
36 {
37 return true;
38 }
39 return false;
40 }

◆ CanPutAsAttachment() [4/6]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if (!super.CanPutAsAttachment(parent))
6 {
7 return false;
8 }
9 /*const int SLOTS_ARRAY1 = 6;
10 const int SLOTS_ARRAY2 = 7;
11 bool is_barrel = false;
12 bool is_opened_barrel = false;
13 bool slot_test1 = true;
14 bool slot_test2 = true;
15 string slot_names1[SLOTS_ARRAY1] = { "Nails", "OakBark", "BirchBark", "Lime", "Disinfectant", "Guts" };
16 string slot_names2[SLOTS_ARRAY2] = { "BerryR", "BerryB", "Nails", "OakBark", "BirchBark", "Lime", "Disinfectant" };
17
18
19 // is barrel
20 if ( parent.IsKindOf("Barrel_ColorBase") )
21 {
22 is_barrel = true;
23 }
24
25 // is opened barrel
26 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
27 {
28 is_opened_barrel = true;
29 }
30
31 // all of the barrel attachment slots are empty (first set of ingredients)
32 for ( int idx1 = 0; idx1 < SLOTS_ARRAY1 ; idx1++ )
33 {
34 if ( parent.FindAttachmentBySlotName(slot_names1[idx1]) != NULL )
35 {
36 slot_test1 = false;
37 break;
38 }
39 }
40
41 // all of the barrel attachment slots are empty (second set of ingredients)
42 for ( int idx2 = 0; idx2 < SLOTS_ARRAY2 ; idx2++ )
43 {
44 if ( parent.FindAttachmentBySlotName(slot_names2[idx2]) != NULL )
45 {
46 slot_test2 = false;
47 break;
48 }
49 }
50
51 if ( ( is_opened_barrel && slot_test1 ) || ( is_opened_barrel && slot_test2) || !is_barrel )
52 {
53 return true;
54 }*/
55
56 return false;
57 }

◆ CanPutAsAttachment() [5/6]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 if ( !parent.IsKindOf("PlateCarrierHolster") && !parent.IsKindOf("PlateCarrierComplete") && !parent.IsKindOf("CarrierHolsterSolo") && !parent.IsKindOf("ChestHolster") )
7 {
8 return true;
9 }
10 return false;
11 }

◆ CanPutAsAttachment() [6/6]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
14 {
15 if(!super.CanPutAsAttachment(parent)) {return false;}
16 if ( parent.FindAttachmentBySlotName("suppressorImpro") == null && parent.FindAttachmentBySlotName("weaponMuzzle") == null )
17 {
18 return true;
19 }
20 return false;
21 }

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
4 {
5 if( !super.CanPutInCargo(parent) ) {return false;}
6 if (parent && !parent.HasSelection("flame"))
7 {
8 return true;
9 }
10 return false;
11 }

◆ CanPutIntoHands()

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected
28 {
29 if( !super.CanPutIntoHands( parent ) )
30 {
31 return false;
32 }
33 return CanBeManipulated();
34 }
bool CanBeManipulated()
Definition HescoBox.c:76

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

◆ DetachFromObject()

void DetachFromObject ( ItemBase parent)
inlineprivate
47 {
49 HideOnItem( parent );
50 TurnOnItem( this );
51
52 GetCompEM().UnplugThis();
53 }
void HideOnItem(ItemBase item)
Definition XmasLights.c:94

Перекрестные ссылки HideOnItem() и TurnOnItem().

◆ EEItemLocationChanged()

override void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprotected
125 {
126 super.EEItemLocationChanged (oldLoc, newLoc);
127
128 //RefreshPhysics();
129 }

◆ EmptySeedPack()

void EmptySeedPack ( PlayerBase player)
inlineprivate
10 {
11
12 string pack_type = GetType();
13 string seeds_type = "";
14
15 GetGame().ConfigGetText( "cfgVehicles " + pack_type + " Horticulture ContainsSeedsType", seeds_type );
16
17 int seeds_quantity_max = GetGame().ConfigGetInt( "cfgVehicles " + pack_type + " Horticulture ContainsSeedsQuantity" );
19
20 seeds_quantity = Math.Round( seeds_quantity_max * GetHealth01("","") );
21
22 if ( seeds_quantity < 1 )
23 {
25 }
26
27 if (player)
28 {
30 player.ServerReplaceItemInHandsWithNew(lambda);
31 }
32 else
33 {
34 vector pos = GetPosition();
35 GetGame().CreateObjectEx(seeds_type, pos, ECE_PLACE_ON_SURFACE);
36 GetGame().ObjectDelete( this );
37 }
38 }
eBleedingSourceType GetType()
Definition BleedingSource.c:63
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
void EmptySeedsPackLambda(EntityAI old_item, string new_item_type, PlayerBase player, int count)
Definition SeedPackBase.c:52
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
Definition EnMath.c:7
Definition EnConvert.c:106
static proto float Round(float f)
Returns mathematical round of value.

Перекрестные ссылки ECE_PLACE_ON_SURFACE, EmptySeedsPackLambda(), GetGame(), GetPosition, GetType() и Math::Round().

◆ Fill()

void Fill ( )
inlineprotected
163 {
164 this.HideSelection( "inventory" );
165 this.HideSelection( "placing" );
166 this.ShowSelection( "filled" );
167
168 SetState( FILLED );
170
171 if ( GetGame().IsServer() )
172 {
173 Synchronize();
174 DecreaseHealth( "", "", 5 ); //TODO Daniel implement soft skill bonus via useraction
175 SetAllowDamage(false);
176 }
177 }
override void RefreshPhysics()
Definition HescoBox.c:131
void Synchronize()
Definition HescoBox.c:36
static const int FILLED
Definition HescoBox.c:5
void SetState(int state)
Definition HescoBox.c:63

Перекрестные ссылки GetGame(), RefreshPhysics(), SetState() и Synchronize().

Используется в OnStoreLoad().

◆ Fold()

void Fold ( )
inlineprotected
89 {
90 this.ShowSelection( "inventory" );
91 this.HideSelection( "placing" );
92 this.HideSelection( "filled" );
93
96
97 if ( GetGame().IsServer() )
98 {
99 SetAllowDamage(true);
100 Synchronize();
101 float fold_damage = ( GetMaxHealth( "", "" ) / 100 ) * PERCENTUAL_DAMAGE;
102 DecreaseHealth( "", "", fold_damage );
103 }
104 }
static const int PERCENTUAL_DAMAGE
Definition HescoBox.c:6

Перекрестные ссылки FOLDED, GetGame(), RefreshPhysics(), SetState() и Synchronize().

Используется в OnStoreLoad().

◆ GetDeploySoundset()

override string GetDeploySoundset ( )
inlineprotected
240 {
241 return "placeHescoBox_SoundSet";
242 }

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
inlineprotected
245 {
246 return "hescobox_deploy_SoundSet";
247 }

◆ GetState()

int GetState ( )
inlineprotected
59 {
60 return m_State;
61 }
int m_State
Definition HescoBox.c:10

Перекрестные ссылки m_State.

Используется в CanBeManipulated() и RefreshPhysics().

◆ GetValidFinishers() [1/2]

override array< int > GetValidFinishers ( )
inlineprivate
9 {
10 return {EMeleeHitType.FINISHER_LIVERSTAB,EMeleeHitType.FINISHER_NECKSTAB};
11 }
EMeleeHitType
Definition DayZPlayerImplementMeleeCombat.c:2

◆ GetValidFinishers() [2/2]

override array< int > GetValidFinishers ( )
inlineprivate
9 {
10 return {EMeleeHitType.FINISHER_LIVERSTAB,EMeleeHitType.FINISHER_NECKSTAB};
11 }

◆ HasProxyParts()

override bool HasProxyParts ( )
inlineprotected
23 {
24 return true;
25 }

◆ HescoBox()

void HescoBox ( )
inlineprotected
13 {
15
16 //synchronized variables
17 RegisterNetSyncVariableInt( "m_State", FOLDED, FILLED );
18 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
19 RegisterNetSyncVariableBool("m_IsDeploySound");
20 }

Перекрестные ссылки FOLDED, FOLDED и m_State.

◆ HideOnItem()

void HideOnItem ( ItemBase item)
inlineprivate
95 {
96 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_r"), "" );
97 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_g"), "" );
98 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_b"), "" );
99 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_y"), "" );
100 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_r"), "" );
101 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_g"), "" );
102 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_b"), "" );
103 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_y"), "" );
104// item.SetPilotLight(false);
105 item.SetAnimationPhase( "Cord_plugged", 1);
106 item.SetAnimationPhase( "Cord_folded", 1);
107 }

Используется в DetachFromObject().

◆ InitItemVariables()

override void InitItemVariables ( )
inlineprivate
92 {
93 super.InitItemVariables();
95 }
bool can_this_be_combined
Definition ItemBase.c:4830

Перекрестные ссылки can_this_be_combined.

◆ IsDeployable()

override bool IsDeployable ( )
inlineprotected
235 {
236 return true;
237 }

◆ IsElectricAppliance()

override bool IsElectricAppliance ( )
inlineprivate
11 {
12 return true;
13 }

◆ IsMeleeFinisher() [1/2]

override bool IsMeleeFinisher ( )
inlineprivate
4 {
5 return true;
6 }

◆ IsMeleeFinisher() [2/2]

override bool IsMeleeFinisher ( )
inlineprivate
4 {
5 return true;
6 }

◆ OnPlacementComplete()

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected
223 {
224 super.OnPlacementComplete( player, position, orientation );
225
226 if ( GetGame().IsServer() )
227 {
228 Unfold();
229
230 SetIsDeploySound( true );
231 }
232 }
void SetIsDeploySound(bool is_deploy_sound)
Definition ItemBase.c:9093
void Unfold()
Definition HescoBox.c:106

Перекрестные ссылки GetGame(), SetIsDeploySound() и Unfold().

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
188 {
189 if ( !super.OnStoreLoad(ctx, version) )
190 return false;
191
192 // Load folded/unfolded state
193 int state = FOLDED;
194 if ( !ctx.Read(state) )
195 state = FOLDED;
196
197 switch (state)
198 {
199 case FOLDED:
200 {
201 Fold();
202 break;
203 }
204 case UNFOLDED:
205 {
206 Unfold();
207 break;
208 }
209 case FILLED:
210 {
211 Fill();
212 break;
213 }
214 }
215 return true;
216 }
static const int UNFOLDED
Definition HescoBox.c:4
void Fold()
Definition HescoBox.c:88
void Fill()
Definition HescoBox.c:162

Перекрестные ссылки Fill(), FILLED, Fold(), FOLDED, Unfold() и UNFOLDED.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
180 {
181 super.OnStoreSave(ctx);
182
183 // Save state
184 ctx.Write( m_State );
185 }

Перекрестные ссылки m_State.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprotected
42 {
43 super.OnVariablesSynchronized();
44
45 //refresh visuals
47
48 if ( IsDeploySound() )
49 {
51 }
52 }
void PlayDeploySound()
Definition ItemBase.c:9124
bool IsDeploySound()
Definition ItemBase.c:9098
void RefreshVisuals()
Definition HescoBox.c:54

Перекрестные ссылки IsDeploySound(), PlayDeploySound() и RefreshVisuals().

◆ OnWasAttached() [1/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
24 {
25 super.OnWasAttached(parent, slot_id);
26
27 if( parent.IsWeapon() )
28 {
29 parent.SetBayonetAttached(true,slot_id);
30 }
31 }

◆ OnWasAttached() [2/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
24 {
25 super.OnWasAttached(parent, slot_id);
26
27 if( parent.IsWeapon() )
28 {
29 parent.SetBayonetAttached(true,slot_id);
30 }
31 }

◆ OnWasAttached() [3/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
4 {
5 super.OnWasAttached(parent, slot_id);
6
7 if( parent.IsWeapon() )
8 {
9 parent.SetButtstockAttached(true,slot_id);
10 }
11 }

◆ OnWasDetached() [1/3]

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate
34 {
35 super.OnWasDetached(parent, slot_id);
36
37 if( parent.IsWeapon() )
38 {
39 parent.SetBayonetAttached(false);
40 }
41 }

◆ OnWasDetached() [2/3]

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate
34 {
35 super.OnWasDetached(parent, slot_id);
36
37 if( parent.IsWeapon() )
38 {
39 parent.SetBayonetAttached(false);
40 }
41 }

◆ OnWasDetached() [3/3]

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate
14 {
15 super.OnWasDetached(parent, slot_id);
16
17 if( parent.IsWeapon() )
18 {
19 parent.SetButtstockAttached(false);
20 }
21 }

◆ OnWorkStart()

override void OnWorkStart ( )
inlineprivate
16 {
18 TurnOnItem( this );
19 }

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

◆ OnWorkStop()

override void OnWorkStop ( )
inlineprivate
22 {
24 TurnOffItem( this );
25 }
void TurnOffItem(ItemBase item)
Definition XmasLights.c:78

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

◆ PlayDeployLoopSound()

void PlayDeployLoopSound ( )
protected

◆ RefreshPhysics()

override void RefreshPhysics ( )
inlineprotected
132 {
133 super.RefreshPhysics();
134
135 if ( this && !ToDelete() )
136 {
137 RemoveProxyPhysics( "inventory" );
138 RemoveProxyPhysics( "placing" );
139 RemoveProxyPhysics( "filled" );
140
141 int state = GetState();
142
143 switch (state)
144 {
145 case UNFOLDED:
146 //ShowSelection( "placing" );
147 AddProxyPhysics( "placing" );
148
149 return;
150
151 case FOLDED:
152 AddProxyPhysics( "inventory" );
153 return;
154
155 case FILLED:
156 AddProxyPhysics( "filled" );
157 return;
158 }
159 }
160 }

Перекрестные ссылки FILLED, FOLDED, GetState() и UNFOLDED.

Используется в Fill(), Fold() и Unfold().

◆ RefreshVisuals()

void RefreshVisuals ( )
inlineprotected
55 {
56 }

Используется в OnVariablesSynchronized().

◆ SeedPackBase()

void SeedPackBase ( )
inlineprivate
6 {
7 }

◆ SetActions() [1/10]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
8 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionMineRock.c:61

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

◆ SetActions() [2/10]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
10 }
Definition ActionBuildPart.c:26
Definition ActionRepairPart.c:40

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

◆ SetActions() [3/10]

override void SetActions ( )
inlineprotected
250 {
251 super.SetActions();
252
255 AddAction(ActionDeployObject);
256 }
Definition ActionFoldObject.c:2
Definition ActionTogglePlaceObject.c:2

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

◆ SetActions() [4/10]

override void SetActions ( )
inlineprivate
44 {
45 super.SetActions();
46
49 }
Definition ActionDigWorms.c:18
Definition ActionUnrestrainTarget.c:56

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

◆ SetActions() [5/10]

override void SetActions ( )
inlineprivate
85 {
86 super.SetActions();
87
89 }
Definition ActionFertilizeSlot.c:12

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

◆ SetActions() [6/10]

override void SetActions ( )
inlineprivate
44 {
45 super.SetActions();
46
55 }
ActionSkinningCB ActionContinuousBaseCB ActionSkinning()
Definition ActionSkinning.c:31
Definition ActionCraftBolts.c:12
Definition ActionMineBush.c:12
Definition ActionMineTreeBark.c:2
Definition ActionShave.c:10
Definition ActionShaveTarget.c:10

Перекрестные ссылки ActionSkinning() и AddAction().

◆ SetActions() [7/10]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6 //AddAction(ActionDismantlePart);
8 }
Definition ActionMineRock.c:12

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

◆ SetActions() [8/10]

override void SetActions ( )
inlineprivate
41 {
42 super.SetActions();
43
45 }
Definition ActionEmptySeedsPack.c:7

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

◆ SetActions() [9/10]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
11 }
Definition ActionClapBearTrapWithThisItem.c:2
Definition ActionDismantlePart.c:27

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

◆ SetActions() [10/10]

override void SetActions ( )
inlineprivate
114 {
115 super.SetActions();
116
120 }
Definition ActionAttachOnProxy.c:2
Definition ActionPlugIn.c:2
Definition ActionUnplugThisByCord.c:2

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

◆ SetState()

void SetState ( int state)
inlineprotected
64 {
65 m_State = state;
66 }

Перекрестные ссылки m_State.

Используется в Fill(), Fold() и Unfold().

◆ StopDeployLoopSound()

void StopDeployLoopSound ( )
protected

DEPRECATED.

◆ Synchronize()

void Synchronize ( )
inlineprotected
37 {
38 SetSynchDirty();
39 }

Используется в Fill(), Fold() и Unfold().

◆ TurnOffItem()

void TurnOffItem ( ItemBase item)
inlineprivate
79 {
80 if ( item != NULL )
81 {
82 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_r"), "dz\\gear\\camping\\data\\christmass_ligths_string.rvmat" );
83 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_g"), "dz\\gear\\camping\\data\\christmass_ligths_string.rvmat" );
84 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_b"), "dz\\gear\\camping\\data\\christmass_ligths_string.rvmat" );
85 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_y"), "dz\\gear\\camping\\data\\christmass_ligths_string.rvmat" );
86 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_r"), "dz\\gear\\camping\\data\\christmas_lights_string_ca.paa" );
87 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_g"), "dz\\gear\\camping\\data\\christmas_lights_string_ca.paa" );
88 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_b"), "dz\\gear\\camping\\data\\christmas_lights_string_ca.paa" );
89 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_y"), "dz\\gear\\camping\\data\\christmas_lights_string_ca.paa" );
90 //item.SetPilotLight(false);
91 }
92 }

Используется в OnWorkStop(), TurnOnItem() и XmasLights().

◆ TurnOnItem()

void TurnOnItem ( ItemBase item)
inlineprivate
56 {
57 if ( item != NULL )
58 {
59 if ( GetCompEM().IsWorking() )
60 {
61 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_r"), "dz\\gear\\camping\\data\\christmas_lights_red_on.rvmat" );
62 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_g"), "dz\\gear\\camping\\data\\christmas_lights_green_on.rvmat" );
63 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_b"), "dz\\gear\\camping\\data\\christmas_lights_blue_on.rvmat" );
64 item.SetObjectMaterial( item.GetHiddenSelectionIndex("xlights_glass_y"), "dz\\gear\\camping\\data\\christmas_lights_yellow_on.rvmat" );
65 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_r"), "dz\\gear\\camping\\data\\christmas_lights_string_ca.paa" );
66 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_g"), "dz\\gear\\camping\\data\\christmas_lights_string_ca.paa" );
67 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_b"), "dz\\gear\\camping\\data\\christmas_lights_string_ca.paa" );
68 item.SetObjectTexture( item.GetHiddenSelectionIndex("xlights_glass_y"), "dz\\gear\\camping\\data\\christmas_lights_string_ca.paa" );
69 //item.SetPilotLight(true);
70 }
71 else
72 {
74 }
75 }
76 }

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

Используется в AttachToObject(), DetachFromObject() и OnWorkStart().

◆ Unfold()

void Unfold ( )
inlineprotected
107 {
108 this.HideSelection( "inventory" );
109 this.ShowSelection( "placing" );
110 this.HideSelection( "filled" );
111
114
115 if ( GetGame().IsServer() )
116 {
117 SetAllowDamage(true);
118 Synchronize();
119 float unfold_damage = ( GetMaxHealth( "", "" ) / 100 ) * PERCENTUAL_DAMAGE;
120 DecreaseHealth( "", "", unfold_damage );
121 }
122 }

Перекрестные ссылки GetGame(), RefreshPhysics(), SetState() и Synchronize().

Используется в OnPlacementComplete() и OnStoreLoad().

◆ XmasLights()

void XmasLights ( )
inlineprivate
6 {
7 TurnOffItem( this );
8 }

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

Поля

◆ FILLED

const int FILLED = 2
staticprivate

Используется в OnStoreLoad() и RefreshPhysics().

◆ FOLDED

const int FOLDED = 0
staticprivate

Используется в HescoBox(), OnStoreLoad() и RefreshPhysics().

◆ m_AttachedTo

ItemBase m_AttachedTo = NULL
private

◆ m_DeployLoopSound

ref EffectSound m_DeployLoopSound
protected

DEPRECATED.

◆ m_State

int m_State
protected

Используется в GetState().

◆ m_Timer

ref Timer m_Timer
private

◆ PACK_DAMAGE_TOLERANCE

const float PACK_DAMAGE_TOLERANCE = 0.5
staticprivate

◆ PERCENTUAL_DAMAGE

const int PERCENTUAL_DAMAGE = 1
staticprivate

◆ UNFOLDED

const int UNFOLDED = 1
staticprivate

Используется в OnStoreLoad() и RefreshPhysics().


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