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

◆ IsRemoteWeapon()

bool Weapon::IsRemoteWeapon ( )
inlineprotected

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

1219 {
1220 InventoryLocation il = new InventoryLocation;
1221 if (GetInventory().GetCurrentInventoryLocation(il))
1222 {
1223 EntityAI parent = il.GetParent();
1224 DayZPlayer dayzp = DayZPlayer.Cast(parent);
1225 if (il.GetType() == InventoryLocationType.HANDS && dayzp)
1226 {
1227 bool remote = dayzp.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE;
1228 return remote;
1229 }
1230 }
1231 return true;
1232 }
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:1084

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