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

◆ IsRemoteWeapon()

bool Weapon::IsRemoteWeapon ( )
inlineprotected

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

1225 {
1226 InventoryLocation il = new InventoryLocation;
1227 if (GetInventory().GetCurrentInventoryLocation(il))
1228 {
1229 EntityAI parent = il.GetParent();
1230 DayZPlayer dayzp = DayZPlayer.Cast(parent);
1231 if (il.GetType() == InventoryLocationType.HANDS && dayzp)
1232 {
1233 bool remote = dayzp.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE;
1234 return remote;
1235 }
1236 }
1237 return true;
1238 }
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().