Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
undergroundstash.c
Go to the documentation of this file.
1class UndergroundStash extends ItemBase
2{
3 void UndergroundStash() {}
4
5 void PlaceOnGround()
6 {
7 vector pos = GetPosition();
8 pos[1] = GetGame().SurfaceRoadY(pos[0], pos[2]);
9 pos[1] = pos[1] + 0.22;
10 SetPosition(pos);
11 }
12
13 ItemBase GetStashedItem()
14 {
15 ItemBase item;
16 if (GetInventory().GetCargo().GetItemCount() > 0)
17 {
18 item = ItemBase.Cast(GetInventory().GetCargo().GetItem(0));
19 }
20
21 return item;
22 }
23
24 override bool CanDisplayCargo()
25 {
26 return false;
27 }
28
29 override bool CanPutInCargo(EntityAI parent)
30 {
31 return false;
32 }
33
34 override bool CanReleaseCargo(EntityAI cargo)
35 {
36 return false;
37 }
38
39 override bool CanReceiveItemIntoHands(EntityAI item_to_hands)
40 {
41 return false;
42 }
43
44 override bool CanSaveItemInHands(EntityAI item_in_hands)
45 {
46 return false;
47 }
48
49 override bool CanPutIntoHands(EntityAI parent)
50 {
51 return false;
52 }
53
54 override bool IsInventoryVisible()
55 {
56 return false;
57 }
58}
59
60class UndergroundStashSnow extends UndergroundStash
61{
62}
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
proto native float SurfaceRoadY(float x, float z, RoadSurfaceDetection rsd=RoadSurfaceDetection.LEGACY)
override bool CanPutInCargo(EntityAI parent)
override bool CanPutIntoHands(EntityAI parent)
proto native CGame GetGame()
proto native void SetPosition(vector position)
Set the world position of the Effect.
Definition effect.c:463
class JsonUndergroundAreaTriggerData GetPosition
override bool CanDisplayCargo()
Definition itembase.c:8943
EntityAI GetItem()