DayZ 1.24
|
Go to the source code of this file.
Classes | |
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 |
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 RaycastRVResult > | HitProxyObjects = new array<ref RaycastRVResult> |
ref set< Object > | HitObjects = new set<Object> |
|
protected |
Definition at line 197 of file MiscGameplayFunctions.c.
|
protected |
Definition at line 1363 of file MiscGameplayFunctions.c.
References FModulus(), and Math::Sin().
|
staticprotected |
Definition at line 747 of file MiscGameplayFunctions.c.
Referenced by ComplexBuildCollideCheckClient().
|
staticprotected |
Definition at line 752 of file MiscGameplayFunctions.c.
References GetGame().
Definition at line 1068 of file MiscGameplayFunctions.c.
Referenced by FilterObstructedObjectsByGrouping().
|
protected |
Definition at line 1643 of file MiscGameplayFunctions.c.
References ContactComponent, HitObjects, HitProxyObjects, ObjectCenterPos, ObjectContactDir, and ObjectContactPos.
|
staticprotected |
Definition at line 714 of file MiscGameplayFunctions.c.
References BuildCondition(), and Construction().
|
staticprotected |
Definition at line 709 of file MiscGameplayFunctions.c.
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 114 of file MiscGameplayFunctions.c.
|
staticprotected |
Spawns multiple piles of stackable ItemBase objects on ground (intended for generic use)
Definition at line 409 of file MiscGameplayFunctions.c.
References ECE_CREATEPHYSICS, ECE_PLACE_ON_SURFACE, ECE_UPDATEPATHGRAPH, Math::Floor(), g_Game, and GetGame().
|
staticprotected |
Definition at line 448 of file MiscGameplayFunctions.c.
References ECE_PLACE_ON_SURFACE, Math::Floor(), g_Game, and GetGame().
|
staticprotected |
Definition at line 475 of file MiscGameplayFunctions.c.
References ECE_PLACE_ON_SURFACE, Math::Floor(), g_Game, and GetGame().
Definition at line 185 of file MiscGameplayFunctions.c.
Definition at line 1346 of file MiscGameplayFunctions.c.
Definition at line 886 of file MiscGameplayFunctions.c.
References Math::Acos(), Math::Cos(), vector::Dot(), vector::Forward, GetGame(), and Math::Sin().
void MoveEquipToExistingItemAndDestroyOldRootLambda::DropEquipAndDestroyRootLambda | ( | EntityAI | old_item, |
string | new_item_type, | ||
PlayerBase | player ) |
Definition at line 109 of file MiscGameplayFunctions.c.
|
staticprotected |
group objects that are close to each other together
Definition at line 1074 of file MiscGameplayFunctions.c.
References Math::AbsFloat(), vector::Aside, CanIgnoreDistanceCheck(), Math::Cos(), vector::DistanceSq(), vector::Dot(), IsObjectObstructedCache(), IsObjectObstructedEx(), vector::RotateAroundZero(), Math::Sin(), SplitArrayIntoGroupsByDistance(), vector::Up, and Vector().
|
staticprotected |
Definition at line 1055 of file MiscGameplayFunctions.c.
Definition at line 1380 of file MiscGameplayFunctions.c.
References Math::ModFloat(), x, and y.
Referenced by Bobbing().
|
staticprotected |
Definition at line 1484 of file MiscGameplayFunctions.c.
References GetGame().
Fills the provided array with all children entities in hierarchy of this entity.
Definition at line 1578 of file MiscGameplayFunctions.c.
References IEntity::GetChildren().
|
staticprotected |
Definition at line 1463 of file MiscGameplayFunctions.c.
References vector::DistanceSq().
Definition at line 231 of file MiscGameplayFunctions.c.
References string::Format().
Definition at line 1538 of file MiscGameplayFunctions.c.
References GetName(), and INDEX_NOT_FOUND.
item heat isolation (from cfg)
item health (state)
item wetness
wet factor selection
health factor selection
apply factors
Definition at line 1003 of file MiscGameplayFunctions.c.
References GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_B_DAMAGED, GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_DAMAGED, GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_PRISTINE, GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_RUINED, GameConstants::ENVIRO_ISOLATION_HEALTHFACTOR_WORN, GameConstants::ENVIRO_ISOLATION_WETFACTOR_DAMP, GameConstants::ENVIRO_ISOLATION_WETFACTOR_DRENCHED, GameConstants::ENVIRO_ISOLATION_WETFACTOR_DRY, GameConstants::ENVIRO_ISOLATION_WETFACTOR_SOAKED, GameConstants::ENVIRO_ISOLATION_WETFACTOR_WET, GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_DAMP, GameConstants::STATE_DRENCHED, GameConstants::STATE_DRY, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED, GameConstants::STATE_SOAKING_WET, GameConstants::STATE_WET, and GameConstants::STATE_WORN.
Definition at line 585 of file MiscGameplayFunctions.c.
References PlayerConstants::METABOLIC_SPEED_ENERGY_BASAL, PlayerConstants::METABOLIC_SPEED_ENERGY_JOG, PlayerConstants::METABOLIC_SPEED_ENERGY_SPRINT, and PlayerConstants::METABOLIC_SPEED_ENERGY_WALK.
Definition at line 557 of file MiscGameplayFunctions.c.
|
staticprotected |
Definition at line 577 of file MiscGameplayFunctions.c.
Referenced by GetHeadingVector().
|
staticprotected |
Definition at line 567 of file MiscGameplayFunctions.c.
References Math::Cos(), GetHeadingAngle(), vector::Normalized(), Math::PI_HALF, Math::Sin(), and vector::Zero.
Definition at line 508 of file MiscGameplayFunctions.c.
References CachedObjectsArrays::ARRAY_FLOAT, CFG_WEAPONSPATH, class_name, and GetGame().
Definition at line 1518 of file MiscGameplayFunctions.c.
References GetGame().
|
staticprotected |
Definition at line 539 of file MiscGameplayFunctions.c.
References PROJECTED_CURSOR_DISTANCE, and DayZPhysics::RaycastRV().
Definition at line 855 of file MiscGameplayFunctions.c.
|
staticprotected |
Definition at line 522 of file MiscGameplayFunctions.c.
References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, class_name, and GetGame().
Definition at line 608 of file MiscGameplayFunctions.c.
References PlayerConstants::METABOLIC_SPEED_WATER_BASAL, PlayerConstants::METABOLIC_SPEED_WATER_JOG, PlayerConstants::METABOLIC_SPEED_WATER_SPRINT, and PlayerConstants::METABOLIC_SPEED_WATER_WALK.
Insert 'insert' behind index 'pos' of the 'base' string.
Definition at line 248 of file MiscGameplayFunctions.c.
Referenced by ValueToBar().
|
staticprotected |
Definition at line 1523 of file MiscGameplayFunctions.c.
References GetName().
|
staticprotected |
Definition at line 1221 of file MiscGameplayFunctions.c.
References GetGame(), GetPlayer(), IsObjectObstructedCache(), and IsObjectObstructedEx().
Definition at line 1636 of file MiscGameplayFunctions.c.
References RaycastStart, and TotalObjects.
Referenced by ActionTargets::FilterObstructedObjects(), FilterObstructedObjectsByGrouping(), IsObjectObstructed(), and ActionTargets::IsObstructed().
|
staticprotected |
Definition at line 1230 of file MiscGameplayFunctions.c.
References vector::DistanceSq(), g_Game, and IsObjectObstructedFilterEx().
Referenced by FilterObstructedObjectsByGrouping(), and IsObjectObstructed().
|
staticprotected |
Definition at line 1273 of file MiscGameplayFunctions.c.
|
staticprotected |
groups 'RaycastRVProxy' and 'RaycastRV' approaches into one method, allowes for comprehensive geometry override, if desired
Definition at line 1301 of file MiscGameplayFunctions.c.
References GetGame(), GetPlayer(), DayZPhysics::RaycastRV(), and DayZPhysics::RaycastRVProxy().
Referenced by IsObjectObstructedEx().
|
staticprotected |
Definition at line 1244 of file MiscGameplayFunctions.c.
References DayZPhysics::RaycastRVProxy().
|
staticprotected |
Check if player direction(based on cone of defined angle) is oriented to target position.
dir in cone or in a tip of cone
Definition at line 669 of file MiscGameplayFunctions.c.
References Math::AbsFloat(), Math::Acos(), vector::Dot(), and Math::RAD2DEG.
|
staticprotected |
Definition at line 821 of file MiscGameplayFunctions.c.
References IsUnderRoofEx().
|
staticprotected |
Definition at line 826 of file MiscGameplayFunctions.c.
References IsUnderRoofFromToCalculation(), and DayZPhysics::RaycastRV().
Referenced by IsUnderRoof().
|
staticprotected |
Definition at line 797 of file MiscGameplayFunctions.c.
References Vector().
Referenced by IsUnderRoofEx().
void MoveEquipToExistingItemAndDestroyOldRootLambda | ( | EntityAI | old_item, |
string | new_item_type, | ||
PlayerBase | player, | ||
EntityAI | new_item ) |
Definition at line 158 of file MiscGameplayFunctions.c.
References Empty, Error(), m_NewItem, and m_Player.
Referenced by ActionPlaceFireplaceIntoBarrel::OnExecuteServer().
Definition at line 1352 of file MiscGameplayFunctions.c.
References Debug::LogError().
Definition at line 631 of file MiscGameplayFunctions.c.
class TurnItemIntoItemLambdaAnimSysNotifyLambda extends TurnItemIntoItemLambda OnSuccess | ( | EntityAI | new_item | ) |
Definition at line 83 of file MiscGameplayFunctions.c.
|
staticprotected |
Definition at line 1553 of file MiscGameplayFunctions.c.
References Math3D::MatrixIdentity4().
|
protected |
|
staticprotected |
Definition at line 1385 of file MiscGameplayFunctions.c.
References Class::CastTo(), GameConstants::DAMAGE_BADLY_DAMAGED_VALUE, GameConstants::DAMAGE_DAMAGED_VALUE, GameConstants::DAMAGE_RUINED_VALUE, GameConstants::DAMAGE_WORN_VALUE, GetGame(), GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_RUINED, and GameConstants::STATE_WORN.
Definition at line 699 of file MiscGameplayFunctions.c.
References Math::Clamp().
|
staticprotected |
Definition at line 1588 of file MiscGameplayFunctions.c.
References g_Game.
|
staticprotected |
Definition at line 1187 of file MiscGameplayFunctions.c.
References vector::DistanceSq().
Referenced by FilterObstructedObjectsByGrouping().
|
staticprotected |
checks if we should teleport the player to a safe location and if so, performs the teleportation
Definition at line 1439 of file MiscGameplayFunctions.c.
References GetGame().
Definition at line 913 of file MiscGameplayFunctions.c.
References GetVelocity(), Math3D::MatrixToQuat(), Math::RandomFloat(), ThrowEntityFromInventory(), Vector(), and Math3D::YawPitchRollMatrix().
|
staticprotected |
Definition at line 946 of file MiscGameplayFunctions.c.
References dBodyApplyImpulse(), ECE_NONE, GetGame(), GameInventory::LocationCreateEntity(), and RF_DEFAULT.
Referenced by ThrowAllItemsInInventory().
|
staticprotected |
Definition at line 316 of file MiscGameplayFunctions.c.
References GetGame(), and GameInventory::LocationCanAddEntity().
|
staticprotected |
will transform item' variables, agents and other local scripted properties as well as any relevant non-scripted properties like health
Definition at line 259 of file MiscGameplayFunctions.c.
References GetGame().
|
staticprotected |
Definition at line 276 of file MiscGameplayFunctions.c.
References VARIABLE_QUANTITY.
|
staticprotected |
Definition at line 636 of file MiscGameplayFunctions.c.
References Error().
|
protected |
truncate float to specified precision
Definition at line 185 of file MiscGameplayFunctions.c.
Referenced by TruncateToS().
truncate float to specified precision, output as string
Definition at line 212 of file MiscGameplayFunctions.c.
References Truncate().
truncate float to specified precision
Definition at line 217 of file MiscGameplayFunctions.c.
References Math::Clamp(), Math::Floor(), Math::Pow(), and Vector().
|
staticprotected |
Definition at line 226 of file MiscGameplayFunctions.c.
|
staticprotected |
Definition at line 398 of file MiscGameplayFunctions.c.
References TurnItemInHandsIntoItemEx().
|
staticprotected |
Definition at line 403 of file MiscGameplayFunctions.c.
Referenced by TurnItemInHandsIntoItem().
|
staticprotected |
Definition at line 388 of file MiscGameplayFunctions.c.
References TurnItemIntoItemEx().
|
staticprotected |
Definition at line 393 of file MiscGameplayFunctions.c.
Referenced by TurnItemIntoItem().
|
protected |
|
staticprotected |
Definition at line 358 of file MiscGameplayFunctions.c.
References GetGame().
|
staticprotected |
Produces ACII "progress bar" based on an 0..1 'value' input.
Definition at line 237 of file MiscGameplayFunctions.c.
References Math::Clamp(), InsertAtPos(), Math::Lerp(), and Math::Round().
|
protected |
Definition at line 1632 of file MiscGameplayFunctions.c.
Referenced by ClearCache().
Definition at line 1634 of file MiscGameplayFunctions.c.
Referenced by ClearCache().
|
protected |
Definition at line 1633 of file MiscGameplayFunctions.c.
Referenced by ClearCache().
EntityAI m_NewItem |
Definition at line 156 of file MiscGameplayFunctions.c.
Referenced by CreateNetworkObjectInfo(), MoveEquipToExistingItemAndDestroyOldRootLambda(), RemoveNetworkObjectInfo(), and UndoRemoveNetworkObjectInfo().
m_Player |
Definition at line 107 of file MiscGameplayFunctions.c.
Referenced by ReplaceItemWithNewLambda::CopyOldPropertiesToNew(), ReplaceItemWithNewLambda::OnSuccess(), and DestroyItemInCorpsesHandsAndCreateNewOnGndLambda::RemoveOldItemFromLocation().
@ NONE = 0 |
Definition at line 207 of file MiscGameplayFunctions.c.
|
protected |
Definition at line 1629 of file MiscGameplayFunctions.c.
Referenced by ClearCache().
|
protected |
Definition at line 1631 of file MiscGameplayFunctions.c.
Referenced by ClearCache().
|
protected |
Definition at line 1630 of file MiscGameplayFunctions.c.
Referenced by ClearCache().
|
protected |
Referenced by IsObjectObstructedCache().
SPLIT = 1 |
Definition at line 208 of file MiscGameplayFunctions.c.
|
protected |
Definition at line 1626 of file MiscGameplayFunctions.c.
Referenced by IsObjectObstructedCache().