DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
SurrenderDummyItem.c
См. документацию.
1[Obsolete("1.30: no replacement - no longer in use")]
2class SurrenderDummyItem extends DummyItem
3{
4 override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
5 {
6 super.OnItemLocationChanged(old_owner,new_owner);
7
8 if (old_owner)
9 {
10 PlayerBase pb;
11 if (Class.CastTo(pb, old_owner))
12 {
13 EmoteManager em = pb.GetEmoteManager();
14 if (em)
15 {
16 pb.SetSurrenderState(false);
17 em.SetEmoteLockState(false);
18 }
19 }
20
21 DeleteSafe();
22 }
23 else if (!old_owner && !new_owner)
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:160
Super root of all classes in Enforce script.
Определения EnScript.c:11
override bool CanSwapEntities(EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
Определения SurrenderDummyItem.c:29
override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
Определения SurrenderDummyItem.c:4
Определения SCARH.c:98
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.
void Obsolete(string msg="")
Определения EnScript.c:371