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

Go to the source code of this file.

Enumerations

enum  eBloodyHandsTypes { CLEAN = 0, SALMONELA, JUST_BLOOD, LAST_INDEX }
 

Functions

void PluginLifespan ()
 
void LoadFromCfg ()
 
void SynchLifespanVisual (PlayerBase player, int beard_state_visible, bool bloody_hands_visible, bool blood_type_visible, int blood_type)
 
void ChangeFakePlaytime (PlayerBase player, int change)
 
void UpdateLifespan (PlayerBase player, bool force_update=false)
 
protected void UpdateLifespanLevel (PlayerBase player, float player_beard, bool force_update=false)
 
protected LifespanLevel GetLifespanLevel (string player_class, float age=0)
 
protected void SetPlayerLifespanLevel (PlayerBase player, LifespanLevel level)
 
void SynchBeardVisual (PlayerBase player, int state)
 
void UpdateBloodyHandsVisibilityEx (PlayerBase player, eBloodyHandsTypes type)
 
void UpdateBloodyHandsVisibility (PlayerBase player, bool show)
 
void SynchBloodyHandsVisual (PlayerBase player, bool has_bloody_hands)
 
void SetBloodyHandsEx (PlayerBase player, eBloodyHandsTypes type)
 
void SetBloodyHands (PlayerBase player, bool show)
 
protected void SetHandsMaterial (PlayerBase player, int material_type)
 
bool CanMakeHandsBloody (PlayerBase player)
 
void UpdateBloodTypeVisibility (PlayerBase player, bool show)
 
void UpdateBloodType (PlayerBase player, int blood_type)
 
void SynchShowBloodTypeVisual (PlayerBase player, bool show)
 
void SynchShowBloodType (PlayerBase player, int blood_type)
 
string GetCurrentHeadTexture (PlayerBase player)
 
string GetCurrentHeadMaterial (PlayerBase player)
 

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
 
protected int m_FakePlaytime
 
protected ref map< PlayerBase, ref LifespanLevelm_PlayerCurrentLevel
 
protected ref map< string, ref array< ref LifespanLevel > > m_LifespanLevels
 
protected ref map< string, ref BloodyHandsm_BloodyHands
 
protected ref map< PlayerBase, intm_BloodType
 

Enumeration Type Documentation

◆ eBloodyHandsTypes

Enumerator
CLEAN 
SALMONELA 
JUST_BLOOD 
LAST_INDEX 

Definition at line 8 of file pluginlifespan.c.

Function Documentation

◆ CanMakeHandsBloody()

bool CanMakeHandsBloody ( PlayerBase  player)

Definition at line 485 of file pluginlifespan.c.

◆ ChangeFakePlaytime()

void ChangeFakePlaytime ( PlayerBase  player,
int  change 
)

Definition at line 207 of file pluginlifespan.c.

◆ GetCurrentHeadMaterial()

string GetCurrentHeadMaterial ( PlayerBase  player)

Definition at line 533 of file pluginlifespan.c.

◆ GetCurrentHeadTexture()

string GetCurrentHeadTexture ( PlayerBase  player)

Definition at line 523 of file pluginlifespan.c.

◆ GetLifespanLevel()

protected LifespanLevel GetLifespanLevel ( string  player_class,
float  age = 0 
)

Definition at line 271 of file pluginlifespan.c.

◆ LoadFromCfg()

void LoadFromCfg ( )

Definition at line 56 of file pluginlifespan.c.

◆ PluginLifespan()

void PluginLifespan ( )

Definition at line 45 of file pluginlifespan.c.

◆ SetBloodyHands()

void SetBloodyHands ( PlayerBase  player,
bool  show 
)

Definition at line 449 of file pluginlifespan.c.

◆ SetBloodyHandsEx()

void SetBloodyHandsEx ( PlayerBase  player,
eBloodyHandsTypes  type 
)

Definition at line 434 of file pluginlifespan.c.

◆ SetHandsMaterial()

protected void SetHandsMaterial ( PlayerBase  player,
int  material_type 
)

Definition at line 463 of file pluginlifespan.c.

◆ SetPlayerLifespanLevel()

protected void SetPlayerLifespanLevel ( PlayerBase  player,
LifespanLevel  level 
)

Definition at line 291 of file pluginlifespan.c.

◆ SynchBeardVisual()

void SynchBeardVisual ( PlayerBase  player,
int  state 
)

Definition at line 365 of file pluginlifespan.c.

◆ SynchBloodyHandsVisual()

void SynchBloodyHandsVisual ( PlayerBase  player,
bool  has_bloody_hands 
)

Definition at line 428 of file pluginlifespan.c.

◆ SynchLifespanVisual()

void SynchLifespanVisual ( PlayerBase  player,
int  beard_state_visible,
bool  bloody_hands_visible,
bool  blood_type_visible,
int  blood_type 
)

Definition at line 199 of file pluginlifespan.c.

◆ SynchShowBloodType()

void SynchShowBloodType ( PlayerBase  player,
int  blood_type 
)

Definition at line 514 of file pluginlifespan.c.

◆ SynchShowBloodTypeVisual()

void SynchShowBloodTypeVisual ( PlayerBase  player,
bool  show 
)

Definition at line 509 of file pluginlifespan.c.

◆ UpdateBloodType()

void UpdateBloodType ( PlayerBase  player,
int  blood_type 
)

Definition at line 504 of file pluginlifespan.c.

◆ UpdateBloodTypeVisibility()

void UpdateBloodTypeVisibility ( PlayerBase  player,
bool  show 
)

Definition at line 494 of file pluginlifespan.c.

◆ UpdateBloodyHandsVisibility()

void UpdateBloodyHandsVisibility ( PlayerBase  player,
bool  show 
)

Definition at line 420 of file pluginlifespan.c.

◆ UpdateBloodyHandsVisibilityEx()

void UpdateBloodyHandsVisibilityEx ( PlayerBase  player,
eBloodyHandsTypes  type 
)

Definition at line 412 of file pluginlifespan.c.

◆ UpdateLifespan()

void UpdateLifespan ( PlayerBase  player,
bool  force_update = false 
)

Definition at line 220 of file pluginlifespan.c.

◆ UpdateLifespanLevel()

protected void UpdateLifespanLevel ( PlayerBase  player,
float  player_beard,
bool  force_update = false 
)

Definition at line 236 of file pluginlifespan.c.

Variable Documentation

◆ BEARD_EXTRA

enum eBloodyHandsTypes BEARD_EXTRA = 3

◆ BEARD_LARGE

enum eBloodyHandsTypes BEARD_LARGE = 2

◆ BEARD_MEDIUM

enum eBloodyHandsTypes BEARD_MEDIUM = 1

◆ BEARD_NONE

enum eBloodyHandsTypes BEARD_NONE = 0

◆ COUNT

enum eBloodyHandsTypes COUNT = 4

◆ LIFESPAN_MIN

enum eBloodyHandsTypes LIFESPAN_MIN = 0

◆ m_BloodType

protected ref map<PlayerBase, int> m_BloodType

Definition at line 35 of file pluginlifespan.c.

◆ m_BloodyHands

protected ref map<string, ref BloodyHands> m_BloodyHands

Definition at line 34 of file pluginlifespan.c.

◆ m_FakePlaytime

protected int m_FakePlaytime

Definition at line 30 of file pluginlifespan.c.

◆ m_LifespanLevels

protected ref map<string, ref array< ref LifespanLevel> > m_LifespanLevels

Definition at line 33 of file pluginlifespan.c.

◆ m_PlayerCurrentLevel

protected ref map<PlayerBase, ref LifespanLevel> m_PlayerCurrentLevel

Definition at line 32 of file pluginlifespan.c.