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

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

set< intGetAttachmentExclusionInitSlotValue (int slotId)
 

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

void PumpkinHelmet ()
 
override void OnMovedInsideCargo (EntityAI container)
 
override void OnMovedWithinCargo (EntityAI container)
 
override void OnRemovedFromCargo (EntityAI container)
 
override void EOnInit (IEntity other, int extra)
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
 
void UpdateGlowState ()
 
override void UpdateNVGStatus (PlayerBase player, bool attaching=false, bool force_disable=false)
 
- Закрытые члены унаследованные от HelmetBase
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
void InitGlobalExclusionValues ()
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 
set< intGetAttachmentExclusionInitSlotValue (int slotId)
 

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

Конструктор(ы)

◆ PumpkinHelmet()

void PumpkinHelmet ( )
inlineprivate
6 {
7 SetEventMask(EntityEvent.INIT); // Enable EOnInit event
8 }
EntityEvent
Entity events for event-mask, or throwing event from code.
Definition EnEntity.c:45

Методы

◆ EEHealthLevelChanged()

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprivate
38 {
39 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
40
42 }
Definition EntityAI.c:95
void UpdateGlowState()
Definition PumpkinHelmet.c:44

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

◆ EOnInit()

override void EOnInit ( IEntity other,
int extra )
inlineprivate
26 {
28 }

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

◆ GetAttachmentExclusionInitSlotValue()

set< int > GetAttachmentExclusionInitSlotValue ( int slotId)
inlineprotected
96 {
97 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
98 if (slotId == InventorySlots.HEADGEAR)
99 {
100 ret.Insert(EAttExclusions.EXCLUSION_HEADGEAR_HELMET_0);
101
102 ret.Insert(EAttExclusions.EXCLUSION_MASK_1);
103 ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
104 ret.Insert(EAttExclusions.EXCLUSION_HEADSTRAP_0);
105
106 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
107 }
108 return ret;
109 }
provides access to slot configuration
Definition InventorySlots.c:6

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprivate
31 {
32 super.OnItemLocationChanged( old_owner, new_owner);
33
35 }

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

◆ OnMovedInsideCargo()

override void OnMovedInsideCargo ( EntityAI container)
inlineprivate
11 {
13 }

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

◆ OnMovedWithinCargo()

override void OnMovedWithinCargo ( EntityAI container)
inlineprivate
16 {
18 }

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

◆ OnRemovedFromCargo()

override void OnRemovedFromCargo ( EntityAI container)
inlineprivate
21 {
23 }

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

◆ UpdateGlowState()

void UpdateGlowState ( )
inlineprivate
45 {
46 // Makes sure PumpkinHelmet doesn't glow when it's attached on head, or it's inside cargo.
47
48 bool do_glow = true;
49
50 if ( IsDamageDestroyed() )
51 {
52 do_glow = false;
53 }
54 else
55 {
56 int id = InventorySlots.HEADGEAR;
58 GetInventory().GetCurrentInventoryLocation( IL );
59
60 int id_2 = IL.GetSlot();
61 int id_cargo = IL.GetIdx();
62
63 if ( id == id_2) // Pumpkin is attached on head
64 do_glow = false;
65
66 if ( id_cargo != -1 ) // Pumpkin is in cargo
67 do_glow = false;
68 }
69
70 SetPilotLight(do_glow);
71 }
bool IsDamageDestroyed(ActionTarget target)
Definition ActionBase.c:913
InventoryLocation.
Definition InventoryLocation.c:28

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

Используется в EEHealthLevelChanged(), EOnInit(), OnItemLocationChanged(), OnMovedInsideCargo(), OnMovedWithinCargo() и OnRemovedFromCargo().

◆ UpdateNVGStatus()

override void UpdateNVGStatus ( PlayerBase player,
bool attaching = false,
bool force_disable = false )
inlineprivate
74 {
75 if ( !GetGame().IsDedicatedServer() ) //SP only
76 {
77 if (force_disable)
78 {
79 player.RemoveActiveNV(NVTypes.NV_PUMPKIN);
80 }
81 else
82 {
83 if ( attaching && (!player.IsNVGWorking() || player.GetNVType() != NVTypes.NV_PUMPKIN) )
84 {
85 player.AddActiveNV(NVTypes.NV_PUMPKIN);
86 }
87 else if ( !attaching && player.IsNVGWorking() )
88 {
89 player.RemoveActiveNV(NVTypes.NV_PUMPKIN);
90 }
91 }
92 }
93 }
NVTypes
Definition DayZPlayerCamera_Base.c:55
proto native CGame GetGame()

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


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