◆ AttachToObject()
28 {
29
30
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()
69 {
72
74 }
proto native CGame GetGame()
Перекрестные ссылки GetGame().
◆ CanBeManipulated()
bool CanBeManipulated |
( |
| ) |
|
|
inlineprotected |
77 {
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]
28 {
29 return false;
30 }
◆ CanDetachAttachment() [2/6]
4 {
5 if (
Weapon_Base.Cast(parent) && parent.FindAttachmentBySlotName(
"weaponFlashlight") )
6 {
7 return false;
8 }
9 return true;
10 }
shorthand
Definition BoltActionRifle_Base.c:6
◆ CanDetachAttachment() [3/6]
4 {
5 if (
Weapon_Base.Cast(parent) && parent.FindAttachmentBySlotName(
"weaponFlashlight") )
6 {
7 return false;
8 }
9 return true;
10 }
◆ CanDetachAttachment() [4/6]
4 {
5 if (
Weapon_Base.Cast(parent) && parent.FindAttachmentBySlotName(
"weaponFlashlight") )
6 {
7 return false;
8 }
9 return true;
10 }
◆ CanDetachAttachment() [5/6]
43 {
44
47
48
49 if ( parent.IsKindOf("Barrel_ColorBase") )
50 {
52 }
53
54
55 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1 )
56 {
58 }
59
61 {
62 return true;
63 }
64 return false;
65 }
◆ CanDetachAttachment() [6/6]
60 {
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 return false;
82 }
◆ CanPutAsAttachment() [1/6]
4 {
5 if(!
super.CanPutAsAttachment(parent)) {
return 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
20 {
21 return true;
22 }
23
24 return false;
25 }
◆ CanPutAsAttachment() [2/6]
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]
4 {
5 if(!
super.CanPutAsAttachment(parent)) {
return false;}
6 const int SLOTS_ARRAY = 8;
10 string slot_names[SLOTS_ARRAY] = { "BerryR", "BerryB", "Plant", "OakBark", "BirchBark", "Lime", "Disinfectant", "Guts" };
11
12
13
14 if ( parent.IsKindOf("Barrel_ColorBase") )
15 {
17 }
18
19
20 if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1 )
21 {
23 }
24
25
26 for (
int i = 0;
i < SLOTS_ARRAY ;
i++ )
27 {
28 if ( parent.FindAttachmentBySlotName(slot_names[
i]) !=
NULL )
29 {
31 break;
32 }
33 }
34
36 {
37 return true;
38 }
39 return false;
40 }
◆ CanPutAsAttachment() [4/6]
4 {
5 if (!
super.CanPutAsAttachment(parent))
6 {
7 return false;
8 }
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 return false;
57 }
◆ CanPutAsAttachment() [5/6]
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]
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()
4 {
5 if( !
super.CanPutInCargo(parent) ) {
return false;}
6 if (parent && !parent.HasSelection("flame"))
7 {
8 return true;
9 }
10 return false;
11 }
◆ CanPutIntoHands()
28 {
29 if( !
super.CanPutIntoHands( parent ) )
30 {
31 return false;
32 }
34 }
bool CanBeManipulated()
Definition HescoBox.c:76
Перекрестные ссылки CanBeManipulated().
◆ DetachFromObject()
47 {
51
52 GetCompEM().UnplugThis();
53 }
void HideOnItem(ItemBase item)
Definition XmasLights.c:94
Перекрестные ссылки HideOnItem() и TurnOnItem().
◆ EEItemLocationChanged()
◆ EmptySeedPack()
10 {
11
14
16
19
21
23 {
25 }
26
28 {
31 }
32 else
33 {
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 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()
163 {
164 this.HideSelection( "inventory" );
165 this.HideSelection( "placing" );
166 this.ShowSelection( "filled" );
167
170
172 {
174 DecreaseHealth( "", "", 5 );
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()
◆ GetDeploySoundset()
240 {
241 return "placeHescoBox_SoundSet";
242 }
◆ GetLoopDeploySoundset()
245 {
246 return "hescobox_deploy_SoundSet";
247 }
◆ GetState()
◆ GetValidFinishers() [1/2]
9 {
11 }
EMeleeHitType
Definition DayZPlayerImplementMeleeCombat.c:2
◆ GetValidFinishers() [2/2]
◆ HasProxyParts()
23 {
24 return true;
25 }
◆ HescoBox()
13 {
15
16
18 RegisterNetSyncVariableBool("m_IsSoundSynchRemote");
19 RegisterNetSyncVariableBool("m_IsDeploySound");
20 }
Перекрестные ссылки FOLDED, FOLDED и m_State.
◆ HideOnItem()
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
105 item.SetAnimationPhase(
"Cord_plugged", 1);
106 item.SetAnimationPhase(
"Cord_folded", 1);
107 }
Используется в DetachFromObject().
◆ InitItemVariables()
92 {
93 super.InitItemVariables();
95 }
bool can_this_be_combined
Definition ItemBase.c:4830
Перекрестные ссылки can_this_be_combined.
◆ IsDeployable()
235 {
236 return true;
237 }
◆ IsElectricAppliance()
11 {
12 return true;
13 }
◆ IsMeleeFinisher() [1/2]
◆ IsMeleeFinisher() [2/2]
◆ OnPlacementComplete()
223 {
225
227 {
229
231 }
232 }
void SetIsDeploySound(bool is_deploy_sound)
Definition ItemBase.c:9093
void Unfold()
Definition HescoBox.c:106
Перекрестные ссылки GetGame(), SetIsDeploySound() и Unfold().
◆ OnStoreLoad()
188 {
189 if ( !
super.OnStoreLoad(
ctx, version) )
190 return false;
191
192
196
198 {
200 {
202 break;
203 }
205 {
207 break;
208 }
210 {
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()
◆ OnVariablesSynchronized()
42 {
43 super.OnVariablesSynchronized();
44
45
47
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]
24 {
26
27 if( parent.IsWeapon() )
28 {
29 parent.SetBayonetAttached(
true,
slot_id);
30 }
31 }
◆ OnWasAttached() [2/3]
24 {
26
27 if( parent.IsWeapon() )
28 {
29 parent.SetBayonetAttached(
true,
slot_id);
30 }
31 }
◆ OnWasAttached() [3/3]
4 {
6
7 if( parent.IsWeapon() )
8 {
9 parent.SetButtstockAttached(
true,
slot_id);
10 }
11 }
◆ OnWasDetached() [1/3]
34 {
36
37 if( parent.IsWeapon() )
38 {
39 parent.SetBayonetAttached(false);
40 }
41 }
◆ OnWasDetached() [2/3]
34 {
36
37 if( parent.IsWeapon() )
38 {
39 parent.SetBayonetAttached(false);
40 }
41 }
◆ OnWasDetached() [3/3]
14 {
16
17 if( parent.IsWeapon() )
18 {
19 parent.SetButtstockAttached(false);
20 }
21 }
◆ OnWorkStart()
◆ OnWorkStop()
22 {
25 }
void TurnOffItem(ItemBase item)
Definition XmasLights.c:78
Перекрестные ссылки TurnOffItem().
◆ PlayDeployLoopSound()
void PlayDeployLoopSound |
( |
| ) |
|
|
protected |
◆ RefreshPhysics()
132 {
133 super.RefreshPhysics();
134
135 if ( this && !ToDelete() )
136 {
137 RemoveProxyPhysics( "inventory" );
138 RemoveProxyPhysics( "placing" );
139 RemoveProxyPhysics( "filled" );
140
142
144 {
146
147 AddProxyPhysics( "placing" );
148
149 return;
150
152 AddProxyPhysics( "inventory" );
153 return;
154
156 AddProxyPhysics( "filled" );
157 return;
158 }
159 }
160 }
Перекрестные ссылки FILLED, FOLDED, GetState() и UNFOLDED.
Используется в Fill(), Fold() и Unfold().
◆ RefreshVisuals()
◆ SeedPackBase()
◆ SetActions() [1/10]
4 {
6
8 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionMineRock.c:61
Перекрестные ссылки AddAction().
◆ SetActions() [2/10]
4 {
6
10 }
Definition ActionBuildPart.c:26
Definition ActionRepairPart.c:40
Перекрестные ссылки AddAction().
◆ SetActions() [3/10]
250 {
252
256 }
Definition ActionFoldObject.c:2
Definition ActionTogglePlaceObject.c:2
Перекрестные ссылки AddAction().
◆ SetActions() [4/10]
44 {
46
49 }
Definition ActionDigWorms.c:18
Definition ActionUnrestrainTarget.c:56
Перекрестные ссылки AddAction().
◆ SetActions() [5/10]
85 {
87
89 }
Definition ActionFertilizeSlot.c:12
Перекрестные ссылки AddAction().
◆ SetActions() [6/10]
44 {
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]
4 {
6
8 }
Definition ActionMineRock.c:12
Перекрестные ссылки AddAction().
◆ SetActions() [8/10]
41 {
43
45 }
Definition ActionEmptySeedsPack.c:7
Перекрестные ссылки AddAction().
◆ SetActions() [9/10]
4 {
6
11 }
Definition ActionClapBearTrapWithThisItem.c:2
Definition ActionDismantlePart.c:27
Перекрестные ссылки AddAction().
◆ SetActions() [10/10]
114 {
116
120 }
Definition ActionAttachOnProxy.c:2
Definition ActionPlugIn.c:2
Definition ActionUnplugThisByCord.c:2
Перекрестные ссылки AddAction().
◆ SetState()
◆ StopDeployLoopSound()
void StopDeployLoopSound |
( |
| ) |
|
|
protected |
◆ Synchronize()
◆ TurnOffItem()
79 {
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
91 }
92 }
Используется в OnWorkStop(), TurnOnItem() и XmasLights().
◆ TurnOnItem()
56 {
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
70 }
71 else
72 {
74 }
75 }
76 }
Перекрестные ссылки TurnOffItem().
Используется в AttachToObject(), DetachFromObject() и OnWorkStart().
◆ Unfold()
◆ XmasLights()
◆ FILLED
◆ FOLDED
◆ m_AttachedTo
◆ m_DeployLoopSound
◆ m_State
◆ m_Timer
◆ PACK_DAMAGE_TOLERANCE
◆ PERCENTUAL_DAMAGE
◆ UNFOLDED
Объявления и описания членов классов находятся в файлах:
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/BarbedBaseballBat.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/HescoBox.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/SeedPackBase.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/XmasLights.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Gear/Tools/Mace.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Hammer.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/AK_RailHndgrd.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/AtlasBipod.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/Candle.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/M4_RISHndgrd.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/Mosin_Bayonet.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/MP5_RailHndgrd.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/Nail.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/PlantMaterial.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/Red9Bttstck.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/Inventory_Base/SKS_Bayonet.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/PipeWrench.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/SledgeHammer.c
- D:/Ishodniki/scripts/4_World/Entities/ItemBase/WeaponAttachments/Attachments.c