3610 {
3611 if (action_id ==
EActions.FIX_ENTITY)
3612 {
3613 #ifdef DIAG_DEVELOPER
3614 FixEntity();
3615 #endif
3616 }
3617 else if (action_id ==
EActions.GET_TOTAL_WEIGHT)
3618 {
3619 WeightDebug.ClearWeightDebug();
3620 #ifndef SERVER
3621 Debug.Log(
"======================== "+
GetType() +
" =================================");
3622 #endif
3625 Debug.Log(
"----------------------------------------------------------------------------------------------");
3626 }
3627 else if (action_id ==
EActions.GET_TOTAL_WEIGHT_RECALC)
3628 {
3629 WeightDebug.ClearWeightDebug();
3630 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3631 #ifndef SERVER
3632 Debug.Log(
"======================== "+
GetType() +
" RECALC ===========================");
3633 #endif
3636 WeightDebug.PrintAll(this);
3637 Debug.Log(
"----------------------------------------------------------------------------------------------");
3638 WeightDebug.SetVerbosityFlags(0);
3639 }
3640 else if (action_id ==
EActions.GET_PLAYER_WEIGHT)
3641 {
3642 WeightDebug.ClearWeightDebug();
3643 #ifndef SERVER
3644 Debug.Log(
"======================== PLAYER: "+player+
" ===========================");
3645 #endif
3646 Debug.Log(
"New overall weight Player:"+player.GetWeightEx().ToString());
3647
3648 Debug.Log(
"----------------------------------------------------------------------------------------------");
3649 }
3650 else if (action_id ==
EActions.GET_PLAYER_WEIGHT_RECALC)
3651 {
3652 WeightDebug.ClearWeightDebug();
3653 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3654 #ifndef SERVER
3655 Debug.Log(
"======================== PLAYER RECALC: "+player+
" ===========================");
3656 #endif
3657 Debug.Log(
"New overall weight Player:"+player.GetWeightEx(
true).ToString());
3658 WeightDebug.PrintAll(player);
3659 Debug.Log(
"----------------------------------------------------------------------------------------------");
3660 WeightDebug.SetVerbosityFlags(0);
3661 }
3662 return false;
3663 }
eBleedingSourceType GetType()
float GetWeightEx(bool forceRecalc=false)
returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging,...
float GetSingleInventoryItemWeightEx()