Enumerations | |
enum | eBloodyHandsTypes { CLEAN = 0 , SALMONELA , JUST_BLOOD , LAST_INDEX } |
Variables | |
enum eBloodyHandsTypes | BEARD_NONE = 0 |
enum eBloodyHandsTypes | BEARD_MEDIUM = 1 |
enum eBloodyHandsTypes | BEARD_LARGE = 2 |
enum eBloodyHandsTypes | BEARD_EXTRA = 3 |
enum eBloodyHandsTypes | COUNT = 4 |
enum eBloodyHandsTypes | LIFESPAN_MIN = 0 |
static protected const int | LIFESPAN_MAX = 240 |
protected int | m_FakePlaytime |
protected ref map< PlayerBase, ref LifespanLevel > | m_PlayerCurrentLevel |
protected ref map< string, ref array< ref LifespanLevel > > | m_LifespanLevels |
protected ref map< string, ref BloodyHands > | m_BloodyHands |
protected ref map< PlayerBase, int > | m_BloodType |
enum eBloodyHandsTypes |
bool CanMakeHandsBloody | ( | PlayerBase | player | ) |
Referenced by UpdateBloodyHandsVisibility(), and UpdateBloodyHandsVisibilityEx().
void ChangeFakePlaytime | ( | PlayerBase | player, |
int | change | ||
) |
References GetGame(), m_FakePlaytime, and UpdateLifespan().
string GetCurrentHeadMaterial | ( | PlayerBase | player | ) |
References LifespanLevel::GetMaterialName(), and m_PlayerCurrentLevel.
string GetCurrentHeadTexture | ( | PlayerBase | player | ) |
References LifespanLevel::GetTextureName(), and m_PlayerCurrentLevel.
|
static |
References GetPlugin(), and PluginLifespan().
protected LifespanLevel GetLifespanLevel | ( | string | player_class, |
float | age = 0 |
||
) |
References LifespanLevel::GetThreshold(), and m_LifespanLevels.
Referenced by UpdateLifespanLevel().
void LoadFromCfg | ( | ) |
void PluginLifespan | ( | ) |
References PluginBase::LoadFromCfg(), m_BloodType, m_FakePlaytime, and m_PlayerCurrentLevel.
Referenced by ActionEatMeat::ApplyModifiers(), RecipeBase::Do(), GetInstance(), ManBase::Init(), VomitSymptom::OnAnimationFinish(), SymptomBase::OnAnimationStart(), ActionInteractLoopBase::OnEndServer(), OnEndServer(), ActionWashHandsItem::OnEndServer(), OnFinishProgressServer(), ActionWashHandsItemContinuous::OnFinishProgressServer(), ActionTestBloodTarget::OnFinishProgressServer(), ActionTestBloodTarget::OnStartServer(), ManBase::ResetPlayer(), RecipeBase::SetBloodyHands(), and MissionBase::UpdatePlayersStats().
void SetBloodyHands | ( | PlayerBase | player, |
bool | show | ||
) |
References BloodyHands::MATERIAL_TYPE_BLOODY, BloodyHands::MATERIAL_TYPE_NORMAL, and SetHandsMaterial().
Referenced by RecipeBase::Do(), PrepareAnimal::Do(), and UpdateBloodyHandsVisibility().
void SetBloodyHandsEx | ( | PlayerBase | player, |
eBloodyHandsTypes | type | ||
) |
References BloodyHands::MATERIAL_TYPE_BLOODY, BloodyHands::MATERIAL_TYPE_NORMAL, and SetHandsMaterial().
Referenced by UpdateBloodyHandsVisibilityEx().
protected void SetHandsMaterial | ( | PlayerBase | player, |
int | material_type | ||
) |
References InventorySlots::GetSlotIdFromString(), and m_BloodyHands.
Referenced by SetBloodyHands(), and SetBloodyHandsEx().
protected void SetPlayerLifespanLevel | ( | PlayerBase | player, |
LifespanLevel | level | ||
) |
void SynchBeardVisual | ( | PlayerBase | player, |
int | state | ||
) |
References LIFESPAN_MAX, LIFESPAN_MIN, Print(), and UpdateLifespanLevel().
Referenced by SynchLifespanVisual().
void SynchBloodyHandsVisual | ( | PlayerBase | player, |
bool | has_bloody_hands | ||
) |
References UpdateBloodyHandsVisibility().
Referenced by SynchLifespanVisual().
void SynchLifespanVisual | ( | PlayerBase | player, |
int | beard_state_visible, | ||
bool | bloody_hands_visible, | ||
bool | blood_type_visible, | ||
int | blood_type | ||
) |
References SynchBeardVisual(), SynchBloodyHandsVisual(), SynchShowBloodType(), and SynchShowBloodTypeVisual().
void SynchShowBloodType | ( | PlayerBase | player, |
int | blood_type | ||
) |
References UpdateBloodType().
Referenced by SynchLifespanVisual().
void SynchShowBloodTypeVisual | ( | PlayerBase | player, |
bool | show | ||
) |
References UpdateBloodTypeVisibility().
Referenced by SynchLifespanVisual().
void UpdateBloodType | ( | PlayerBase | player, |
int | blood_type | ||
) |
Referenced by SynchShowBloodType().
void UpdateBloodTypeVisibility | ( | PlayerBase | player, |
bool | show | ||
) |
Referenced by SynchShowBloodTypeVisual().
void UpdateBloodyHandsVisibility | ( | PlayerBase | player, |
bool | show | ||
) |
References CanMakeHandsBloody(), and SetBloodyHands().
Referenced by SynchBloodyHandsVisual().
void UpdateBloodyHandsVisibilityEx | ( | PlayerBase | player, |
eBloodyHandsTypes | type | ||
) |
References CanMakeHandsBloody(), and SetBloodyHandsEx().
void UpdateLifespan | ( | PlayerBase | player, |
bool | force_update = false |
||
) |
References GetGame(), m_FakePlaytime, AnalyticsManagerServer::STAT_PLAYTIME, and UpdateLifespanLevel().
Referenced by ChangeFakePlaytime().
protected void UpdateLifespanLevel | ( | PlayerBase | player, |
float | player_beard, | ||
bool | force_update = false |
||
) |
References GetLifespanLevel(), LifespanLevel::GetThreshold(), m_LifespanLevels, m_PlayerCurrentLevel, and SetPlayerLifespanLevel().
Referenced by SynchBeardVisual(), and UpdateLifespan().
enum eBloodyHandsTypes BEARD_EXTRA = 3 |
enum eBloodyHandsTypes BEARD_LARGE = 2 |
enum eBloodyHandsTypes BEARD_MEDIUM = 1 |
enum eBloodyHandsTypes BEARD_NONE = 0 |
enum eBloodyHandsTypes COUNT = 4 |
|
static |
Referenced by LoadFromCfg(), and SynchBeardVisual().
enum eBloodyHandsTypes LIFESPAN_MIN = 0 |
Referenced by LoadFromCfg(), and SynchBeardVisual().
protected ref map<PlayerBase, int> m_BloodType |
protected ref map<string, ref BloodyHands> m_BloodyHands |
Referenced by LoadFromCfg(), and SetHandsMaterial().
protected int m_FakePlaytime |
Referenced by ChangeFakePlaytime(), PluginLifespan(), and UpdateLifespan().
protected ref map<string, ref array< ref LifespanLevel> > m_LifespanLevels |
Referenced by GetLifespanLevel(), LoadFromCfg(), SetPlayerLifespanLevel(), and UpdateLifespanLevel().
protected ref map<PlayerBase, ref LifespanLevel> m_PlayerCurrentLevel |
Referenced by GetCurrentHeadMaterial(), GetCurrentHeadTexture(), PluginLifespan(), and UpdateLifespanLevel().