3615 {
3616 if (action_id ==
EActions.FIX_ENTITY)
3617 {
3618 #ifdef DIAG_DEVELOPER
3619 FixEntity();
3620 #endif
3621 }
3622 else if (action_id ==
EActions.GET_TOTAL_WEIGHT)
3623 {
3624 WeightDebug.ClearWeightDebug();
3625 #ifndef SERVER
3626 Debug.Log(
"======================== "+
GetType() +
" =================================");
3627 #endif
3630 Debug.Log(
"----------------------------------------------------------------------------------------------");
3631 }
3632 else if (action_id ==
EActions.GET_TOTAL_WEIGHT_RECALC)
3633 {
3634 WeightDebug.ClearWeightDebug();
3635 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3636 #ifndef SERVER
3637 Debug.Log(
"======================== "+
GetType() +
" RECALC ===========================");
3638 #endif
3641 WeightDebug.PrintAll(this);
3642 Debug.Log(
"----------------------------------------------------------------------------------------------");
3643 WeightDebug.SetVerbosityFlags(0);
3644 }
3645 else if (action_id ==
EActions.GET_PLAYER_WEIGHT)
3646 {
3647 WeightDebug.ClearWeightDebug();
3648 #ifndef SERVER
3649 Debug.Log(
"======================== PLAYER: "+player+
" ===========================");
3650 #endif
3651 Debug.Log(
"New overall weight Player:"+player.GetWeightEx().ToString());
3652
3653 Debug.Log(
"----------------------------------------------------------------------------------------------");
3654 }
3655 else if (action_id ==
EActions.GET_PLAYER_WEIGHT_RECALC)
3656 {
3657 WeightDebug.ClearWeightDebug();
3658 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3659 #ifndef SERVER
3660 Debug.Log(
"======================== PLAYER RECALC: "+player+
" ===========================");
3661 #endif
3662 Debug.Log(
"New overall weight Player:"+player.GetWeightEx(
true).ToString());
3663 WeightDebug.PrintAll(player);
3664 Debug.Log(
"----------------------------------------------------------------------------------------------");
3665 WeightDebug.SetVerbosityFlags(0);
3666 }
3667 return false;
3668 }
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()