![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Go to the source code of this file.
Data Structures | |
| class | StomachItem |
Functions | |
| void | AddToStomach (string class_name, float amount, int food_stage=0, int agents=0, float temperature=0) |
| void | ClearContents () |
| void | DigestAgents (int agents, float quantity) |
| int | GetAgentTransferFilter () |
| static string | GetClassnameFromID (int id) |
| int | GetDebugObject (array< ref Param > object_out) |
| int | GetDigestingType () |
| static int | GetIDFromClassname (string name) |
| float | GetStomachTemperature () |
| float | GetStomachVolume () |
| int | GetStorageVersion () |
| float | GetVolumeContainingAgent (eAgents agent) |
| float | GetVolumeContainingAgent01 (eAgents agent) |
| static bool | InitData () |
| bool | IsDigesting () |
| bool | OnStoreLoad (ParamsReadContext ctx, int version) |
| void | OnStoreSave (ParamsWriteContext ctx) |
| void | PlayerStomach (PlayerBase player) |
| void | PrintUpdate () |
| void | ProcessNutrients (float delta_time) |
| void | ReduceContents (float percent) |
| static void | RegisterItem (string classname, int id) |
| void | SetAgentTransferFilter (int filter_agents) |
| void | Update (float delta_time) |
| void | UpdateStomachTemperature () |
Variables | |
| const int | ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1 |
| const int | ACCEPTABLE_QUANTITY_MAX = 32768 |
| static int | CHECKSUM |
| const int | DIGESTING_ENERGY = 2 |
| class StomachItem | DIGESTING_WATER = 1 |
| const float | DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED |
| const int | id_bit_offset = 4 |
| int | m_AgentTransferFilter |
| bool | m_Digesting |
| int | m_DigestingType |
| static ref map< int, string > | m_IDsToNames = new map<int, string> |
| static const bool | m_InitData = PlayerStomach.InitData() |
| static ref map< string, int > | m_NamesToIDs = new map<string, int> |
| PlayerBase | m_Player |
| ref array< ref StomachItem > | m_StomachContents = new array<ref StomachItem> |
| float | m_StomachTemperature |
| float | m_StomachVolume |
| const int | quantity_bit_offset = 16 |
| const int | STORAGE_VERSION = 106 |
|
protected |
Definition at line 401 of file playerstomach.c.
References ACCEPTABLE_FOODSTAGE_MAX, ACCEPTABLE_QUANTITY_MAX, StomachItem::AddAgents(), StomachItem::AddAmount(), StomachItem::AddTemperature(), class_name, NutritionalProfile::GetAgents(), StomachItem::GetClassName(), StomachItem::GetFoodStage(), GetIDFromClassname(), Edible_Base::GetNutritionalProfile(), NutritionalProfile::IsLiquid(), StomachItem::m_Agents, StomachItem::m_Amount, m_StomachContents, and UpdateStomachTemperature().
Referenced by OnStoreLoad().
|
protected |
Definition at line 158 of file playerstomach.c.
References m_StomachContents, m_StomachTemperature, and m_StomachVolume.
Definition at line 340 of file playerstomach.c.
References Math::Log2(), m_AgentTransferFilter, Math::RandomFloatInclusive(), PlayerConstants::STOMACH_DIGEST_AGENT_RANDOM_MAX, and PlayerConstants::STOMACH_DIGEST_AGENT_RANDOM_MIN.
Referenced by ProcessNutrients().
|
protected |
Definition at line 184 of file playerstomach.c.
References m_AgentTransferFilter.
Definition at line 197 of file playerstomach.c.
References m_IDsToNames.
Referenced by OnStoreLoad().
Definition at line 518 of file playerstomach.c.
References m_StomachContents, m_StomachTemperature, m_StomachVolume, and PlayerStomach().
|
protected |
Definition at line 265 of file playerstomach.c.
References m_DigestingType.
Definition at line 202 of file playerstomach.c.
References m_NamesToIDs, and name.
Referenced by AddToStomach().
|
protected |
Definition at line 153 of file playerstomach.c.
References m_StomachTemperature.
|
protected |
Definition at line 148 of file playerstomach.c.
References m_StomachVolume.
Referenced by GetVolumeContainingAgent01().
|
protected |
Definition at line 255 of file playerstomach.c.
References STORAGE_VERSION.
Definition at line 360 of file playerstomach.c.
References m_StomachContents.
Referenced by GetVolumeContainingAgent01().
Definition at line 372 of file playerstomach.c.
References GetStomachVolume(), GetVolumeContainingAgent(), and Math::InverseLerp().
|
staticprotected |
Definition at line 209 of file playerstomach.c.
References g_Game, path, RegisterItem(), and x.
|
protected |
Definition at line 260 of file playerstomach.c.
References m_DigestingType.
|
protected |
Definition at line 471 of file playerstomach.c.
References AddToStomach(), CHECKSUM, GetClassnameFromID(), id_bit_offset, Math::Pow(), Print(), quantity_bit_offset, and Serializer::Read().
|
protected |
Definition at line 449 of file playerstomach.c.
References StomachItem::GetTemperature(), id_bit_offset, StomachItem::m_Agents, StomachItem::m_Amount, StomachItem::m_ClassName, StomachItem::m_FoodStage, m_StomachContents, PlayerStomach(), quantity_bit_offset, and Serializer::Write().
|
protected |
Definition at line 142 of file playerstomach.c.
Referenced by GetDebugObject(), ManBase::GetStomach(), ManBase::Init(), OnStoreSave(), HungerMdfr::OnTick(), ThirstMdfr::OnTick(), and HudDebugWinBase::SetContentValues().
|
protected |
Definition at line 381 of file playerstomach.c.
References m_StomachContents, m_StomachVolume, and Print().
|
protected |
try amount from nutritions/food stage first
food poisoning specific override by bloody hands
Definition at line 294 of file playerstomach.c.
References PlayerConstants::BLOODY_HANDS_FOOD_POISON_AGENT_INCREMENT, DigestAgents(), DIGESTING_ENERGY, DIGESTING_WATER, DIGESTION_POINTS, StomachItem::m_Agents, NutritionalProfile::m_AgentsPerDigest, m_DigestingType, StomachItem::m_Profile, m_StomachContents, m_StomachVolume, Math::Max(), StomachItem::ProcessDigestion(), and UpdateStomachTemperature().
Referenced by Update().
|
protected |
Definition at line 166 of file playerstomach.c.
References Math::Clamp(), m_StomachContents, and m_StomachVolume.
Definition at line 189 of file playerstomach.c.
References CHECKSUM, string::Hash(), m_IDsToNames, and m_NamesToIDs.
Referenced by InitData().
|
protected |
Definition at line 179 of file playerstomach.c.
References m_AgentTransferFilter.
|
protected |
Definition at line 289 of file playerstomach.c.
References ProcessNutrients().
|
protected |
Definition at line 270 of file playerstomach.c.
References StomachItem::GetTemperature(), m_StomachContents, and m_StomachTemperature.
Referenced by AddToStomach(), and ProcessNutrients().
| const int ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1 |
Definition at line 128 of file playerstomach.c.
Referenced by AddToStomach().
| const int ACCEPTABLE_QUANTITY_MAX = 32768 |
Definition at line 127 of file playerstomach.c.
Referenced by AddToStomach().
|
static |
Definition at line 125 of file playerstomach.c.
Referenced by OnStoreLoad(), and RegisterItem().
| const int DIGESTING_ENERGY = 2 |
Definition at line 121 of file playerstomach.c.
Referenced by ProcessNutrients().
| class StomachItem DIGESTING_WATER = 1 |
Referenced by ProcessNutrients().
| const float DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED |
Definition at line 126 of file playerstomach.c.
Referenced by ProcessNutrients().
| const int id_bit_offset = 4 |
Definition at line 124 of file playerstomach.c.
Referenced by OnStoreLoad(), and OnStoreSave().
| int m_AgentTransferFilter |
Definition at line 133 of file playerstomach.c.
Referenced by DigestAgents(), GetAgentTransferFilter(), and SetAgentTransferFilter().
| bool m_Digesting |
Definition at line 134 of file playerstomach.c.
| int m_DigestingType |
Definition at line 135 of file playerstomach.c.
Referenced by GetDigestingType(), IsDigesting(), and ProcessNutrients().
Definition at line 130 of file playerstomach.c.
Referenced by GetClassnameFromID(), and RegisterItem().
|
static |
Definition at line 131 of file playerstomach.c.
Definition at line 129 of file playerstomach.c.
Referenced by GetIDFromClassname(), and RegisterItem().
Definition at line 136 of file playerstomach.c.
| ref array<ref StomachItem> m_StomachContents = new array<ref StomachItem> |
Definition at line 132 of file playerstomach.c.
Referenced by AddToStomach(), ClearContents(), GetDebugObject(), GetVolumeContainingAgent(), OnStoreSave(), PrintUpdate(), ProcessNutrients(), ReduceContents(), and UpdateStomachTemperature().
|
protected |
Definition at line 138 of file playerstomach.c.
Referenced by ClearContents(), GetDebugObject(), GetStomachTemperature(), and UpdateStomachTemperature().
| float m_StomachVolume |
Definition at line 137 of file playerstomach.c.
Referenced by ClearContents(), GetDebugObject(), GetStomachVolume(), PrintUpdate(), ProcessNutrients(), and ReduceContents().
| const int quantity_bit_offset = 16 |
Definition at line 123 of file playerstomach.c.
Referenced by OnStoreLoad(), and OnStoreSave().
|
protected |
Definition at line 139 of file playerstomach.c.