См. определение в файле CorpseData.c строка 27
28 {
30 {
31 if (
m_iCorpseState == PlayerConstants.CORPSE_STATE_DECAYED && !force_check )
32 {
34 return;
35 }
36 else
37 {
40 {
44 {
46 }
47
48 return;
49 }
52 }
53 }
54
57
60
61 float lifetime =
m_Player.GetLifetime();
62
64 {
66 return;
67 }
68
71
72 #ifdef DIAG_DEVELOPER
73 if (FeatureTimeAccel.GetFeatureTimeAccelEnabled(ETimeAccelCategories.FOOD_DECAY))
74 {
75 float timeAccel = 1;
76 timeAccel = FeatureTimeAccel.GetFeatureTimeAccelValue();
77 delta *= timeAccel;
78 }
79 #endif
80
82
83 float corpseFreshness = 0.0;
86
87 if (corpseFreshness > PlayerConstants.CORPSE_THRESHOLD_MEDIUM)
88 {
90 }
91 else if (corpseFreshness <= PlayerConstants.CORPSE_THRESHOLD_MEDIUM && corpseFreshness > PlayerConstants.CORPSE_THRESHOLD_DECAYED)
92 {
94 }
95 else
96 {
99 }
100
102 {
105 }
106
108 }
int m_iTriesToGetLifetime
const int GET_LIFETIME_TRIES_MAX
Перекрестные ссылки CanProgressDecay(), PlayerConstants::CORPSE_STATE_DECAYED, PlayerConstants::CORPSE_STATE_FRESH, PlayerConstants::CORPSE_STATE_MEDIUM, PlayerConstants::CORPSE_THRESHOLD_DECAYED, PlayerConstants::CORPSE_THRESHOLD_MEDIUM, GET_LIFETIME_TRIES_MAX, m_bUpdate, m_iCorpseState, m_iMaxLifetime, m_iTriesToGetLifetime, m_LastLifetime, m_LifetimeAdjusted, m_Player и MIN.
Используется в MissionBase::UpdateCorpseStatesServer().