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

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

override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool DoPlacingHeightCheck ()
 
override float HeightCheckOverride ()
 
override void DisassembleKit (ItemBase item)
 
override void OnDebugSpawn ()
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool DoPlacingHeightCheck ()
 
override float HeightCheckOverride ()
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
override string GetDeployFinishSoundset ()
 
override void DisassembleKit (ItemBase item)
 
override void OnDebugSpawn ()
 
override bool PlacementCanBeRotated ()
 
override bool DoPlacingHeightCheck ()
 
override float HeightCheckOverride ()
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override void DisassembleKit (ItemBase item)
 
override void OnDebugSpawn ()
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool DoPlacingHeightCheck ()
 
override float HeightCheckOverride ()
 
override void DisassembleKit (ItemBase item)
 
override void OnDebugSpawn ()
 

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

Методы

◆ CanReceiveAttachment() [1/4]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprivate
4 {
5 if ( !super.CanReceiveAttachment(attachment, slotId) )
6 return false;
7
8 ItemBase att = ItemBase.Cast(GetInventory().FindAttachment(slotId));
9 if (att)
10 return false;
11
12 return true;
13 }
Definition InventoryItem.c:731
Definition EntityAI.c:95

◆ CanReceiveAttachment() [2/4]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprivate
4 {
5 if ( !super.CanReceiveAttachment(attachment, slotId) )
6 return false;
7
8 ItemBase att = ItemBase.Cast(GetInventory().FindAttachment(slotId));
9 if (att)
10 return false;
11
12 return true;
13 }

◆ CanReceiveAttachment() [3/4]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprivate
19 {
20 if ( !super.CanReceiveAttachment(attachment, slotId) )
21 return false;
22
23 ItemBase att = ItemBase.Cast(GetInventory().FindAttachment(slotId));
24 if (att)
25 return false;
26
27 return true;
28 }

◆ CanReceiveAttachment() [4/4]

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprivate
4 {
5 ItemBase att = ItemBase.Cast(GetInventory().FindAttachment(slotId));
6 if (att)
7 return false;
8
9 return super.CanReceiveAttachment(attachment, slotId);
10 }

◆ DisassembleKit() [1/4]

override void DisassembleKit ( ItemBase item)
inlineprivate
49 {
50 if (!IsHologram())
51 {
52 ItemBase stick = ItemBase.Cast(GetGame().CreateObjectEx("WoodenStick",GetPosition(),ECE_PLACE_ON_SURFACE));
53 MiscGameplayFunctions.TransferItemProperties(this, stick);
54 stick.SetQuantity(2);
55 Rope rope = Rope.Cast(item);
56 CreateRope(rope);
57 }
58 }
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
override bool IsHologram()
Definition ItemBase.c:5674
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
proto native CGame GetGame()

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), GetPosition и IsHologram().

Используется в ItemBase::EEItemDetached().

◆ DisassembleKit() [2/4]

override void DisassembleKit ( ItemBase item)
inlineprivate
62 {
63 if (!IsHologram())
64 {
65 ItemBase stick = ItemBase.Cast(GetGame().CreateObjectEx("WoodenStick",GetPosition(),ECE_PLACE_ON_SURFACE));
66 MiscGameplayFunctions.TransferItemProperties(this, stick);
67 stick.SetQuantity(4);
68 Rope rope = Rope.Cast(item);
69 CreateRope(rope);
70 }
71 }

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), GetPosition и IsHologram().

◆ DisassembleKit() [3/4]

override void DisassembleKit ( ItemBase item)
inlineprivate
53 {
54 if (!IsHologram())
55 {
56 ItemBase stick = ItemBase.Cast(GetGame().CreateObjectEx("WoodenStick",GetPosition(),ECE_PLACE_ON_SURFACE));
57 MiscGameplayFunctions.TransferItemProperties(this, stick);
58 stick.SetQuantity(3);
59 Rope rope = Rope.Cast(item);
60 CreateRope(rope);
61 }
62 }

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), GetPosition и IsHologram().

◆ DisassembleKit() [4/4]

override void DisassembleKit ( ItemBase item)
inlineprivate
45 {
46 if (!IsHologram())
47 {
48 ItemBase stick = ItemBase.Cast(GetGame().CreateObjectEx("WoodenStick",GetPosition(),ECE_PLACE_ON_SURFACE));
49 MiscGameplayFunctions.TransferItemProperties(this, stick);
50 stick.SetQuantity(4);
51 Rope rope = Rope.Cast(item);
52 CreateRope(rope);
53 }
54 }

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), GetPosition и IsHologram().

◆ DoPlacingHeightCheck() [1/4]

override bool DoPlacingHeightCheck ( )
inlineprivate
39 {
40 return true;
41 }

◆ DoPlacingHeightCheck() [2/4]

override bool DoPlacingHeightCheck ( )
inlineprivate
37 {
38 return true;
39 }

◆ DoPlacingHeightCheck() [3/4]

override bool DoPlacingHeightCheck ( )
inlineprivate
9 {
10 return true;
11 }

◆ DoPlacingHeightCheck() [4/4]

override bool DoPlacingHeightCheck ( )
inlineprivate
35 {
36 return true;
37 }

◆ GetDeployFinishSoundset()

override string GetDeployFinishSoundset ( )
inlineprivate
57 {
58 return "Shelter_Site_Build_Finish_SoundSet";
59 }

◆ GetDeploySoundset()

override string GetDeploySoundset ( )
inlineprivate
47 {
48 return "Shelter_Site_Build_Start_SoundSet";
49 }

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
inlineprivate
52 {
53 return "Shelter_Site_Build_Loop_SoundSet";
54 }

Используется в ItemBase::PlayDeployLoopSound().

◆ HeightCheckOverride() [1/4]

override float HeightCheckOverride ( )
inlineprivate
44 {
45 return 2.54;
46 }

◆ HeightCheckOverride() [2/4]

override float HeightCheckOverride ( )
inlineprivate
42 {
43 return 1.6;
44 }

◆ HeightCheckOverride() [3/4]

override float HeightCheckOverride ( )
inlineprivate
14 {
15 return 11.3;
16 }

◆ HeightCheckOverride() [4/4]

override float HeightCheckOverride ( )
inlineprivate
40 {
41 return 2.83;//9.56;
42 }

◆ OnDebugSpawn() [1/4]

override void OnDebugSpawn ( )
inlineprivate
62 {
63 SpawnEntityOnGroundPos("Shovel", GetPosition());
64 SpawnEntityOnGroundPos("Hammer", GetPosition());
65 SpawnEntityOnGroundPos("Hammer", GetPosition());
66 SpawnEntityOnGroundPos("Pliers", GetPosition());
67
68 SpawnEntityOnGroundPos("WoodenLog", GetPosition());
69 SpawnEntityOnGroundPos("WoodenLog", GetPosition());
70 SpawnEntityOnGroundPos("Nail", GetPosition());
71 SpawnEntityOnGroundPos("CamoNet", GetPosition());
72 SpawnEntityOnGroundPos("BarbedWire", GetPosition());
73 SpawnEntityOnGroundPos("BarbedWire", GetPosition());
74 SpawnEntityOnGroundPos("MetalWire", GetPosition());
75 SpawnEntityOnGroundPos("CombinationLock", GetPosition());
76 SpawnEntityOnGroundPos("WoodenPlank", GetPosition());
77 SpawnEntityOnGroundPos("WoodenPlank", GetPosition());
78 SpawnEntityOnGroundPos("WoodenPlank", GetPosition());
79 SpawnEntityOnGroundPos("WoodenPlank", GetPosition());
80 }

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

◆ OnDebugSpawn() [2/4]

override void OnDebugSpawn ( )
inlineprivate
75 {
76 SpawnEntityOnGroundPos("Shovel", GetPosition());
77 SpawnEntityOnGroundPos("Hammer", GetPosition());
78 SpawnEntityOnGroundPos("Pliers", GetPosition());
79
80 for (int i0 = 0; i0 < 4; ++i0)
81 {
82 SpawnEntityOnGroundPos("LongWoodenStick", GetPosition());
83 }
84
85 for (int i1 = 0; i1 < 8; ++i1)
86 {
87 SpawnEntityOnGroundPos("TannedLeather", GetPosition());
88 }
89
90 for (int i2 = 0; i2 < 4; ++i2)
91 {
92 SpawnEntityOnGroundPos("Fabric", GetPosition());
93 }
94
95 for (int i3 = 0; i3 < 50; ++i3)
96 {
97 SpawnEntityOnGroundPos("WoodenStick", GetPosition());
98 }
99 }

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

◆ OnDebugSpawn() [3/4]

override void OnDebugSpawn ( )
inlineprivate
69 {
70 SpawnEntityOnGroundPos("SledgeHammer", GetPosition());
71 SpawnEntityOnGroundPos("Hammer", GetPosition());
72 SpawnEntityOnGroundPos("Shovel", GetPosition());
73
74 Nail nails = Nail.Cast(SpawnEntityOnGroundPos("Nail", GetPosition()));
75 nails.SetQuantity(60);
76 SpawnEntityOnGroundPos("Rope", GetPosition());
77 SpawnEntityOnGroundPos("MetalWire", GetPosition());
78 SpawnEntityOnGroundPos("Flag_DayZ", GetPosition());
79
80 for (int i0 = 0; i0 < 32; i0++)
81 {
82 SpawnEntityOnGroundPos("Stone", GetPosition());
83 }
84
85 for (int i1 = 0; i1 < 10; i1++)
86 {
87 SpawnEntityOnGroundPos("WoodenLog", GetPosition());
88 }
89 }

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

◆ OnDebugSpawn() [4/4]

override void OnDebugSpawn ( )
inlineprivate
58 {
59 SpawnEntityOnGroundPos("Shovel", GetPosition());
60 SpawnEntityOnGroundPos("Hammer", GetPosition());
61 SpawnEntityOnGroundPos("Hammer", GetPosition());
62 SpawnEntityOnGroundPos("Hammer", GetPosition());
63 SpawnEntityOnGroundPos("Hammer", GetPosition());
64 SpawnEntityOnGroundPos("Pliers", GetPosition());
65
66 for (int i0 = 0; i0 < 30; i0++)
67 {
68 SpawnEntityOnGroundPos("WoodenPlank", GetPosition());
69 }
70
71 for (int i1 = 0; i1 < 10; i1++)
72 {
73 SpawnEntityOnGroundPos("WoodenLog", GetPosition());
74 }
75
76 for (int i2 = 0; i2 < 15; i2++)
77 {
78 SpawnEntityOnGroundPos("Nail", GetPosition());
79 }
80
81 for (int i3 = 0; i3 < 9; i3++)
82 {
83 SpawnEntityOnGroundPos("CamoNet", GetPosition());
84 }
85
86 for (int i4 = 0; i4 < 6; i4++)
87 {
88 SpawnEntityOnGroundPos("BarbedWire", GetPosition());
89 }
90 }

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

◆ OnPlacementComplete() [1/4]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate
20 {
21 super.OnPlacementComplete( player, position, orientation );
22
23 if ( GetGame().IsServer() )
24 {
25 //Create fence
26
27 Fence fence = Fence.Cast( GetGame().CreateObjectEx( "Fence", GetPosition(), ECE_PLACE_ON_SURFACE ) );
28 fence.SetPosition( position );
29 fence.SetOrientation( orientation );
30
31 //make the kit invisible, so it can be destroyed from deploy UA when action ends
32 HideAllSelections();
33
34 SetIsDeploySound( true );
35 }
36 }
void SetIsDeploySound(bool is_deploy_sound)
Definition ItemBase.c:9038

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

◆ OnPlacementComplete() [2/4]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate
19 {
20 super.OnPlacementComplete( player, position, orientation );
21
22 if ( GetGame().IsServer() )
23 {
24 //Create shelter site
25 ShelterSite site = ShelterSite.Cast( GetGame().CreateObjectEx( "ShelterSite", GetPosition(), ECE_PLACE_ON_SURFACE ) );
26 site.SetPosition( position );
27 site.SetOrientation( orientation );
28
29 //make the kit invisible, so it can be destroyed from deploy UA when action ends
30 HideAllSelections();
31
32 SetIsDeploySound( true );
33 }
34 }

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

◆ OnPlacementComplete() [3/4]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate
35 {
36 super.OnPlacementComplete( player, position, orientation );
37
38 if ( GetGame().IsServer() )
39 {
40 //Create TerritoryFlag
41 TerritoryFlag totem = TerritoryFlag.Cast( GetGame().CreateObjectEx( "TerritoryFlag", GetPosition(), ECE_PLACE_ON_SURFACE ) );
42 totem.SetPosition( position );
43 totem.SetOrientation( orientation );
44
45 //make the kit invisible, so it can be destroyed from deploy UA when action ends
46 HideAllSelections();
47
48 SetIsDeploySound( true );
49 }
50 }

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

◆ OnPlacementComplete() [4/4]

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate
17 {
18 super.OnPlacementComplete( player, position, orientation );
19
20 if ( GetGame().IsServer() )
21 {
22 //Create watchtower
23 Watchtower watchtower = Watchtower.Cast( GetGame().CreateObjectEx( "Watchtower", GetPosition(), ECE_PLACE_ON_SURFACE ) );
24 watchtower.SetPosition( position );
25 watchtower.SetOrientation( orientation );
26
27 //make the kit invisible, so it can be destroyed from deploy UA when action ends
28 HideAllSelections();
29
30 SetIsDeploySound( true );
31 }
32 }

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

◆ PlacementCanBeRotated()

override bool PlacementCanBeRotated ( )
inlineprivate
4 {
5 return false;
6 }

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