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

◆ GetViewIndex()

override int GetViewIndex ( )
protected

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

283 {
284 if ( MemoryPointExists( "invView2" ) )
285 {
287 GetInventory().GetCurrentInventoryLocation( il );
288 InventoryLocationType type = il.GetType();
289 switch ( type )
290 {
291 case InventoryLocationType.CARGO:
292 {
293 return 0;
294 }
295 case InventoryLocationType.ATTACHMENT:
296 {
297 return 1;
298 }
299 case InventoryLocationType.HANDS:
300 {
301 return 0;
302 }
303 case InventoryLocationType.GROUND:
304 {
305 // Different view index depending on deployment state
306 if ( GetState() == DEPLOYED )
307 return 1;
308 else if ( GetState() == TRIGGERED )
309 return 2;
310
311 // When folded
312 return 0;
313 }
314 case InventoryLocationType.PROXYCARGO:
315 {
316 return 0;
317 }
318 default:
319 {
320 if ( GetState() == DEPLOYED )
321 return 1;
322 else if ( GetState() == TRIGGERED )
323 return 2;
324
325 // When folded
326 return 0;
327 }
328 }
329 }
330 return 0;
331 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
static const int TRIGGERED
Определения Trap_TripWire.c:14
int GetState()
returns one of STATE_...
Определения Trap_TripWire.c:179
static const int DEPLOYED
Определения Trap_TripWire.c:13
proto native int GetType()
returns type of InventoryLocation
InventoryLocation.
Определения InventoryLocation.c:30

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