returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging, using it in gameplay code is higly inadvisable as it bypasses the weight caching and has adverse effect on performance
См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 3613
3614 {
3616 {
3619
3620 #ifdef DEVELOPER
3621 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
3622 {
3623 WeightDebug.GetWeightDebug(
this).SetWeight(
m_WeightEx);
3624 }
3625 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_DIRTY)
3626 {
3627 Print(
"ent:" +
this +
" - Dirty Recalc");
3628 if (WeightDebug.m_VerbosityFlags & WeightDebugType.DUMP_STACK)
3629 {
3631 }
3632 }
3633 #endif
3634 }
3635
3637 }
float GetWeightSpecialized(bool forceRecalc=false)
returns weight of the entity in a way that's specific to the entity type and is internal to the weigh...
proto void DumpStack()
Prints current call stack (stack trace)
proto void Print(void var)
Prints content of variable to console/log.
Перекрестные ссылки ClearWeightDirty(), DumpStack(), GetWeightSpecialized(), m_WeightDirty, m_WeightEx и Print().
Используется в GetDebugText(), GetWeight() и OnAction().