См. определение в файле 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
83
84 if (corpseFreshness > PlayerConstants.CORPSE_THRESHOLD_MEDIUM)
85 {
87 }
88 else if (corpseFreshness <= PlayerConstants.CORPSE_THRESHOLD_MEDIUM && corpseFreshness > PlayerConstants.CORPSE_THRESHOLD_DECAYED)
89 {
91 }
92 else
93 {
96 }
97
99 {
102 }
103
105 }
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().