DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnAction()

bool Entity::OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 3696

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) //Prints total weight of item + its contents
3705 {
3706 WeightDebug.ClearWeightDebug();
3707 #ifndef SERVER
3708 Debug.Log("======================== "+ GetType() +" =================================");
3709 #endif
3710 Debug.Log("Weight:" + GetWeightEx().ToString());
3711 Debug.Log("Weight excluding cargo and attachments:" + GetSingleInventoryItemWeightEx());
3712 Debug.Log("----------------------------------------------------------------------------------------------");
3713 }
3714 else if (action_id == EActions.GET_TOTAL_WEIGHT_RECALC) //Prints total weight of item + its contents
3715 {
3716 WeightDebug.ClearWeightDebug();
3717 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3718 #ifndef SERVER
3719 Debug.Log("======================== "+ GetType() +" RECALC ===========================");
3720 #endif
3721 Debug.Log("Weight:" + GetWeightEx(true).ToString());
3722 Debug.Log("Weight excluding cargo and attachments:" + GetSingleInventoryItemWeightEx());
3723 WeightDebug.PrintAll(this);
3724 Debug.Log("----------------------------------------------------------------------------------------------");
3725 WeightDebug.SetVerbosityFlags(0);
3726 }
3727 else if (action_id == EActions.GET_PLAYER_WEIGHT) //Prints total weight of item + its contents
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) //Prints total weight of item + its contents
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()
string Debug()
Определения CachedEquipmentStorageBase.c:26
EActions
Определения EActions.c:2
proto string ToString()
float GetWeightEx(bool forceRecalc=false)
returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging,...
float GetSingleInventoryItemWeightEx()

Перекрестные ссылки GetSingleInventoryItemWeightEx(), GetType(), GetWeightEx(), Debug::Log() и ToString().