DayZ 1.24
Loading...
Searching...
No Matches
Hand_States.c File Reference

Go to the source code of this file.

Classes

class  HandStateEquipped
 

Variables

 UNKNOWN = 0
 
 Empty = 1
 
 Equipped = 2
 
enum  HandStateID
 states More...
 
HandStateEquipped OnEntry
 
enum HandStateID OnEntry (HandEventBase e)
 
override void OnExit (HandEventBase e)
 
override int GetCurrentStateID ()
 

Enumeration Type Documentation

◆ HandStateID

states

Definition at line 3 of file Hand_States.c.

4{
5 UNKNOWN = 0,
6 Empty = 1,
7 Equipped = 2,
8}
UNKNOWN
Definition Hand_States.c:13
Empty
Definition Hand_States.c:14
Equipped
Definition Hand_States.c:15

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 29 of file Hand_States.c.

29{ return HandStateID.Empty; }
HandStateID
states
Definition Hand_States.c:4

◆ OnEntry()

Definition at line 1 of file Hand_States.c.

13 {
14 if (e)
15 {
16 switch (e.m_EventID)
17 {
18 case HandEventID.MOVETO:
19 if (HumanInventory.HasInventoryReservation(e.GetSrcEntity(), e.GetDst()))
20 HumanInventory.ClearInventoryReservation(e.GetSrcEntity(), e.GetDst());
21 break;
22
23 default: {};
24 }
25 }
26 super.OnEntry(e);
27 }
HandEventID
events
Definition Hand_Events.c:7
static proto native bool ClearInventoryReservation(EntityAI item, InventoryLocation dst)
static proto native bool HasInventoryReservation(EntityAI item, InventoryLocation dst)
Internally: HasInventoryReservationEx(item, dst, FindInventoryReservationMode.LEGACY,...
inventory for plain man/human

◆ OnExit()

Definition at line 28 of file Hand_States.c.

28{ super.OnExit(e); }

Variable Documentation

◆ Empty

◆ Equipped

Equipped = 2

Definition at line 15 of file Hand_States.c.

◆ OnEntry

override void OnEntry

Definition at line 283 of file WeaponChambering.c.

286{
287 override void OnEntry(WeaponEventBase e)
288 {
289 super.OnEntry(e);
290 if (e)
291 {
292 if (m_srcMagazine)
293 {
294 m_magazineType = m_srcMagazine.GetType();
295
296 if (m_srcMagazine.ServerAcquireCartridge(m_damage, m_type))
HandStateEquipped OnEntry
Magazine m_srcMagazine
signalize mechanism manipulation
Definition Events.c:35

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 13 of file Hand_States.c.