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

◆ IsRemoteWeapon()

bool Weapon::IsRemoteWeapon ( )
inlineprotected

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

1200 {
1201 InventoryLocation il = new InventoryLocation;
1202 if (GetInventory().GetCurrentInventoryLocation(il))
1203 {
1204 EntityAI parent = il.GetParent();
1205 DayZPlayer dayzp = DayZPlayer.Cast(parent);
1206 if (il.GetType() == InventoryLocationType.HANDS && dayzp)
1207 {
1208 bool remote = dayzp.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE;
1209 return remote;
1210 }
1211 }
1212 return true;
1213 }
class LogManager EntityAI
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native EntityAI GetParent()
returns parent of current inventory location
proto native int GetType()
returns type of InventoryLocation
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068

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