DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
SurrenderDummyItem.c
См. документацию.
1class SurrenderDummyItem extends DummyItem
2{
4
6 {
7 }
8
9 override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
10 {
11 super.OnItemLocationChanged(old_owner,new_owner);
12
13 if (old_owner)
14 {
15 PlayerBase pb;
16 if (Class.CastTo(pb, old_owner))
17 {
18 EmoteManager em = pb.GetEmoteManager();
19 if (em)
20 {
21 em.ForceSurrenderState(false);
22 }
23 }
24
25 DeleteSafe();
26 }
27 }
28
29 override bool CanSwapEntities(EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
30 {
31 return false;
32 }
33}
void EmoteManager(PlayerBase player)
Определения EmoteManager.c:168
Super root of all classes in Enforce script.
Определения EnScript.c:11
void ~SurrenderDummyItem()
Определения SurrenderDummyItem.c:5
PlayerBase m_player
Определения SurrenderDummyItem.c:3
override bool CanSwapEntities(EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
Определения SurrenderDummyItem.c:29
override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
Определения SurrenderDummyItem.c:9
Определения Magnum.c:397
InventoryLocation.
Определения InventoryLocation.c:30
Определения PlayerBaseClient.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.