Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
playerstomach.c File Reference

Go to the source code of this file.

Classes

class  StomachItem
 

Functions

void PlayerStomach (PlayerBase player)
 
float GetStomachVolume ()
 
float GetStomachTemperature ()
 
void ClearContents ()
 
void ReduceContents (float percent)
 
void SetAgentTransferFilter (int filter_agents)
 
int GetAgentTransferFilter ()
 
int GetStorageVersion ()
 
bool IsDigesting ()
 
int GetDigestingType ()
 
void UpdateStomachTemperature ()
 
void Update (float delta_time)
 
void ProcessNutrients (float delta_time)
 
void DigestAgents (int agents, float quantity)
 
float GetVolumeContainingAgent (eAgents agent)
 
float GetVolumeContainingAgent01 (eAgents agent)
 
void PrintUpdate ()
 
void AddToStomach (string class_name, float amount, int food_stage=0, int agents=0, float temperature=0)
 
void OnStoreSave (ParamsWriteContext ctx)
 
bool OnStoreLoad (ParamsReadContext ctx, int version)
 
int GetDebugObject (array< ref Param > object_out)
 

Variables

class StomachItem DIGESTING_WATER = 1
 
const int DIGESTING_ENERGY = 2
 
const int quantity_bit_offset = 16
 
const int id_bit_offset = 4
 
const float DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED
 
const int ACCEPTABLE_QUANTITY_MAX = 32768
 
const int ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1
 
ref array< ref StomachItemm_StomachContents = new array<ref StomachItem>
 
int m_AgentTransferFilter
 
bool m_Digesting
 
int m_DigestingType
 
PlayerBase m_Player
 
float m_StomachVolume
 
float m_StomachTemperature
 
const int STORAGE_VERSION = 106
 

Function Documentation

◆ AddToStomach()

void AddToStomach ( string class_name,
float amount,
int food_stage = 0,
int agents = 0,
float temperature = 0 )
protected

Definition at line 401 of file playerstomach.c.

◆ ClearContents()

void ClearContents ( )
protected

Definition at line 158 of file playerstomach.c.

◆ DigestAgents()

void DigestAgents ( int agents,
float quantity )
protected

Definition at line 340 of file playerstomach.c.

◆ GetAgentTransferFilter()

int GetAgentTransferFilter ( )
protected

Definition at line 184 of file playerstomach.c.

◆ GetDebugObject()

int GetDebugObject ( array< ref Param > object_out)
protected

Definition at line 518 of file playerstomach.c.

◆ GetDigestingType()

int GetDigestingType ( )
protected

Definition at line 265 of file playerstomach.c.

◆ GetStomachTemperature()

float GetStomachTemperature ( )
protected

Definition at line 153 of file playerstomach.c.

◆ GetStomachVolume()

float GetStomachVolume ( )
protected

Definition at line 148 of file playerstomach.c.

◆ GetStorageVersion()

int GetStorageVersion ( )
protected

Definition at line 255 of file playerstomach.c.

◆ GetVolumeContainingAgent()

float GetVolumeContainingAgent ( eAgents agent)
protected

Definition at line 360 of file playerstomach.c.

◆ GetVolumeContainingAgent01()

float GetVolumeContainingAgent01 ( eAgents agent)
protected

Definition at line 372 of file playerstomach.c.

◆ IsDigesting()

bool IsDigesting ( )
protected

Definition at line 260 of file playerstomach.c.

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext ctx,
int version )
protected

Definition at line 471 of file playerstomach.c.

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 449 of file playerstomach.c.

◆ PlayerStomach()

void PlayerStomach ( PlayerBase player)
protected

Definition at line 142 of file playerstomach.c.

◆ PrintUpdate()

void PrintUpdate ( )
protected

Definition at line 381 of file playerstomach.c.

◆ ProcessNutrients()

void ProcessNutrients ( float delta_time)
protected

try amount from nutritions/food stage first

food poisoning specific override by bloody hands

Definition at line 294 of file playerstomach.c.

◆ ReduceContents()

void ReduceContents ( float percent)
protected

Definition at line 166 of file playerstomach.c.

◆ SetAgentTransferFilter()

void SetAgentTransferFilter ( int filter_agents)
protected

Definition at line 179 of file playerstomach.c.

◆ Update()

void Update ( float delta_time)
protected

Definition at line 289 of file playerstomach.c.

◆ UpdateStomachTemperature()

void UpdateStomachTemperature ( )
protected

Definition at line 270 of file playerstomach.c.

Variable Documentation

◆ ACCEPTABLE_FOODSTAGE_MAX

const int ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1

Definition at line 128 of file playerstomach.c.

◆ ACCEPTABLE_QUANTITY_MAX

const int ACCEPTABLE_QUANTITY_MAX = 32768

Definition at line 127 of file playerstomach.c.

◆ DIGESTING_ENERGY

const int DIGESTING_ENERGY = 2

Definition at line 121 of file playerstomach.c.

◆ DIGESTING_WATER

class StomachItem DIGESTING_WATER = 1

◆ DIGESTION_POINTS

const float DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED

Definition at line 126 of file playerstomach.c.

◆ id_bit_offset

const int id_bit_offset = 4

Definition at line 124 of file playerstomach.c.

◆ m_AgentTransferFilter

int m_AgentTransferFilter

Definition at line 133 of file playerstomach.c.

◆ m_Digesting

bool m_Digesting

Definition at line 134 of file playerstomach.c.

◆ m_DigestingType

int m_DigestingType

Definition at line 135 of file playerstomach.c.

◆ m_Player

PlayerBase m_Player

Definition at line 136 of file playerstomach.c.

◆ m_StomachContents

ref array<ref StomachItem> m_StomachContents = new array<ref StomachItem>

Definition at line 132 of file playerstomach.c.

◆ m_StomachTemperature

float m_StomachTemperature
protected

Definition at line 138 of file playerstomach.c.

◆ m_StomachVolume

float m_StomachVolume

Definition at line 137 of file playerstomach.c.

◆ quantity_bit_offset

const int quantity_bit_offset = 16

Definition at line 123 of file playerstomach.c.

◆ STORAGE_VERSION

const int STORAGE_VERSION = 106
protected

Definition at line 139 of file playerstomach.c.