Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
surrenderdummyitem.c
Go to the documentation of this file.
1
class
SurrenderDummyItem
extends
DummyItem
2
{
3
protected
PlayerBase
m_player
;
4
5
void
~SurrenderDummyItem
()
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
}
Class
Super root of all classes in Enforce script.
Definition
enscript.c:11
DummyItem
Definition
magnum.c:397
DummyItem::OnItemLocationChanged
override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
Definition
surrenderdummyitem.c:9
DummyItem::~SurrenderDummyItem
void ~SurrenderDummyItem()
Definition
surrenderdummyitem.c:5
DummyItem::m_player
PlayerBase m_player
Definition
surrenderdummyitem.c:3
DummyItem::CanSwapEntities
override bool CanSwapEntities(EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
Definition
surrenderdummyitem.c:29
EntityAI
Definition
inventoryitem.c:2
InventoryLocation
InventoryLocation.
Definition
inventorylocation.c:30
PlayerBase
Definition
playerbaseclient.c:2
EmoteManager
void EmoteManager(PlayerBase player)
Definition
emotemanager.c:168
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
Games
Dayz
scripts
4_world
entities
itembase
surrenderdummyitem.c
Generated by
1.17.0