Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
miscgameplayfunctions.c File Reference

Go to the source code of this file.

Data Structures

class  ReplaceItemWithNewLambda
 adds automatic QuickBar handling More...
 
class  TurnItemIntoItemLambda
 
class  DropEquipAndDestroyRootLambda
 this one is a bit special: it drops all items and destroys the ex-root of the hierarchy More...
 
class  DestroyItemInCorpsesHandsAndCreateNewOnGndLambda
 

Enumerations

enum  TransferInventoryResult { Ok, DroppedSome }
 
enum  ThrowEntityFlags
 

Functions

class TurnItemIntoItemLambdaAnimSysNotifyLambda extends TurnItemIntoItemLambda OnSuccess (EntityAI new_item)
 
void DropEquipAndDestroyRootLambda (EntityAI old_item, string new_item_type, PlayerBase player)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 
void MoveEquipToExistingItemAndDestroyOldRootLambda (EntityAI old_item, string new_item_type, PlayerBase player, EntityAI new_item)
 
override protected void RemoveNetworkObjectInfo ()
 
override protected void UndoRemoveNetworkObjectInfo ()
 
override protected void CreateNetworkObjectInfo (EntityAI new_item)
 
enum ThrowEntityFlags Truncate (float value, int decimals=2)
 truncate float to specified precision More...
 
void IsObjectObstructedCache (vector rayCastStart, int totalObjects)
 
void ClearCache ()
 

Variables

PlayerBase m_Player
 
EntityAI m_NewItem
 
 NONE = 0
 
 SPLIT = 1
 
DestroyItemInCorpsesHandsAndCreateNewOnGndLambda RaycastStart = "0 0 0"
 
int TotalObjects = 0
 
vector ObjectCenterPos = "0 0 0"
 
vector ObjectContactPos = "0 0 0"
 
vector ObjectContactDir = "0 0 0"
 
int ContactComponent = -1
 
ref array< ref RaycastRVResultHitProxyObjects = new array<ref RaycastRVResult>
 
ref set< ObjectHitObjects = new set<Object>
 

Enumeration Type Documentation

◆ ThrowEntityFlags

Definition at line 207 of file miscgameplayfunctions.c.

◆ TransferInventoryResult

Enumerator
Ok 
DroppedSome 

Definition at line 202 of file miscgameplayfunctions.c.

Function Documentation

◆ ClearCache()

void ClearCache ( )

Definition at line 1726 of file miscgameplayfunctions.c.

◆ CopyOldPropertiesToNew()

override void MoveEquipToExistingItemAndDestroyOldRootLambda::CopyOldPropertiesToNew ( notnull EntityAI  old_item,
EntityAI  new_item 
)

We don't care if a valid transform couldn't be found, we just want to preferably use it instead of placing on the old item

Definition at line 168 of file miscgameplayfunctions.c.

◆ CreateNetworkObjectInfo()

override protected void CreateNetworkObjectInfo ( EntityAI  new_item)

Definition at line 195 of file miscgameplayfunctions.c.

◆ DropEquipAndDestroyRootLambda()

void MoveEquipToExistingItemAndDestroyOldRootLambda::DropEquipAndDestroyRootLambda ( EntityAI  old_item,
string  new_item_type,
PlayerBase  player 
)

Definition at line 163 of file miscgameplayfunctions.c.

◆ IsObjectObstructedCache()

void IsObjectObstructedCache ( vector  rayCastStart,
int  totalObjects 
)

Definition at line 1719 of file miscgameplayfunctions.c.

◆ MoveEquipToExistingItemAndDestroyOldRootLambda()

void MoveEquipToExistingItemAndDestroyOldRootLambda ( EntityAI  old_item,
string  new_item_type,
PlayerBase  player,
EntityAI  new_item 
)

Definition at line 168 of file miscgameplayfunctions.c.

◆ OnSuccess()

class TurnItemIntoItemLambdaAnimSysNotifyLambda extends TurnItemIntoItemLambda OnSuccess ( EntityAI  new_item)

Definition at line 105 of file miscgameplayfunctions.c.

◆ RemoveNetworkObjectInfo()

override protected void RemoveNetworkObjectInfo ( )

Definition at line 176 of file miscgameplayfunctions.c.

◆ Truncate()

enum ThrowEntityFlags Truncate ( float  value,
int  decimals = 2 
)

truncate float to specified precision

Definition at line 216 of file miscgameplayfunctions.c.

◆ UndoRemoveNetworkObjectInfo()

override protected void UndoRemoveNetworkObjectInfo ( )

Definition at line 181 of file miscgameplayfunctions.c.

Variable Documentation

◆ ContactComponent

int ContactComponent = -1

Definition at line 1715 of file miscgameplayfunctions.c.

◆ HitObjects

ref set<Object> HitObjects = new set<Object>

Definition at line 1717 of file miscgameplayfunctions.c.

◆ HitProxyObjects

ref array<ref RaycastRVResult> HitProxyObjects = new array<ref RaycastRVResult>

Definition at line 1716 of file miscgameplayfunctions.c.

◆ m_NewItem

EntityAI m_NewItem

Definition at line 166 of file miscgameplayfunctions.c.

◆ m_Player

m_Player

Definition at line 161 of file miscgameplayfunctions.c.

◆ NONE

@ NONE = 0

Definition at line 196 of file miscgameplayfunctions.c.

◆ ObjectCenterPos

vector ObjectCenterPos = "0 0 0"

Definition at line 1712 of file miscgameplayfunctions.c.

◆ ObjectContactDir

vector ObjectContactDir = "0 0 0"

Definition at line 1714 of file miscgameplayfunctions.c.

◆ ObjectContactPos

vector ObjectContactPos = "0 0 0"

Definition at line 1713 of file miscgameplayfunctions.c.

◆ RaycastStart

◆ SPLIT

SPLIT = 1

Definition at line 197 of file miscgameplayfunctions.c.

◆ TotalObjects

int TotalObjects = 0

Definition at line 1709 of file miscgameplayfunctions.c.