3658 {
3659 if (action_id ==
EActions.FIX_ENTITY)
3660 {
3661 #ifdef DIAG_DEVELOPER
3662 FixEntity();
3663 #endif
3664 }
3665 else if (action_id ==
EActions.GET_TOTAL_WEIGHT)
3666 {
3667 WeightDebug.ClearWeightDebug();
3668 #ifndef SERVER
3669 Debug.Log(
"======================== "+
GetType() +
" =================================");
3670 #endif
3673 Debug.Log(
"----------------------------------------------------------------------------------------------");
3674 }
3675 else if (action_id ==
EActions.GET_TOTAL_WEIGHT_RECALC)
3676 {
3677 WeightDebug.ClearWeightDebug();
3678 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3679 #ifndef SERVER
3680 Debug.Log(
"======================== "+
GetType() +
" RECALC ===========================");
3681 #endif
3684 WeightDebug.PrintAll(this);
3685 Debug.Log(
"----------------------------------------------------------------------------------------------");
3686 WeightDebug.SetVerbosityFlags(0);
3687 }
3688 else if (action_id ==
EActions.GET_PLAYER_WEIGHT)
3689 {
3690 WeightDebug.ClearWeightDebug();
3691 #ifndef SERVER
3692 Debug.Log(
"======================== PLAYER: "+player+
" ===========================");
3693 #endif
3694 Debug.Log(
"New overall weight Player:"+player.GetWeightEx().ToString());
3695
3696 Debug.Log(
"----------------------------------------------------------------------------------------------");
3697 }
3698 else if (action_id ==
EActions.GET_PLAYER_WEIGHT_RECALC)
3699 {
3700 WeightDebug.ClearWeightDebug();
3701 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3702 #ifndef SERVER
3703 Debug.Log(
"======================== PLAYER RECALC: "+player+
" ===========================");
3704 #endif
3705 Debug.Log(
"New overall weight Player:"+player.GetWeightEx(
true).ToString());
3706 WeightDebug.PrintAll(player);
3707 Debug.Log(
"----------------------------------------------------------------------------------------------");
3708 WeightDebug.SetVerbosityFlags(0);
3709 }
3710 return false;
3711 }
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()