DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetViewIndex() [2/2]

override int TrapSpawnBase::GetViewIndex ( )
inlineprivate

См. определение в файле Trap_SmallFish.c строка 52

53 {
54 if ( MemoryPointExists( "invView2" ) )
55 {
56 InventoryLocation il = new InventoryLocation;
57 GetInventory().GetCurrentInventoryLocation( il );
59 switch ( type )
60 {
61 case InventoryLocationType.CARGO:
62 {
63 return 0;
64 }
65 case InventoryLocationType.ATTACHMENT:
66 {
67 return 1;
68 }
69 case InventoryLocationType.HANDS:
70 {
71 return 0;
72 }
73 case InventoryLocationType.GROUND:
74 {
75 // Different view index depending on deployment state
76 if ( IsDeployed() )
77 return 1;
78
79 // When folded
80 return 0;
81 }
82 case InventoryLocationType.PROXYCARGO:
83 {
84 return 0;
85 }
86 default:
87 {
88 if ( IsDeployed() )
89 return 1;
90
91 // When folded
92 return 0;
93 }
94 }
95 }
96 return 0;
97 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки InventoryLocation::GetType().