Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
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)
 
void UpdateLifespanLevel (PlayerBase player, float player_beard, bool force_update=false)
 
LifespanLevel GetLifespanLevel (string player_class, float age=0)
 
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)
 
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
 
int m_FakePlaytime
 
ref map< PlayerBase, ref LifespanLevelm_PlayerCurrentLevel
 
ref map< string, ref array< ref LifespanLevel > > m_LifespanLevels
 
ref map< string, ref BloodyHandsm_BloodyHands
 
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)
protected

Definition at line 485 of file pluginlifespan.c.

◆ ChangeFakePlaytime()

void ChangeFakePlaytime ( PlayerBase player,
int change )
protected

Definition at line 207 of file pluginlifespan.c.

◆ GetCurrentHeadMaterial()

string GetCurrentHeadMaterial ( PlayerBase player)
protected

Definition at line 533 of file pluginlifespan.c.

◆ GetCurrentHeadTexture()

string GetCurrentHeadTexture ( PlayerBase player)
protected

Definition at line 523 of file pluginlifespan.c.

◆ GetLifespanLevel()

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

Definition at line 271 of file pluginlifespan.c.

◆ LoadFromCfg()

void LoadFromCfg ( )
protected

Definition at line 56 of file pluginlifespan.c.

◆ PluginLifespan()

void PluginLifespan ( )
protected

Definition at line 45 of file pluginlifespan.c.

◆ SetBloodyHands()

void SetBloodyHands ( PlayerBase player,
bool show )
protected

Definition at line 449 of file pluginlifespan.c.

◆ SetBloodyHandsEx()

void SetBloodyHandsEx ( PlayerBase player,
eBloodyHandsTypes type )
protected

Definition at line 434 of file pluginlifespan.c.

◆ SetHandsMaterial()

void SetHandsMaterial ( PlayerBase player,
int material_type )
protected

Definition at line 463 of file pluginlifespan.c.

◆ SetPlayerLifespanLevel()

void SetPlayerLifespanLevel ( PlayerBase player,
LifespanLevel level )
protected

Definition at line 291 of file pluginlifespan.c.

◆ SynchBeardVisual()

void SynchBeardVisual ( PlayerBase player,
int state )
protected

Definition at line 365 of file pluginlifespan.c.

◆ SynchBloodyHandsVisual()

void SynchBloodyHandsVisual ( PlayerBase player,
bool has_bloody_hands )
protected

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 )
protected

Definition at line 199 of file pluginlifespan.c.

◆ SynchShowBloodType()

void SynchShowBloodType ( PlayerBase player,
int blood_type )
protected

Definition at line 514 of file pluginlifespan.c.

◆ SynchShowBloodTypeVisual()

void SynchShowBloodTypeVisual ( PlayerBase player,
bool show )
protected

Definition at line 509 of file pluginlifespan.c.

◆ UpdateBloodType()

void UpdateBloodType ( PlayerBase player,
int blood_type )
protected

Definition at line 504 of file pluginlifespan.c.

◆ UpdateBloodTypeVisibility()

void UpdateBloodTypeVisibility ( PlayerBase player,
bool show )
protected

Definition at line 494 of file pluginlifespan.c.

◆ UpdateBloodyHandsVisibility()

void UpdateBloodyHandsVisibility ( PlayerBase player,
bool show )
protected

Definition at line 420 of file pluginlifespan.c.

◆ UpdateBloodyHandsVisibilityEx()

void UpdateBloodyHandsVisibilityEx ( PlayerBase player,
eBloodyHandsTypes type )
protected

Definition at line 412 of file pluginlifespan.c.

◆ UpdateLifespan()

void UpdateLifespan ( PlayerBase player,
bool force_update = false )
protected

Definition at line 220 of file pluginlifespan.c.

◆ UpdateLifespanLevel()

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

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

ref map<PlayerBase, int> m_BloodType
protected

Definition at line 35 of file pluginlifespan.c.

◆ m_BloodyHands

ref map<string, ref BloodyHands> m_BloodyHands
protected

Definition at line 34 of file pluginlifespan.c.

◆ m_FakePlaytime

int m_FakePlaytime
protected

Definition at line 30 of file pluginlifespan.c.

◆ m_LifespanLevels

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

Definition at line 33 of file pluginlifespan.c.

◆ m_PlayerCurrentLevel

ref map<PlayerBase, ref LifespanLevel> m_PlayerCurrentLevel
protected

Definition at line 32 of file pluginlifespan.c.