3697 {
3698 if (action_id ==
EActions.FIX_ENTITY)
3699 {
3700 #ifdef DIAG_DEVELOPER
3701 FixEntity();
3702 #endif
3703 }
3704 else if (action_id ==
EActions.GET_TOTAL_WEIGHT)
3705 {
3706 WeightDebug.ClearWeightDebug();
3707 #ifndef SERVER
3708 Debug.Log(
"======================== "+
GetType() +
" =================================");
3709 #endif
3712 Debug.Log(
"----------------------------------------------------------------------------------------------");
3713 }
3714 else if (action_id ==
EActions.GET_TOTAL_WEIGHT_RECALC)
3715 {
3716 WeightDebug.ClearWeightDebug();
3717 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3718 #ifndef SERVER
3719 Debug.Log(
"======================== "+
GetType() +
" RECALC ===========================");
3720 #endif
3723 WeightDebug.PrintAll(this);
3724 Debug.Log(
"----------------------------------------------------------------------------------------------");
3725 WeightDebug.SetVerbosityFlags(0);
3726 }
3727 else if (action_id ==
EActions.GET_PLAYER_WEIGHT)
3728 {
3729 WeightDebug.ClearWeightDebug();
3730 #ifndef SERVER
3731 Debug.Log(
"======================== PLAYER: "+player+
" ===========================");
3732 #endif
3733 Debug.Log(
"New overall weight Player:"+player.GetWeightEx().ToString());
3734
3735 Debug.Log(
"----------------------------------------------------------------------------------------------");
3736 }
3737 else if (action_id ==
EActions.GET_PLAYER_WEIGHT_RECALC)
3738 {
3739 WeightDebug.ClearWeightDebug();
3740 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3741 #ifndef SERVER
3742 Debug.Log(
"======================== PLAYER RECALC: "+player+
" ===========================");
3743 #endif
3744 Debug.Log(
"New overall weight Player:"+player.GetWeightEx(
true).ToString());
3745 WeightDebug.PrintAll(player);
3746 Debug.Log(
"----------------------------------------------------------------------------------------------");
3747 WeightDebug.SetVerbosityFlags(0);
3748 }
3749 return false;
3750 }
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()